procmail
[Top] [All Lists]

Re: header extraction: formail -x vs MATCH?

2003-02-24 05:49:40
On Sun, Feb 23, 2003 at 08:42:55PM -0800, Tyler F. Creelan wrote:

I was wondering whether it was more efficient to use formail or a
procmail recipe when extracting headers into variables. For example,
if you wanted to read in the Sender field, which of these is better:

SENDER=`formail -xSender:`

:0
* ^Sender:[   ]*\/.*
{ SENDER = ${MATCH} }

Is the procmail one faster because it doesn't have to fork another
process?

Yes, exactly.

-- 
dman

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

<Prev in Thread] Current Thread [Next in Thread>
  • Re: header extraction: formail -x vs MATCH?, Dallman Ross <=