From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/79784 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.gnus.general Subject: Re: [Workaround/Solved] This bug is killing me! Date: Tue, 30 Aug 2011 13:20:12 +0200 Message-ID: <87ty8zp2mr.fsf@thinkpad.tsdh.de> References: <87pqjnqt5k.fsf@thinkpad.tsdh.de> <87y5ybp5hw.fsf@thinkpad.tsdh.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1314703250 19974 80.91.229.12 (30 Aug 2011 11:20:50 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 30 Aug 2011 11:20:50 +0000 (UTC) Cc: ding@gnus.org, John Wiegley To: Dave Abrahams Original-X-From: ding-owner+M28078@lists.math.uh.edu Tue Aug 30 13:20:46 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 1QyMN3-0004o6-SA for ding-account@gmane.org; Tue, 30 Aug 2011 13:20:46 +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 1QyMMj-0007bz-QZ; Tue, 30 Aug 2011 06:20:25 -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 1QyMMi-0007bq-95 for ding@lists.math.uh.edu; Tue, 30 Aug 2011 06:20:24 -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 1QyMMg-0005KK-8D for ding@lists.math.uh.edu; Tue, 30 Aug 2011 06:20:23 -0500 Original-Received: from deliver.uni-koblenz.de ([141.26.64.15]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1QyMMe-0001bV-5l for ding@gnus.org; Tue, 30 Aug 2011 13:20:20 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by deliver.uni-koblenz.de (Postfix) with ESMTP id 931B2D22D3; Tue, 30 Aug 2011 13:20:19 +0200 (CEST) X-Virus-Scanned: amavisd-new at uni-koblenz.de Original-Received: from deliver.uni-koblenz.de ([127.0.0.1]) by localhost (deliver.uni-koblenz.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OCiUZ4xr4O+E; Tue, 30 Aug 2011 13:20:18 +0200 (CEST) X-CHKRCPT: Envelopesender noch tassilo@member.fsf.org Original-Received: from thinkpad.tsdh.de (tsdh.uni-koblenz.de [141.26.67.142]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by deliver.uni-koblenz.de (Postfix) with ESMTPSA id A1D8FD22DA; Tue, 30 Aug 2011 13:20:18 +0200 (CEST) In-Reply-To: (Dave Abrahams's message of "Tue, 30 Aug 2011 02:33:43 -0800") User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) X-Spam-Score: -4.9 (----) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:79784 Archived-At: Dave Abrahams writes: Hi Dave, >> Please see my other message. > > Which other message? Message-ID: <8739gjqkb9.fsf@thinkpad.tsdh.de> >> Propagation of marks to imap servers is enabled by default no matter >> of that variable since gnus git versions after March, 5th. Do you >> use an older version? > > I'm on this version: > > ,---- > | commit b7049858dc4463249d94613e05f6044cb5d70d6d > | Author: Katsumi Yamaoka > | Date: Fri Aug 26 09:01:29 2011 +0000 > `---- That should be recent enough. > I have this additional change, which avoids pathological regexp > behavior: > > diff --git a/lisp/nnimap.el b/lisp/nnimap.el > index 2dbc465..5b7d253 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.+?UID \\([0-9]+\\)")) > (delete-region (point) (progn (forward-line 1) (point))) > (when (eobp) > (return))) Hm, so you use the non-greedy variant of ".+". That should make a difference only if there a lines like * 939393 FETCH something here UID 918823 UID 191929 i.e. the string UID followed by a number occurs more than once. Not sure if the imap spec allows that. With the original regexp, the latter UID would be captured, with your change, the former will be captured. -- Sent from my Emacs