procmail
[Top] [All Lists]

RE: whitelist matching (was: How do I get the message body ???)

2002-08-14 09:07:27
I played with the commands you proposed last:

FROM=`formail -x From: | sed /^[^(_at_)]*$/&medphys.ucl.ac.uk/`
        :0:
        * $ ? grep -iw $FROM $HOME/white.list
        ok

which produced:

procmail: Executing "formail -x "From:" | sed
/^[^(_at_)]*$/&medphys.ucl.ac.uk/"
Illegal variable name.
procmail: [11070] Wed Aug 14 16:06:07 2002
procmail: Assigning "FROM="

Okay, what shell is procmail running under?  Be sure you have up
near the very top

        SHELL=/bin/sh



and

        :0
        ^From:[^(_at_)]+$
        { FROM=`formail -x From: | sed /^[^(_at_)]*$/&medphys.ucl.ac.uk/` }
        :0 E  # `E'lse
        { FROM=`formail -x From:` }

        :0:
        * $ ? grep -iw $FROM $HOME/white.list
        ok

This last one seems to create a file $MAILDIR/^From:[^(_at_)]+$

Hmm.  Same remark about shell.  Otherwise, I'm stumped at the moment.
It's pretty routine, although I haven't actually tried running the
recipes I suggested.

Maybe someone on the list has more ideas.  (I'm very tired today.)


I posted some of this to the list last night, but it did not appear.

You might have sent it from an unsubscribed address, which will delay
the arrival of the posts until the moderator sees and forwards them.

Dallman

-- 
Dallman Ross

"If you find a path with no obstacles, it probably does not lead to
anywhere."
        Thoughts of Rev. Sunnan Kubose, from _Zen in the Markets_ 

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