From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: tomga@wp.pl Newsgroups: gmane.emacs.devel Subject: Infinite loop in pop3-retr Date: Thu, 26 May 2011 10:43:49 +0200 Organization: Poznaj Poczte WP http://poczta.wp.pl/info-start.html Message-ID: <4dde12c597bf00.88976681@wp.pl> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1306425403 21499 80.91.229.12 (26 May 2011 15:56:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 26 May 2011 15:56:43 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu May 26 17:56:39 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QPcvN-0002yZ-Pc for ged-emacs-devel@m.gmane.org; Thu, 26 May 2011 17:56:37 +0200 Original-Received: from localhost ([::1]:48595 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QPcvN-0005Lg-F8 for ged-emacs-devel@m.gmane.org; Thu, 26 May 2011 11:56:37 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:60895) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QPWAc-0007az-6t for emacs-devel@gnu.org; Thu, 26 May 2011 04:43:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QPWAb-0005sd-9k for emacs-devel@gnu.org; Thu, 26 May 2011 04:43:54 -0400 Original-Received: from mx3.wp.pl ([212.77.101.7]:26928) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QPWAa-0005s8-R7 for emacs-devel@gnu.org; Thu, 26 May 2011 04:43:53 -0400 Original-Received: (wp-smtpd smtp.wp.pl 1834 invoked from network); 26 May 2011 10:43:49 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wp.pl; s=1024a; t=1306399429; bh=Ka9sNSaXe9RIaD2UQ6wpwxxKVJ3/D2amO8VoFmzXWtM=; h=From:To:Subject; b=ovwJkWLY7dGJ8gHuLKa5LLay0fhhQOAiYhNuzHMD1vhC2nBh8R3C1D5+OrFILLJV6 1NLtcJm91VOMVsTad3x7rWsRim0VtawPR/AxbEwxZiimUYI6tUcX4W/gaof6X0yVkw h9srQRoHI/JIZg/oDjw+Rk/DVyUhXIsxAxQBV/yY= Original-Received: from out.poczta.wp.pl (HELO localhost) ([212.77.101.240]) (envelope-sender ) by smtp.wp.pl (WP-SMTPD) with SMTP for ; 26 May 2011 10:43:49 +0200 Content-Disposition: inline X-Mailer: Interfejs WWW nowej poczty Wirtualnej Polski X-User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-us) AppleWebKit/531.2+ (KHTML, like Gecko) Version/5.0 Safari/531.2+ Debian/squeeze (2.30.6-2) Epiphany/2.30.6 X-WP-IP: 217.153.177.152 X-WP-AV: skaner antywirusowy poczty Wirtualnej Polski S. A. X-WP-SPAM: NO 0000000 [IUM0] X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 212.77.101.7 X-Mailman-Approved-At: Thu, 26 May 2011 11:56:35 -0400 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:139739 Archived-At: 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.