procmail
[Top] [All Lists]

Variables creation

2004-01-26 12:19:09
Hello,

please, isn't there some simpler/quicker way to suck variables from
incomming mail then usage of formail ? Is this really the only solution:
TO_HEAD=`formail -x "To:"`

And what, if I need to suck only the part of it, e.g. only the domain ? Is
this proper way:
DOMAIN=`formail -x "From:" | awk -F@ '{ print $2 }' | awk -F '>' '{ print
$1 }'`

It seems to be slow and consuming too much memory and processor time, isn't
it ?

Please advice the novice :-)))

Peter Rosa


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