procmail
[Top] [All Lists]

Re: Unlikely digraph

2004-03-28 15:59:47
On Mar 28, 2004, at 3:05 PM, fleet(_at_)teachout(_dot_)org wrote:
I'm testing the usefullnes of the following recipe. So far it's working pretty well as long as I place it more or less last in my list of included
RCs.


:0 h
* CLEANFROM=|formail -IReply-To: -rtzxTo:

:0 h
* $ ^Subject:$WS*\/[^$WS].*
{ SUBJECT=$MATCH }

# :0 #Identifies unlikely digraphs in the From: field.
# * ^From:[       ].*<\/.*@
# * $MATCH ?? (a[abjoqwx]|\
#              b[dfghjkmnpqvwxz]|\
#              c[bfgjnpqvwxz]|\
#              d[cdfklpquwxz]|\
#              e[fhjkqu]|\
#              etc.)
{
  DIGRPAH=$MATCH
  LOG="From ($CLEANFROM) contains $DIGRPAH"
  :0fw
  | formail -I"Subject: (DG: $DIGRAPH) $SUBJECT"

  :0:  #needed if destination is a mbox
  spam
}

is what I would likely do.  Course, the subject tagging is optional.

BTW< I would think you would get far too many hits on this based on people who have email addresses of first initial last name (jsmith, bwilliams, eharlan, etc).

--
Hey, baby, I've got just the cure for that penis envy back at my apartment...


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

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