The statement from Yahoo is mis-leading..The last command only works within transaction state of the session your are logged on to...once the state ends via a RSET or a QUIT it is reset. It will not remember message numbers across transactions (logons)
 
From RFC 1225:
 
 
 LAST
               Arguments: none
               Restrictions: may only be issued in the TRANSACTION state.
               Discussion:

                 The POP3 server issues a positive response with a line
                 containing the highest message number which accessed.
                 Zero is returned in case no message in the maildrop has
                 been accessed during previous transactions.  A client
                 may thereafter infer that messages, if any, numbered
                 greater than the response to the LAST command are
                 messages not yet accessed by the client.

             Possible Response:
                   +OK nn

             Examples:
                   C:      STAT
                   S:      +OK 4 320
                   C:      LAST
                   S:      +OK 1
                   C:      RETR 3
                   S:      +OK 120 octets
                   S:      <the POP3 server sends the entire message
                           here>
                   S:      .
                   C:      LAST
                   S:      +OK 3
                   C:      DELE 2
                   S:      +OK message 2 deleted
                   C:      LAST
                   S:      +OK 3
                   C:      RSET
                   S:      +OK
                   C:      LAST
                   S:      +OK 1
ERic S
 
----- Original Message -----
Sent: Wednesday, December 22, 2004 6:19 PM
Subject: [IMail Forum] checking mail via Yahoo

Hi,
 
A customer of ours is checking his email via his ISP's mail client - Yahoo.  He is getting every message (new and old) every time he hits Receive.  The interval at which he checks his mail is every 15 minutes.  He is keeping copies of his messages on the server.  From Yahoo's help site:
 
"The POP3 protocol, which we use to retrieve messages from your external mail accounts, provides a command named LAST. It determines the last message "seen" on the external mail server, at any time from any computer. When you use the "Check Other Mail" option, we use this command to distinguish those messages which are new and should be downloaded from those which have already been seen.

Although nearly all mail servers support the LAST command, a few do not. If you happen to be using one that doesn't, then when you click the "Get POP Mail" button, all of the messages in your Inbox will be retrieved, rather than only the new messages"

Does iMail support the LAST command?  If not, is there another way around this?

Thanks,

Michele

Reply via email to