On 14-Dec-2008, at 11:18, Dave Wood wrote:
# do filtering against whitelist
FROM=`formail -xFrom: | cut -f 2 -d '<' | cut -f 2 -d '@' | cut -f 1
-d
'>'`
Why??
# get the From: address as an address component ONLY (no
comments)
:0 h
CLEANFROM=|formail -IReply-To: -rtzxTo:
# username portion
:0
* CLEANFROM ?? ^\/[^(_at_)]+
{ FROM_USER=$MATCH }
# domain portion
:0
* CLEANFROM ?? @\/.*
{ FROM_DOMAIN=$MATCH }
--
"You're an elf and you're going to wear panties like an elf." --
David Sedaris, Santaland Diaries
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail