Subject: Attachment FileName not read in some case Date: 2012-10-16 18:22:12 From: Klaus-Dieter Buchl Source: attachment-filename-not-read-case ----------------------------------------------------------------------Dear ComponentPro Team,
reading messages to get their attachments does not fill the FileName property of ImapMessagePart.
1. Original content part of the message:
--------_=_NextPart_001_F760E82E.0DA6B140
Content-Type: text/plain;
charset="us-ascii"
Content-Disposition: attachment; filename="migration.result"
2. Content part after copy with Outlook
--------_=_NextPart_001_15A37157.649A4C46
Content-Type: text/plain;
name="migration.result"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment; filename="migration.result"
Problem
While the filename is not read from the 1. notation, the second notation in 2. is read with setting the filename property.
This appears to be the case when using:
ImapClient.ListMessages(EnvelopeParts.BodyStructure)
and
ImapClient.DownloadImapMessage(uniqueID, EnvelopeParts.BodyStructure)
Please extend your MIME parser. Looks like a misnomer in your code between "name" and "filename".
Regards
---------------------------------------------------------------------- Note: This question has been asked on the Q&A forum of Thang Dang's fraudulent ComponentPro brand If you purchased anything from ComponentPro, you have been scammed. Contact the payment processor who sold you the license and ask for your money back. Back to ComponentPro Q&A Forum Index