Search code examples
c#imapgmail-imap

IMAP append message


I'm looking for an IMAP4 library for .NET (preferably working on Mono out of the box) which can Create new messages in mailbox, returns the ID of this new message allowing later to delete the message by that ID. None of the ones I tried (Lumisoft, AE.Net.Mail, ImapX) can do this simple stuff. Is there any full-featured IMAP4 implementation for .NET?


Solution

  • Take a look at Mail.dll IMAP library.

    It supports UIDPLUS:

    long? uid = imap.UploadMessage("[Gmail]/Sent Mail", email);
    
    imap.DeleteMessageByUID((long)uid);
    

    Please note that this is a commercial product I created.