Am 2004-04-10 16:39:39, schrieb JPO:
I have a simple recipe that pipes certain emails to a perl script,
and then delivers them as usual. According to my procmail log
the script is being executed, but in reality it's not - it's just a
Are you sure ?
Can you put "echo test123 > /tmp/mytest" in the first line
of your script to see, weter it is executed or not ?
simple test script for now that outputs "hello world" to a text
file but it never happens. Yet when I run the script myself it
works fine. The script is owned by the user receiving the mail
and I chmod'd it 777 just to see if that made any difference. So
I guess my question is, how do I go about determining why the
script isn't being executed? Here's what the log shows ...
procmail: [8563] Sat Apr 10 14:30:53 2004
procmail: Match on "^Subject: test123"
procmail: Executing "/home/jp/test/test.pl"
procmail: Assigning "LASTFOLDER=/home/jp/test/test.pl"
procmail: Match on "^Subject: test123"
procmail: Assigning "LASTFOLDER=/var/spool/mail/jp"
procmail: Opening "/var/spool/mail/jp"
procmail: Acquiring kernel-lock
procmail: Notified comsat: "jp(_at_)0:/var/spool/mail/jp"
Never seen somting like this.
In my .procmailrc I use:
____ /home1/michelle/.procmailrc _______________________________
/
| PATH=$HOME/bin:/usr/bin:/bin:
| MAILDIR=$HOME/Maildir
| DEFAULT=$MAILDIR/INBOX/
| LOGFILE=$HOME/log/procmail-`date +%Y-%m-%d`.log
| LOCKFILE=procmail.lock
| VERBOSE=off
|
| :0 fwhb
| * ^To(_dot_)*xxxxxxxxxxxxxxxxx(_at_)xxxxxxx(_dot_)xx
| * ^Subject.*\[procmailfilter\]
| | $HOME/bin/procmailfilter
|
| :0 ci
| * ^To.*(binaries4michelle|attachments4michelle|files4michelle)
| * ^Content-type.*multipart/mixed
| * B ?? Content-transfer-encoding.*(x-uuencode|base64)
| | /usr/bin/munpack -q -C ~/Maildir/Binaries_files/
|
| :0
| * ^To.*(binaries4michelle|attachments4michelle|files4michelle)
| Binaries/
|
| :0 ci
| * ^From.*(xxxx(_dot_)xxxxxxxxx(_at_)xxxxxxx(_dot_)xx)
| | $HOME/bin/my_curent_ip
\________________________________________________________________
They are working fine ;-)
Thanks,
JP
Greetings
Michelle
--
Registered Linux-User #280138 with the Linux Counter, http://counter.li.org/
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail