danzuep / MailKitSimplified

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

Storing mail in Draft folder #43

Closed MaxMelcher closed 8 months ago

MaxMelcher commented 8 months ago

Kudos to your great library - makes it super easy to consume! 👍

Do you plan to add an API to store messages in folders? In my case I want to store them in the DRAFT folder.

Cheers and thanks, Max

danzuep commented 8 months ago

Hi Max, thanks for the kudos!

Is this what you mean?

await imapReceiver.ImapClient.GetFolder(SpecialFolder.Drafts).AppendAsync(mimeMessage);

"SpecialFolder" isn't always available though, so I've committed a pre-release that can be used as follows:

await imapReceiver.MailFolderClient.DraftsFolder.AppendAsync(mimeMessage);

Let me know how it goes 🙂

MaxMelcher commented 8 months ago

Thanks a lot! 👍

danzuep commented 8 months ago

You're welcome @MaxMelcher. Please star the repository to show your thanks!

If you'd like to help even more, I'd love it if you could recommend me for a job at Microsoft 😄 LinkedIn profile here