Skip to content

Suggestions for IMAP session handling for mass/bulk-processing incoming mails? (IMAP IdleClient) #1723

Answered by jstedfast
rklec asked this question in Q&A
Discussion options

You must be logged in to vote

But what, if I now want to process the whole message. I guess:
downloading and processing a whole message may take some time

Depends on what kind of processing you are doing, but yea.

thus, if the connection is re-used, the client would not be informed about new messages, as it is not in the IDLE state, would it?

Not while you are processing the message, but you will be notified once your code re-engages with the ImapClient by sending pretty much any other command to the IMAP server.

thus, this could cause messages not being processed/skipped

That's not true. Once you finish processing your message, presumably you'd call client.Idle/Async() (or client.NoOp()) again and then you'd be…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rklec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants