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. 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. No such check is done when calculating the size to report, resulting in this discrepancy.
IIRC, this never happens using Courier as your MTA, since it'll strip off the carriage returns in the file. It can happen if you're using Qmail or Postfix as your MTA.
------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id78&alloc_id371&op=click _______________________________________________ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
