From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/78851 Path: news.gmane.org!not-for-mail From: Roger Newsgroups: gmane.emacs.gnus.general Subject: [PATCH] Match lone lines in imap efficiently Date: Thu, 19 May 2011 09:19:55 +0800 Message-ID: <1305767995-27472-1-git-send-email-wenrui@gmail.com> NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1305768368 14276 80.91.229.12 (19 May 2011 01:26:08 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 19 May 2011 01:26:08 +0000 (UTC) Cc: Roger To: ding@gnus.org Original-X-From: ding-owner+M27151@lists.math.uh.edu Thu May 19 03:26:04 2011 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QMs03-0006MQ-8C for ding-account@gmane.org; Thu, 19 May 2011 03:26:03 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1QMrz8-0005Bj-RZ; Wed, 18 May 2011 20:25:06 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1QMruM-00059C-6b for ding@lists.math.uh.edu; Wed, 18 May 2011 20:20:10 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1QMruK-0003Wq-T0 for ding@lists.math.uh.edu; Wed, 18 May 2011 20:20:09 -0500 Original-Received: from mail-qy0-f172.google.com ([209.85.216.172]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1QMruJ-0000DG-44 for ding@gnus.org; Thu, 19 May 2011 03:20:07 +0200 Original-Received: by qyk29 with SMTP id 29so3468289qyk.17 for ; Wed, 18 May 2011 18:20:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:date:message-id:x-mailer; bh=syA+H9J4RJgM0+LKwp6SDyU0/CShJv3ifr6VOUP5WOE=; b=Dzvki4n3fy8R39+LEwne8QnUnai7CE2n9CcyKAX20V+WeqgDJ9hYGS2cedG+XGeYLj /AklG32fVVu+D6+NlsB6cem87wXbVXsl5+RIEf3A1VFfCA+w60k2Df5xKrkLYsb/5tpe f+1y0P4qi8yfnGNoQbjZPYE+ddXX9X2657s6M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=XWND7gdIbpdeshJ59gANKzzBMcIJsLMU6PFgoTIA7u0woPXnvELXwxsPMm38aHyoFK XjGuLWsYYdetxqSShdLmoWzCE+I45r4TY2PNTIAhOs/XNO/Ys/8F5V3OKN2b2hFbiPVZ n7DJ6jfpF8zgCEpJ0VIVLH0DvKFasFaSqifWg= Original-Received: by 10.224.196.129 with SMTP id eg1mr2005969qab.125.1305768000579; Wed, 18 May 2011 18:20:00 -0700 (PDT) Original-Received: from roger-t410s.localdomain (canuck.infradead.org [134.117.69.58]) by mx.google.com with ESMTPS id m13sm1317587qcu.28.2011.05.18.18.19.58 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 18 May 2011 18:20:00 -0700 (PDT) Original-Received: from roger by roger-t410s.localdomain with local (Exim 4.76) (envelope-from ) id 1QMru8-0007A8-EJ; Thu, 19 May 2011 09:19:56 +0800 X-Mailer: git-send-email 1.7.5.1 X-Spam-Score: -3.0 (---) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:78851 Archived-At: When some email with large number of recipients is hit, Gnus will hit error "Stack overflow in regexp matcher" --- lisp/nnimap.el | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/nnimap.el b/lisp/nnimap.el index 6882ed6..967cb36 100644 --- a/lisp/nnimap.el +++ b/lisp/nnimap.el @@ -190,7 +190,7 @@ textual parts.") (let (article bytes lines size string) (block nil (while (not (eobp)) - (while (not (looking-at "^\\* [0-9]+ FETCH.*UID \\([0-9]+\\)")) + (while (not (looking-at "^\\* [0-9]+ FETCH[[:space:](]*UID \\([0-9]+\\)")) (delete-region (point) (progn (forward-line 1) (point))) (when (eobp) (return))) @@ -1904,7 +1904,7 @@ textual parts.") (let (article bytes) (block nil (while (not (eobp)) - (while (not (looking-at "^\\* [0-9]+ FETCH.*UID \\([0-9]+\\)")) + (while (not (looking-at "^\\* [0-9]+ FETCH[[:space:](]*UID \\([0-9]+\\)")) (delete-region (point) (progn (forward-line 1) (point))) (when (eobp) (return))) -- 1.7.5.1