Hmmm.... I've called the script notify and changed it as follows:
#!/bin/sh TMP1=`mktemp /tmp/mailcheck.XXXXXX` TMP2=`mktemp /tmp/mailcheck.XXXXXX` cat /dev/stdin > $TMP1 grep Date: $TMP1 | head -n 1 > $TMP2 grep From: $TMP1 | head -n 1 >> $TMP2 grep Subject: $TMP1 | head -n 1 >> $TMP2 cat $TMP2 | mail -s "Mail Notification" $1 cat $TMP1 rm $TMP1 rm $TMP2 In ~/.procmailrc, I have put: :0fw * ^X-Spam-Status: No* | /usr/local/bin/notify jason However, *any* mail that goes through it comes out blank! Whether it is spam or not! The script works fine from the shell so it's got to be something wrong with how I'm using procmail. I can't see where the error is though. I checked the $TMP files and both come out blank, so it seems that procmail is not piping the mail through the filter. Either way, it doesn't explain why spam is being corrupted as well. Can anyone help? Pretty please?? Thanks in advance, Jason -- [EMAIL PROTECTED] mailing list
