danzuep / MailKitSimplified

Send and receive emails easily, fluently, with one line of code for each operation.
MIT License
80 stars 10 forks source link

GetMimeMessageAsync Removed #65

Closed faisalbwn closed 6 months ago

faisalbwn commented 6 months ago

Dear @danzuep ,

I updated the version from NuGet and no more find the GetMimeMessageAsync in newer version as follows:

// Fetch email message against presisted uid MimeMessage mimeMessage = await _imapReceiver.ReadMail.GetMimeMessageAsync(new UniqueId(uniqueId), cancellationToken);

danzuep commented 6 months ago

It had this attribute on it for a while before it was removed in this commit: [Obsolete("Use Range(uniqueId).GetMimeMessagesAsync() instead.")]. I should have waited for a major version change to remove it though, my bad.

danzuep commented 6 months ago

Here's the updated method: await imapReceiver.ReadMail.Range(uniqueId) .GetMimeMessagesAsync(cancellationToken);

Here's the relevant section of the wiki: var reader = imapReceiver.ReadMail.Range(UniqueId.MinValue);