On Mon, 22 Aug 2005 12:10:40 -0700, Bruce Johnson wrote:
I'm trying to process messages sent to an account, two parts we want
to keep the whole message, as well as parse the body of a message for
certain lines and do stuff based on that:
PMDIR=$HOME
MAILDIR=$HOME/mail # all mailboxes are in mail/
LOGFILE=$PMDIR/procmail.log
LOG="--- Logging ${LOGFILE} for ${LOGNAME}, "
:0
* ^TO.*
{
:0 c
| perl $HOME/procvir.pl >> procvir.log
Does procmail have ^^^^
a $PATH to perl?
:0
mbox
}
The problem is that the program 'procvir.pl' is never running at all,
as far as I can tell.
It works if I save the message as a file and do 'cat msg |
procvir.pl' on the command line.
Oh. !!! Is the script procvir.pl 'free-standing' , ala:
#!/usr/bin/perl -f ???
Jonesy
--
Marvin L Jones | jonz | W3DHJ | linux
Pueblo, Colorado | @ config.com | Jonesy | OS/2
*** Now killfiling all X-Trace: posting.google.com followups ***
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail