unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Infinite loop in pop3-retr
@ 2011-05-26  8:43 tomga
  2011-05-27  0:35 ` Stefan Monnier
  0 siblings, 1 reply; 13+ messages in thread
From: tomga @ 2011-05-26  8:43 UTC (permalink / raw)
  To: emacs-devel

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?

Regards
Tomasz Gajewski

PS. I had to send this from webmail so formatting may be somewhat broken.





^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2011-06-14 14:58 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-26  8:43 Infinite loop in pop3-retr tomga
2011-05-27  0:35 ` Stefan Monnier
2011-05-27  9:33   ` Tomasz Gajewski
2011-05-27 12:55     ` Stefan Monnier
2011-05-30 17:21       ` Lars Magne Ingebrigtsen
2011-05-31  1:12         ` Stefan Monnier
2011-05-31 18:22           ` Lars Magne Ingebrigtsen
2011-05-31 21:45             ` Stefan Monnier
2011-06-01 11:48               ` Lars Magne Ingebrigtsen
2011-06-12 22:43                 ` Chong Yidong
2011-06-14 14:58                   ` Lars Magne Ingebrigtsen
2011-05-30 17:18     ` Lars Magne Ingebrigtsen
2011-05-31  6:36       ` Tomasz Gajewski

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).