Feature question, ImapX.Attachment

Topics: Feature Requests
Sep 25, 2013 at 5:56 PM
Is there a anmar.SharpMimeTools.MimeMediaSubType equivalent in the ImapX.Attachment class?
Best regards,
Sep 25, 2013 at 6:11 PM
Edited Sep 25, 2013 at 6:16 PM
Hi ak89,

the version does not provide this information, but I implemented it in the coming release which I'm preparing for public release now.
The attachment will have a property ContentType of type System.Net.Mime.ContentType:
public class Attachment
    public string ContentId;

    public byte[] FileData;

    public string FileName;

    public bool Downloaded;
    public System.Net.Mime.ContentType ContentType;

    public ImapX.Enums.ContentTransferEncoding ContentTransferEncoding;

    public void Save(string folder, string fileName = null);

    public long Size;
It won't take long until i finished the missing tests and fixes.

Kind regards,

Pavel Azanov
Sep 25, 2013 at 6:18 PM
Thank you, waiting for it.
Best regards,