jstedfast / MailKit

A cross-platform .NET library for IMAP, POP3, and SMTP.

Home Page:http://www.mimekit.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OnMessageExpunged MessageEventArgs returning UniqueId null

usamasarfraz opened this issue · comments

The expunged event will never get a UID.

To add a little more background (was on my phone earlier):

MessageEventArgs is used as args for many of the message-related events emitted by ImapFolder where the UID is often available and that's why it has the UniqueId property.

Perhaps, in hindsight, I should have used a special MessageExpungedEventArgs which only had an int Index property for this event, but it seemed overkill at the time.

Thanks for your consideration.