Hello all,
I hope someone can help.
I have been using the following in /etc/procmailrc for the longest time:
USER=`echo $LOGNAME`
INCLUDERC=/opt2/users/vacation/${USER}
:0fw
* < 12000
| /usr/bin/spamc -f
:0
* ^X-Spam-Status: Yes
/var/log/SpamAss
:0
* ? fgrep -isf /opt2/users/filters/${USER}_blocked_domains <-- This is for user
defined filters
/var/log/SpamAss/
:0
* ? fgrep -isf /opt2/users/filters/${USER}_blocked_subjects <-- This is for
user defined filters
/var/log/SpamAss
A couple of weeks ago, I went to the Maildir format and because of the custom
calls, I wanted to keep procmail.
I installed the latest procmail modifying src/authenication.c
That said, I am now using:
MAILDIR=$HOME/ #LOGFILE=/dev/null
LOGFILE=/log.`date +%y-%m-%d`
USER=`echo $LOGNAME`
INCLUDERC=/home/imap/${USER}/.procmailrc
INCLUDERC=/opt2/users/vacation/${USER}
:0fw
* < 12000
| /usr/bin/spamc -f
:0
* ^X-Spam-Status: Yes
/var/log/SpamAss/Maildir/
:0
* ? fgrep -isf /opt2/users/filters/${USER}_blocked_domains
/var/log/SpamAss/Maildir/
:0
* ? fgrep -isf /opt2/users/filters/${USER}_blocked_subjects
/var/log/SpamAss/Maildir/
:0
*
Maildir/
Now get this. The first fgrep (fgrep -isf
/opt2/users/filters/${USER}_blocked_domains) works like a charm
The second one (fgrep -isf /opt2/users/filters/${USER}_blocked_subjects) will
ALWAYS return a match regardless, if and only if.
/opt2/users/filters/${USER}_blocked_subjects exists.
A sample /opt2/users/filters/${USER}_blocked_subjects contains:
badword1
badword2
etc
fgrep is reporting a match even for "non-badword".
If I run this command line, it works as designed.
I would appreciate any feedback on this and thank you for your help.
Brian
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail