+1 vote

If we call in parallel for each GetHeadersByUID method throws an exception

"The Write method cannot be called when another write operation is pending."

by
edited

1 Answer

0 votes
 
Best answer

Imap instance represents a single connection to the IMAP server.

You can't invoke any method on this object (apart for IdleStop) in parallel.

You can, of course, create several Imap instances (representing many connections to the server) and use them in parallel from different threads.

by (297k points)
selected by
...