Glen Solsberry asks:
From procmail-admin(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE Mon May 14
09:19:30 2001
From: "Mr. Wade" <wadem(_at_)suwanneevalley(_dot_)net>
Date: Mon, 14 May 2001 09:18:45 -0400
To: procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
Subject: Re: FROM field
What I need is this field:
From procmail-admin(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
How do I get that?
To get it (without the word "From "), include this condition:
* ^From +\/[^ ]+
and it will be in the variable accessed as $MATCH in the
recipe you include it in. (The brackets contain three characters,
a carat, space, and tab). That will take all non-whitespace
characters starting with the first non-whitespace character
after the string "From " at the start of a header.
Or you can put it into a variable for use in a bunch of recipes,
by (for example):
:0
* ^From +\/[^ ]+
{ RETURNPATH="$MATCH" }
HTH,
Stan
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail