On Thu, 2 May 2002, Pantelis Hadzipantelis wrote:
On another note, why use ^Content-Type?
He's looking in the top-level message header for Content-Type to avoid
scanning the bodies of non-multipart mail for possible attachments. It's
an optimization.
But in Content-Disposition you do get a filename extension...
Content-Type can contain a name= parameter as well; it's not standard, but
a few MUAs use/recognize it.
On Thu, 2 May 2002, John D. Hardin wrote:
On Thu, 2 May 2002, Bart Schaefer wrote:
* -1^1 ^Content-Disposition:.*\.(doc|xls)
That fails on multiline MIME headers.
Right, I was thinking of the top-level header where procmail does the
unfolding for you. This should be better:
* -1^1 ^Content-Disposition:(.|^[ ])*\.(doc|xls)
(space and tab in the [] as usual).
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail