On Tue, 10 Sep 2002 15:54:39 +0200 (CET) Vadim Zeitlin 
<[EMAIL PROTECTED]> wrote:

VZ> On Tue, 10 Sep 2002 14:48:40 +0200 Xavier Nodet <[EMAIL PROTECTED]> wrote:

VZ> XN> Here is a log file where M did give me a 'Frankenstein'. 
VZ> XN> 
VZ> XN> My understanding is that the problem comes from the fact that the
VZ> XN> connexion between M and my (local) POP3 server breaks right after the
VZ> XN> body of the mail being downloaded. It seems that there is a missing
VZ> XN> check around there...

VZ>  That it would be a POP-only bug seems plausible -- this would explain why
VZ> I've never seen it. However looking at the log all I see is that the
VZ> connection is broken when "DELE 1" is done and I don't know why/how would
VZ> this result in this kind of monster?

VZ>  Do you have any hints?

Yes.

In pop3.c, there is a function
  unsigned long pop3_cache (MAILSTREAM *stream,MESSAGECACHE *elt)

One line of this function is 
      LOCAL->txt = netmsg_slurp (LOCAL->netstream,&elt->rfc822_size,
                                 &LOCAL->hdrsize);

This netmsg_slurp function creates a temporary file to hold the whole
message. But the connexion goes down before a single byte can be
received (in fact, it is the sending of the RETR command that makes the
connexion go down, I believe).

So it returns a handle (stored in LOCAL->txt) to an empty file. This
emptiness is shown by the fact that elt->rfc822_size (the total size of
the message, if I understood correctly) is equal to 0.

The problem, IMO, comes from the fact that pop3_cache is called from
pop3_text, which only checks for LOCAL->txt, but not for the size of the
retrieved message. Or, alternatively, the problem is that netmsg_slurp
should return a null file handle if there is a problem.

-- 
Xavier Nodet
"They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety." - Benjamin Franklin, 1759.




-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
Mahogany-Developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-developers

Reply via email to