[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Infinite loop in pop3-retr

From: Stefan Monnier
Subject: Re: Infinite loop in pop3-retr
Date: Thu, 26 May 2011 21:35:34 -0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

> Sometimes during retrieving mail through pop3 in gnus I emacs loops 
> infinitely in pop3-retr. It seems to be somehow connected with some buggy 
> mail. Normally I didn't have time to investigate it thoroughly (I haven't 
> used emacs debugger yet) but this time I think I've found out enough to make 
> this problem fixed by someone.
> Problem is inside:
>       (set-buffer (process-buffer process))
>       (while (not (re-search-forward "^\\.\r\n" nil t))
>       (pop3-accept-process-output process)
>       (goto-char start))

> If I correctly read it this code assumes that in (process-buffer
> process) finally will contain line with dot only but this never
> happens probably due to information found at the end of trace of pop
> session to server saying:

> Process POP connection broken by remote peer.

> Can you propose some fix for this?

The while should also test whether the `process' is still alive.  Or else,
pop3-accept-process-output should somehow signal an error if `process' is
not alive any more.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]