OnMessageExpunged MessageEventArgs returning UniqueId null
usamasarfraz opened this issue · comments
usamasarfraz commented
Jeffrey Stedfast commented
The expunged event will never get a UID.
Jeffrey Stedfast commented
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.
usamasarfraz commented
Thanks for your consideration.