Quantcast
Channel: Email and calendar - Recent Threads
Viewing all articles
Browse latest Browse all 12880

IMAP not reflect "EXPUNGE" when I delete message

$
0
0

Hello all,

I connect to IMAP server (outlook.office365.com 993) from my application and use IDLE command for polling the server for changes to the mailbox. Server sends:
1. EXISTS, RECENT when I receive new message in OWA
2. FETCH (FLAGS (\Seen \Recent)) when mark message as read in OWA

But I do not receive EXPUNGE when I delete message from mailbox in OWA.
I use trial version of Office365, account does not connect to Outlook(only OWA)

I know that Office365 use encryption but the simplest scenario for reproducing is(I can not make these steps on Office365, but I can make steps on my local Exchange server):
(I attach scenario with images)

1. in terminal(command line) enter command 'telnet xxx.xxx.xxx.xxx 143', where xxx.xxx.xxx.xxx is IP address of email server, 143 - IMAP port
2. enter command '? login <login> <password>'
3. enter command 'SELECT INBOX'
4. enter command '? IDLE'
5. send message to <login> from another account and check command line: you will see EXISTS and RECENT
6. read message via OWA and check command line: you will see FETCH <FLAGS <\Seen \Recent>>
7. Delete message via OWA and check command line: you will see EXPUNGE

My problem is: Office365 does not send EXPUNGE  when I delete message via OWA.
According to RFC "The IDLE command is sent from the client to the server when the client is ready to accept unsolicited mailbox update messages.  The server requests a response to the IDLE command using the continuation ("+") response.  The IDLE command remains active until the client responds to the continuation, and as long as an IDLE command is active, the server is now free to send untagged EXISTS, EXPUNGE, and other messages at any time."

Microsoft Online Service  said:
The reason for that being:
O  When we delete any e-mail from Outlook Web App, it goes to the "deleted items" folder. It is still there in the mailbox.
O  For the "EXPUNGE" to appear, it has to go out of the mailbox.
O  Also the deleted e-mails are still stored on the Microsoft Server even after purging them. So this could be one of the reasons for the issue.
O  As long as you can delete it from Outlook, there should not be any concern.

But why other cloud servers(for examplr gmail) sent "EXPUNGE" when I delete message(they are in "deleted items")

Thanks,
Lyubov

Viewing all articles
Browse latest Browse all 12880

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>