On Wed, 2 Jan 2002, SP wrote:
How can I forward emails with an .EXE attachment to junk@my_company.com id.
procmail. You will have to scan the body of the mail, not the header (B flag) Look for the Content-type and Content-disposition headers
Content-type may have a name="..." part, while Content-disposition may have a filename="..." part (both after the main data and a semicolon).
eg: Content-type: application/octet-stream; name="something.exe" Content-disposition: attachment; filename="something.exe"
Some clients do not set one of these fields, that is a bug. There is also no guarantee that there will be a name/filename part, or that they will contain valid information. Also no guarantee that the content-type will match the filename. (you could have text/plain; name="something.exe")
Philip