From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/69334 Path: news.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.gnus.general Subject: Re: Sieve gets in infinite loop Date: Fri, 08 Jan 2010 19:56:05 +0100 Message-ID: <87d41kbf3u.fsf@mocca.josefsson.org> References: <87ws1msdgx.fsf@wanchan.jasonrumney.net> <87vdh3k73o.fsf@marauder.physik.uni-ulm.de> <4B4753BB.1020401@gnu.org> <874omwegkd.fsf@mocca.josefsson.org> <4B475FA6.4060308@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1262977010 11767 80.91.229.12 (8 Jan 2010 18:56:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 8 Jan 2010 18:56:50 +0000 (UTC) Cc: ding@gnus.org To: Jason Rumney Original-X-From: ding-owner+M17739@lists.math.uh.edu Fri Jan 08 19:56:42 2010 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.50) id 1NTK0o-0003xg-6r for ding-account@gmane.org; Fri, 08 Jan 2010 19:56:42 +0100 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 1NTK0e-0001oc-G9; Fri, 08 Jan 2010 12:56:32 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1NTK0b-0001nc-Eh for ding@lists.math.uh.edu; Fri, 08 Jan 2010 12:56:29 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.69) (envelope-from ) id 1NTK0Z-0001Hs-2Z for ding@lists.math.uh.edu; Fri, 08 Jan 2010 12:56:29 -0600 Original-Received: from yxa-v.extundo.com ([83.241.177.39]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1NTK0Q-0000VG-00 for ; Fri, 08 Jan 2010 19:56:18 +0100 Original-Received: from mocca (c80-216-24-99.bredband.comhem.se [80.216.24.99]) (authenticated bits=0) by yxa-v.extundo.com (8.14.3/8.14.3/Debian-5) with ESMTP id o08Iu5Dh018782 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Fri, 8 Jan 2010 19:56:07 +0100 OpenPGP: id=B565716F; url=http://josefsson.org/key.txt X-Hashcash: 1:22:100108:jasonr@gnu.org::oDTx9RRchqkvHkpG:1Yjx X-Hashcash: 1:22:100108:ding@gnus.org::wN3/oTQFnKvp4kpc:6h+9 In-Reply-To: <4B475FA6.4060308@gnu.org> (Jason Rumney's message of "Sat, 09 Jan 2010 00:39:02 +0800") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux) X-Spam-Status: No, score=-0.7 required=5.0 tests=AWL,BAYES_00, DATE_IN_FUTURE_06_12,RDNS_DYNAMIC,SPF_FAIL autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on yxa-v.extundo.com X-Virus-Scanned: clamav-milter 0.95.3 at yxa-v X-Virus-Status: Clean X-Spam-Score: -2.6 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:69334 Archived-At: Jason Rumney writes: > Simon Josefsson wrote: >> According to http://tools.ietf.org/html/draft-ietf-sieve-managesieve-09 >> the response line can contain an optional string: >> >> response-nobye = ("NO" / "BYE") [SP "(" resp-code ")"] >> [SP string] CRLF >> ;; The string contains human readable text >> ;; encoded as UTF-8. >> >> > I guess you meant to paste the response-ok definition there, but they > are basically the same. Ah, right. >> So how about >> >> - (when (re-search-forward (concat "^OK" sieve-manage-server-eol) nil t) >> + (when (re-search-forward (concat "^OK.*" sieve-manage-server-eol) nil t) >> >> instead? Not perfect, but hopefully would solve your problem and still >> match EOL stuff. >> > > So the gnus developers are OK about ignoring this statement in section > 1.3 of the RFC? It's not an RFC yet. > The contents of the string SHOULD be shown to the user and > implementations MUST NOT attempt to parse the message for meaning. > > Following it would mean parsing the response properly, but I'm not > sure it is worth it for this case. Better patches are welcome. /Simon