procmail
[Top] [All Lists]

Re: extract username from email address

2005-09-26 15:18:44
Robert Allerstorfer schreef:

# user(_at_)domain(_dot_)tld
:0 h
CLEANFROM=|formail -IReply-To: -rtzxTo:

Why is the 'h' flag set here,

It limits the amount of data that is sent to the filter.


isn't it recommended not to use it if it
is the only one?

You're mixing up the H- and the h-flag.


Why do we need to call an external program (formail), while that
should be possible with pure-procmail code?

It is not (completely) possible with pure-procmail code.
This has been spoken about many times before. See the ABNF
in RFC 2822. Bart Schaeffer came close:
http://info.ccone.at/INFO/Mail-Archives/procmail/Jul-2002/msg00050.html


And how can we be sure that the external call does not fail when the
exit code is not checked?

You can check the receiving variable.

-- 
Grtz, Ruud


____________________________________________________________
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

<Prev in Thread] Current Thread [Next in Thread>