|Subject:||Re: STAT / LIST command is the same?|
|Posted by:||Remy Lebeau \(TeamB\) (email@example.com)|
|Date:||Tue, 23 Sep 2008|
"Indy" <t.ka…@hccnet.nl> wrote in message
> In function TIdPOP3.RetrieveMailBoxSize the STAT command
> sends a LIST... According to the RFC 1939 this is wrong.
RFC 1939 does not say that.
> The LIST should return the individual mail size (eg a record) if
> AMsgNo > 0 or a "scan listing" AMsgNo < 1 .
That is not how the LIST command works. Read the RFC again.
> Now it doesn't really mather if I call RetrieveMsgSize(i) or
> RetrieveMailBoxSize it always ends in LIST, while
> RetrieveMailBoxSize should send the STAT command
> and not a LIST.
That is not a requirement.
> Can you explain why this is implemented this way?
I'm guessing because STAT has a tendancy to timeout on large mailboxes,
whereas using LIST probably doesn't.
Remy Lebeau (TeamB)
STAT / LIST command is the same? posted by Indy on Mon, 22 Sep 2008