0
votes

I'm playing around with MailKit, and I'm wondering what will be the right approach to use?

I want my app to sync will all emails in inbox on startup, and once done, the listen for incoming emails, while I'm able to move other emails around from inbox to another subfolder.

I see that the ImapClient needs to be in "IDLE" mode to listen for incoming emails, while you have to get out of IDLE mode when you want to move emails around between folders.

Would it make sense to create 2 client connections to the same mail account? One to go into IDLE mode and listen for new incoming mails, and one to do operations on the mails in the account???

1

1 Answers

3
votes

You could do that, or you could just stop idling when new mail arrives, move whatever messages you need to move, and then re-enter IDLE mode.