I want to implement an email sending confirmation dialog box in my application. The application uses IMAP to communicate with the mail server, which is currently limited to Microsoft Exchange Server 2010.
The receipt is obviously automatically sent by the server when the flag is sent \Seen. Therefore, IMAP commands will look something like this:
c1 LOGIN username password
c2 SELECT mailbox
c3 UID STORE 123 flags \Seen
(By the way, this contradicts the solution found in another stack question , which said that setting the flag \Seenwould not send the receipt Exchange server.)
Although how to handle the case when the user does not want to send a receipt for reading?
My initial idea was simply not to set a flag \Seen. Although this forces the server to automatically send a notification to the sender that the message was deleted without reading if the message was deleted from the server.
In addition, the marking posts \Deletedand \Seento extract did not help:
c1 UID STORE 123 flags (\Deleted \Seen)
c1 UID EXPUNGE 123
So, how to explicitly prohibit a read receipt message if the user does not want to send it?
source
share