procmail
[Top] [All Lists]

Re: fgrep problem...Im pulling my hair out.

2003-05-06 17:14:31

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.

Let us see *the relevant parts of* your verbose logs.

--
dman


Dman,

Thank you for helping.  Here is what the log says:

procmail: Assigning "SHELL=/bin/sh"
procmail: Executing "echo,bfons"
procmail: Assigning "USER=bfons"
procmail: Assigning "INCLUDERC=/home/imap/bfons/.procmailrc"
procmail: Assigning "INCLUDERC=/opt2/users/vacation/bfons"
procmail: Couldn't read "/opt2/users/vacation/bfons"
procmail: Match on "< 12000"
procmail: Executing "/usr/bin/spamc,-f"
procmail: [4524] Tue May  6 12:36:16 2003
procmail: No match on "^X-Spam-Status: Yes"
procmail: No match on "^Subject:.POTENTIAL SPAM*"
procmail: No match on "^Subject:.^POTENTIAL SPAM *"
procmail: No match on "^Subject:.POTENTIAL SPAM *"
procmail: No match on "^Subject:.*her horse*"
procmail: Executing "fgrep,-isf,/opt2/users/filters/bfons_blocked_domains"
procmail: Non-zero exitcode (1) from "fgrep"
procmail: No match on "fgrep -isf /opt2/users/filters/bfons_blocked_domains"
procmail: Executing "fgrep,-isf,/opt2/users/filters/bfons_blocked_subjects"
procmail: Match on "fgrep -isf /opt2/users/filters/bfons_blocked_subjects"
procmail: Assigning
"LASTFOLDER=/var/log/SpamAss/Maildir/new/1052246176.4524_0.imap.domain.com"
procmail: Notified comsat:
"bfons(_at_)0:/var/log/SpamAss/Maildir/new/1052246176.4524_0.imap.domain.com"
From bfons(_at_)domain(_dot_)com  Tue May  6 12:36:15 2003
 Subject: yo
  Folder: /var/log/SpamAss/Maildir/new/1052246176.4524_0.imap.domain.com
1567


the term "yo" is not in /opt2/users/filters/bfons_blocked_subjects


Thank you,

Brian


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail