Gordon Messmer writes:
Sam Varshavchik wrote:
Gordon Messmer writes:
Bhavin Modi wrote:
I am facing problems with pop3 connections.
I am using postfix, courier-imap with mysql. We ae facing problem
with one of the accounts. The pop3 connection terminates abnormally
while downloading a specific mail. I saw the contents of the mail and
it said
Run the message file through 'od -c'. See if the message contains DOS
style line feeds. If so, courier will report the wrong message size
to the client, and the client will hang waiting for more data (and
eventually time out).
Nonsense. The POP3 protocol does not “report” a message size, unlike IMAP.
The POP3 server replies to the LIST command with a list of messages and
their byte count.
Irrelevant. when the message is retrieved, it gets terminated by a single
line that contains a period. The octet count shown by LIST is for
informational purposes only, and is completely irrelevant otherwise.
The byte count is calculated by Courier's POP3 server
by counting each byte in the file, and counting unix linefeeds twice.
When the client retrieves the message, many expect exactly the number of
bytes reported by LIST. However, if the file itself has DOS linefeeds
already, the size reported by POP3D will not be the actual size of the
file sent, because POP3D only adds a carriage return to the linefeed if
it isn't there.
Are you absolutely sure of that?