On Wed, 2 Jan 2002, SP wrote:

> How can I forward emails with an .EXE attachment to [EMAIL PROTECTED] 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

-- 
Homer:  Hey, Burns!  Eat my shorts!

Burns:  Who the Sam Hill was that?

                   One Fish, Two Fish, Blowfish, Blue Fish


Visit my webpage at http://www.ncst.ernet.in/~philip/
Read my writings at http://www.ncst.ernet.in/~philip/writings/

  MSN  philiptellis                         Yahoo!  philiptellis
  AIM  philiptellis                         ICQ     129711328


_______________________________________________
Meeting on 6th 4pm at IIT Mumbai. See http://www.ilug-bom.org.in/meet/
http://mm.ilug-bom.org.in/mailman/listinfo/linuxers

Reply via email to