danzuep / MailKitSimplified

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

Storing mail in Draft folder #43

Closed MaxMelcher closed 1 year ago

MaxMelcher commented 1 year 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 1 year 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 1 year ago

Thanks a lot! 👍

danzuep commented 1 year 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