Alan Clifford writes:
On Mon, 4 Jun 2007, John Conover wrote:
JC> Also, a record in an SMTP header can span lines, so:
JC>
JC> #
JC> # Folded whitespace, (the characters between the block braces are a
JC> # tab character, hex 09, followed by a space character, hex 20):
JC> #
JC> WS='[ ]*($[ ]+)*'
JC>
JC> is a better
Procmail unfolds headers, if I recall correctly.
Thanks, Alan. You are correct-indeed it does-but only in the header,
(before the ^$.) For example:
* $ ^content-type:${WS}some-mime-format
would be unfolded correctly in the header by procmail, but not in the
body of the email, (when using WS='[ ]', e.g. a tab and a space, for a
folded record in the body.)
However, WS='[ ]*($[ ]+)*', (as per the BNF of RFC822 3.1.1,) would
unfold both, correctly, (resolving the ambiguity between searching the
header, and/or, the body with the same conditional.)
Since most searches involve only the header, its probably only a
formal issue.
John
--
John Conover, conover(_at_)rahul(_dot_)net, http://www.johncon.com/
____________________________________________________________
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