Tom Lawrence wrote:
This one works for me.
:0B
*
^Content-(Type|Disposition):.*name=.*\.\/(avi|mp3|wav|lnk|bat|pif|exe|com|vbs|shs|hta|scr|chm)
/where/ever
:0B
* ^Content-Type
* *name=".*\/(mp3|wav|lnk|bat|pif|exe|com|vbs|shs|hta|scr|chm|avi)"
/where/ever
Just curious - can't Content-type also be in the headers? Why are you
only scanning the body?
Also why are you extracting the filename extension but not using it?
* *name=".*\/(mp3|wav|lnk|bat|pif|exe|com|vbs|shs|hta|scr|chm|avi)"
----^
What is the '*' doing in the first part of the second recipe? You're
taking the kleene closure of ' ' but the regexp isn't anchored to a
newline, so it's not clear how this is useful.
M.
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail