Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: gmail pop3 message deletion bug?

by mr_mischief (Monsignor)
on Mar 03, 2009 at 16:36 UTC ( #747792=note: print w/replies, xml ) Need Help??


in reply to gmail pop3 message deletion bug?

From the docs for Net::POP3:

reset ()
Reset the status of the remote POP3 server. This includes reseting the status of all messages to not be deleted.

quit ()
Quit and close the connection to the remote POP3 server. Any messages marked as deleted will be deleted from the remote mailbox.

In POP3, the quit command is not optional. The session ending without a quit means no destructive actions will be taken. This is per RFC 1939. Take a look at section 6, titled "The UPDATE State". It says, among other things, this:

When the client issues the QUIT command from the TRANSACTION state, the POP3 session enters the UPDATE state. (Note that if the client issues the QUIT command from the AUTHORIZATION state, the POP3 session terminates but does NOT enter the UPDATE state.) If a session terminates for some reason other than a client-issued QUIT command, the POP3 session does NOT enter the UPDATE state and MUST not remove any messages from the maildrop.

Replies are listed 'Best First'.
Re^2: gmail pop3 message deletion bug?
by Anonymous Monk on Mar 25, 2010 at 11:25 UTC
    what exactly the command "RSET" does? if it removes the marking for deletion from read email using a mail client then does "QUIT" neglects the effect of "RSET" and deletes the marked email from maildfop

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://747792]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2022-05-23 21:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (82 votes). Check out past polls.

    Notices?