Mr. Straw advised Mr. Battams,
| You'll have an easier time of it with the From_ header, since as
| extracted, what you're asking for it the first field - all the way up to
| the first space - no comments or anything else will be hanging around it:
|
| :0
| FROMADDR=|formail -x"From "|sed -e "s/\([^ ]*\) .*/\1/"
Heavens.
:0 # brackets enclose caret, space, tab; left side matches stingily
* ^^From.*\/[^ ]+
{ FROMADDR=$MATCH }
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail