My ASP.NET(1.1) application acts as a pop3 client using TCPClient to retrieve messages from a special mailbox in Exchange 2003.
I can connect, log in, list and retrieve messages without problem. When I have finished processing a message, I use the DELE n command to delete the message, and I get a +OK returned. An immediate LIST or STAT shows the expected 0 messages. However, on the next connect, the messages are still in the mailbox.
Also, I can still see the deleted messages in OWA, and using Telnet. If I delete the messages using telnet, they are actually deleted.
I have enabled pop3 logging and the logs show no problems that I can see. I'll include a part of them at the end of this message.
Another thread asked the question: was the pop3 client configured to keep a copy of messages on the server? Well, I wrote this client, and sure didn't find any pop3 command that would do any such thing!
I'll code around this if I have to, but I sure would like to find a better solution.
Thanks in advance for any suggestions.
Tracy Spratt
...log snippet...
01/05/2006 19:20:11.152 (TID:11a8): POP3 connection accepted from 172.31.255.55
01/05/2006 19:20:11.152 >>> (TID:11a8): +OK Microsoft Exchange Server 2003 POP3 server version 6.5.6944.0 (lexch.lariatinc.com) ready.
01/05/2006 19:20:11.152 <<< (TID:11a8): USER lariatinc\ghost
01/05/2006 19:20:11.152 >>> (TID:11a8): +OK
01/05/2006 19:20:11.152 <<< (TID:11a8): PASS <password>
01/05/2006 19:20:11.152 >>> (TID:11a8): +OK User successfully logged on.
01/05/2006 19:20:11.152 <<< (TID:11a8): STAT
01/05/2006 19:20:11.152 >>> (TID:11a8): +OK 3 4154
01/05/2006 19:20:11.152 <<< (TID:11a8): RETR 1
01/05/2006 19:20:11.152 >>> (TID:11a8): +OK
01/05/2006 19:20:11.152 >>> (TID:11a8): <1365 bytes of message data omitted from the log>
01/05/2006 19:20:11.152 >>> (TID:11a8): .
01/05/2006 19:20:11.417 <<< (TID:11a8): DELE 1
01/05/2006 19:20:11.417 >>> (TID:11a8): +OK
01/05/2006 19:20:11.417 <<< (TID:11a8): RETR 2
01/05/2006 19:20:11.433 >>> (TID:11a8): +OK
01/05/2006 19:20:11.433 >>> (TID:11a8): <1392 bytes of message data omitted from the log>
01/05/2006 19:20:11.433 >>> (TID:11a8): .
01/05/2006 19:20:11.964 <<< (TID:17b8): DELE 2
01/05/2006 19:20:11.964 >>> (TID:17b8): +OK
01/05/2006 19:20:11.964 <<< (TID:17b8): RETR 3
01/05/2006 19:20:11.964 >>> (TID:17b8): +OK
01/05/2006 19:20:11.964 >>> (TID:17b8): <1397 bytes of message data omitted from the log>
01/05/2006 19:20:11.964 >>> (TID:17b8): .
01/05/2006 19:20:12.292 <<< (TID:11a8): DELE 3
01/05/2006 19:20:12.292 >>> (TID:11a8): +OK
01/05/2006 19:20:12.308 <<< (TID:11a8): STAT
01/05/2006 19:20:12.308 >>> (TID:11a8): +OK 0 0
01/05/2006 19:20:35.839 (TID:11a8): Closing connection to 172.31.255.55
01/05/2006 19:45:30.253 (TID:93c): POP3 connection accepted from 172.31.255.55
01/05/2006 19:45:30.268 >>> (TID:93c): +OK Microsoft Exchange Server 2003 POP3 server version 6.5.6944.0 (lexch.lariatinc.com) ready.
01/05/2006 19:45:30.268 <<< (TID:93c): USER lariatinc\ghost
01/05/2006 19:45:30.268 >>> (TID:93c): +OK
01/05/2006 19:45:30.268 <<< (TID:93c): PASS <password>
01/05/2006 19:45:30.268 >>> (TID:93c): +OK User successfully logged on.
01/05/2006 19:45:30.268 <<< (TID:93c): STAT
01/05/2006 19:45:30.268 >>> (TID:93c): +OK 3 4154
01/05/2006 19:45:30.268 <<< (TID:93c): RETR 1
01/05/2006 19:45:30.268 >>> (TID:93c): +OK
01/05/2006 19:45:30.268 >>> (TID:93c): <1365 bytes of message data omitted from the log>
01/05/2006 19:45:30.268 >>> (TID:93c): .
01/05/2006 19:45:30.541 <<< (TID:93c): DELE 1
01/05/2006 19:45:30.541 >>> (TID:93c): +OK
01/05/2006 19:45:30.541 <<< (TID:93c): RETR 2
01/05/2006 19:45:30.541 >>> (TID:93c): +OK
01/05/2006 19:45:30.541 >>> (TID:93c): <1392 bytes of message data omitted from the log>
01/05/2006 19:45:30.541 >>> (TID:93c): .
01/05/2006 19:45:33.768 <<< (TID:28c): DELE 2
01/05/2006 19:45:33.768 >>> (TID:28c): +OK
01/05/2006 19:45:33.768 <<< (TID:28c): RETR 3
01/05/2006 19:45:33.768 >>> (TID:28c): +OK
01/05/2006 19:45:33.768 >>> (TID:28c): <1397 bytes of message data omitted from the log>
01/05/2006 19:45:33.768 >>> (TID:28c): .
01/05/2006 19:45:34.286 <<< (TID:93c): DELE 3
01/05/2006 19:45:34.286 >>> (TID:93c): +OK
01/05/2006 19:45:34.286 <<< (TID:93c): LIST
01/05/2006 19:45:34.286 >>> (TID:93c): +OK 0 0
01/05/2006 19:45:34.286 >>> (TID:93c): .
01/05/2006 19:52:52.211 (TID:93c): Closing connection to 172.31.255.55
I can connect, log in, list and retrieve messages without problem. When I have finished processing a message, I use the DELE n command to delete the message, and I get a +OK returned. An immediate LIST or STAT shows the expected 0 messages. However, on the next connect, the messages are still in the mailbox.
Also, I can still see the deleted messages in OWA, and using Telnet. If I delete the messages using telnet, they are actually deleted.
I have enabled pop3 logging and the logs show no problems that I can see. I'll include a part of them at the end of this message.
Another thread asked the question: was the pop3 client configured to keep a copy of messages on the server? Well, I wrote this client, and sure didn't find any pop3 command that would do any such thing!
I'll code around this if I have to, but I sure would like to find a better solution.
Thanks in advance for any suggestions.
Tracy Spratt
...log snippet...
01/05/2006 19:20:11.152 (TID:11a8): POP3 connection accepted from 172.31.255.55
01/05/2006 19:20:11.152 >>> (TID:11a8): +OK Microsoft Exchange Server 2003 POP3 server version 6.5.6944.0 (lexch.lariatinc.com) ready.
01/05/2006 19:20:11.152 <<< (TID:11a8): USER lariatinc\ghost
01/05/2006 19:20:11.152 >>> (TID:11a8): +OK
01/05/2006 19:20:11.152 <<< (TID:11a8): PASS <password>
01/05/2006 19:20:11.152 >>> (TID:11a8): +OK User successfully logged on.
01/05/2006 19:20:11.152 <<< (TID:11a8): STAT
01/05/2006 19:20:11.152 >>> (TID:11a8): +OK 3 4154
01/05/2006 19:20:11.152 <<< (TID:11a8): RETR 1
01/05/2006 19:20:11.152 >>> (TID:11a8): +OK
01/05/2006 19:20:11.152 >>> (TID:11a8): <1365 bytes of message data omitted from the log>
01/05/2006 19:20:11.152 >>> (TID:11a8): .
01/05/2006 19:20:11.417 <<< (TID:11a8): DELE 1
01/05/2006 19:20:11.417 >>> (TID:11a8): +OK
01/05/2006 19:20:11.417 <<< (TID:11a8): RETR 2
01/05/2006 19:20:11.433 >>> (TID:11a8): +OK
01/05/2006 19:20:11.433 >>> (TID:11a8): <1392 bytes of message data omitted from the log>
01/05/2006 19:20:11.433 >>> (TID:11a8): .
01/05/2006 19:20:11.964 <<< (TID:17b8): DELE 2
01/05/2006 19:20:11.964 >>> (TID:17b8): +OK
01/05/2006 19:20:11.964 <<< (TID:17b8): RETR 3
01/05/2006 19:20:11.964 >>> (TID:17b8): +OK
01/05/2006 19:20:11.964 >>> (TID:17b8): <1397 bytes of message data omitted from the log>
01/05/2006 19:20:11.964 >>> (TID:17b8): .
01/05/2006 19:20:12.292 <<< (TID:11a8): DELE 3
01/05/2006 19:20:12.292 >>> (TID:11a8): +OK
01/05/2006 19:20:12.308 <<< (TID:11a8): STAT
01/05/2006 19:20:12.308 >>> (TID:11a8): +OK 0 0
01/05/2006 19:20:35.839 (TID:11a8): Closing connection to 172.31.255.55
01/05/2006 19:45:30.253 (TID:93c): POP3 connection accepted from 172.31.255.55
01/05/2006 19:45:30.268 >>> (TID:93c): +OK Microsoft Exchange Server 2003 POP3 server version 6.5.6944.0 (lexch.lariatinc.com) ready.
01/05/2006 19:45:30.268 <<< (TID:93c): USER lariatinc\ghost
01/05/2006 19:45:30.268 >>> (TID:93c): +OK
01/05/2006 19:45:30.268 <<< (TID:93c): PASS <password>
01/05/2006 19:45:30.268 >>> (TID:93c): +OK User successfully logged on.
01/05/2006 19:45:30.268 <<< (TID:93c): STAT
01/05/2006 19:45:30.268 >>> (TID:93c): +OK 3 4154
01/05/2006 19:45:30.268 <<< (TID:93c): RETR 1
01/05/2006 19:45:30.268 >>> (TID:93c): +OK
01/05/2006 19:45:30.268 >>> (TID:93c): <1365 bytes of message data omitted from the log>
01/05/2006 19:45:30.268 >>> (TID:93c): .
01/05/2006 19:45:30.541 <<< (TID:93c): DELE 1
01/05/2006 19:45:30.541 >>> (TID:93c): +OK
01/05/2006 19:45:30.541 <<< (TID:93c): RETR 2
01/05/2006 19:45:30.541 >>> (TID:93c): +OK
01/05/2006 19:45:30.541 >>> (TID:93c): <1392 bytes of message data omitted from the log>
01/05/2006 19:45:30.541 >>> (TID:93c): .
01/05/2006 19:45:33.768 <<< (TID:28c): DELE 2
01/05/2006 19:45:33.768 >>> (TID:28c): +OK
01/05/2006 19:45:33.768 <<< (TID:28c): RETR 3
01/05/2006 19:45:33.768 >>> (TID:28c): +OK
01/05/2006 19:45:33.768 >>> (TID:28c): <1397 bytes of message data omitted from the log>
01/05/2006 19:45:33.768 >>> (TID:28c): .
01/05/2006 19:45:34.286 <<< (TID:93c): DELE 3
01/05/2006 19:45:34.286 >>> (TID:93c): +OK
01/05/2006 19:45:34.286 <<< (TID:93c): LIST
01/05/2006 19:45:34.286 >>> (TID:93c): +OK 0 0
01/05/2006 19:45:34.286 >>> (TID:93c): .
01/05/2006 19:52:52.211 (TID:93c): Closing connection to 172.31.255.55