On Mon, 6 May 2002, Matt Garretson wrote:
[...]
* $ content-[^:]+:${WS}*.+(\<)*(file)?name${WS}*=${WS}*\/.+\.${BAD_EXEs}
The key to matching the multi-line cases is the (\<)* which,
the way i figure it, should eat up any contiguous newlines
(potentially followed by more newlines & whitespace), but
should match nothing at all in the single-line cases (since
the .+ would already have eaten everything up to the
(file)?name part.
John Conover talk about this problem in:
http://www.johncon.com/john/QuarantineAttachments/
If $WS included the "\n":
WS='[ ]*($[ ]+)*'
or:
WS='([ ]|$)+'
You do not need the (\<)* trick.
Bye,
Udi
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail