views:

78

answers:

3

Hello I Am writing Pop3 client for gmail. The problem is that when the email is downloaded then it deletes from pop3 server. I have tried sending RSET command to server but it dose not work.

Do i have to send RSET just before disconnecting or after downloading each mail?

+1  A: 
Kieren Johnstone
DEL is newer send to server and i send RSET just before Quit command but next time i check Pop3 list there is no mail.
Woland
I have tried other pop3 server and it seems that it's google issue.
Woland
A: 

Google doesn't handle POP3 in a conventional sense. Once you have downloaded a mail then it is flagged as downloaded and POP3 will act like it has been deleted. But in reality they keep a copy of the mail on the server.

Chris Diver
A: 

Gmail's POP3 configuration maybe sometimes confusing. In the Gmail's web interface in "Settings" on "Forwarding and POP/IMAP" tab you can find a drop down list called "When messages are accessed with POP".

Here's the value list and the Gmail's behavior:

a. "delete Gmail's copy": Message is deleted by issuing RETR command.

b. "keep Gmail's copy in the Inbox": Message stays in the Inbox, Web interface says it's unread, however message is not received for the second time using POP3 client.

c. "archive Gmail's copy": Message is deleted by issuing RETR command, however it is possible to find it using web interface.

Gmail simply ignores DELE command, and does not follow POP3 standard.

Pawel Lesnikowski