foens / hpop

OpenPOP.NET code repository
http://hpop.sourceforge.net/
204 stars 114 forks source link

Attachment found with "FileName" property set to "(no name)" #62

Open filipmis opened 6 years ago

filipmis commented 6 years ago

Hi,

When sending email to email address that doesn't exist (e.g. someemailadress@mail.com), Office 365 can automatically reply with undeliverable email ("Your message to someemailadress@mail.com couldn't be delivered...")

When processing that mail, method "FindAllAttachments" in class "Message" finds attachment with "ContentType" set to "message/rfc822" and "FileName" property set to "(no name)". "ContentType" and "ContentDisposition" header properties don't contain file name information. Can this be fixed so that "FileName" property is set correctly with file name and extension?

With thanks, Filip