procmail
[Top] [All Lists]

Re: fgrep -i condition-line potential Solaris bug

1997-10-06 18:57:28
##########################################################################
# Edsel Adap <edsel(_dot_)adap(_at_)Canada(_dot_)Sun(_dot_)COM> agrees there is 
a likely bug in #
# Solaris 2.5.1 "/usr/bin/fgrep -i" although none has apparently been    #
# reported in that version; Edsel tested /usr/xpg4/bin/fgrep & suggests  #
# folks use this instead. The Solaris 2.5.1 ban-repeat-spam filter then  #
# becomes:                                                               # 
# (Note: The colon in the -ISubject doesn't seem to matter.)             #
##########################################################################
:0hb
* ? formail -ISubject: | /usr/xpg4/bin/fgrep -i -s -f $PMDIR/banned
  {
    EXITCODE=77
    :0:
    automated/junk
  }
#########################################################################

Where the file of known spammers, $PMDIR/banned, is automatically 
generated by pressing a "BAN-and-DELETE" button in Zmail 5.0, and 
is of the format:

Broker(_at_)lostvegas(_dot_)com
Dwnliner(_at_)ix(_dot_)netcom(_dot_)com
Emerald(_at_)earthstar(_dot_)com
bill(_at_)earthlink(_dot_)net
etc.
----------------------------------------------------------------------------
Andrew could aim for a lower-case translation also, e.g., something like:      
           tr A-Z a-z < ~/.procmail/banned > /tmp/banned$$
           fgrep -i -s -f /tmp/banned$$
           set ret=$status
           rm -f /tmp/banned$$
           exit $status

But, as Timothy Luoma mentioned, the user' best bet is probably to give 
up on the Sun Solaris 2.5.1 /usr/bin/fgrep in favor of one that works.
----------------------------------------------------------------------------
Note: For full and gory details setting up Cadence anti-spam filters, send 
      "jjg(_at_)cadence(_dot_)com" an email with the subject line (blank body) 
of: 

           send procmail_users rc.spammers
----------------------------------------------------------------------------

<Prev in Thread] Current Thread [Next in Thread>