I'm still stuck with this, as neither of the two suggestions seem to
work
for me!
I'm not able to follow the syntax of this one:
:0:
* ^From:.*\/\<[a-z0-9=+_-]+(_at_)blow(_dot_)com
* MATCH ?? ^^\/[^(_at_)]+
* $ ? grep -w $MATCH mylist
wasinlist
but I don't wish to store users at one site, but lots of sites, so they
will not all be in blow.com. The example is so complex I have no hope of
modifying it myself! Sorry.
The other suggestion:
FROMHEADER=`formail -c -rtz -x To:`
:0 :
* ? echo "${FROMHEADER}" | grep -F -isx -f $PMDIR/list.white
The other suggestion:
FROMHEADER=`formail -c -rtz -x To:`
:0 :
* ? echo "${FROMHEADER}" | grep -F -isx -f $PMDIR/list.white
$MAILDIDR/ok
looks a lot simpler and easier to understand, but I can't get it to
work. I notice there is no pipe into formail, which I need on my system as
I'm invoking procmail via the .forward file.
Any attempt to do something like:
SENDER=`| formail -c -tz -x "From:"`
just ends in disaster. While the formail command does indeed extract
the email address of the sender, I can't get it to set the variable.
I have tried this, which puts the email address of the sender in a file
if they are in my whitelist and does not put any address there if they
are not.
| ($FORMAIL -x "From:" ) | $GREP -f $HOME/white.list > /tmp/sender
Any suggestions/improvemnets welcome.
dave kirkby
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail