Jon Rowlan wrote: > I have searched the FAQ and Archives .... > > I am trying to extract just the attachments from mail messages in a > POP3 mailbox.
Use TMimeDec to decode the message. A demo program is available in directory ICS-Root/Delphi/Internet. > Having tested two emails I am confused. > > Both have a single attachment, one is a PDF file and appears to be > quite clearly identified with a "Disposition=attachment" indicator, > the other however is a forwarded mail. > > In Outlook this appears as an attachment but there is no > "disposition=attachment" to suggest that its an attachment. A file attachment can be identified if it has either the filename or the name property or both assigned in its part header: Content-Type: application/x-zip-compressed; name="my.zip" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="my.zip" --- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be