From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/69332 Path: news.gmane.org!not-for-mail From: Jason Rumney Newsgroups: gmane.emacs.gnus.general Subject: Re: Sieve gets in infinite loop Date: Fri, 08 Jan 2010 23:48:11 +0800 Message-ID: <4B4753BB.1020401@gnu.org> References: <87ws1msdgx.fsf@wanchan.jasonrumney.net> <87vdh3k73o.fsf@marauder.physik.uni-ulm.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1262976044 8433 80.91.229.12 (8 Jan 2010 18:40:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 8 Jan 2010 18:40:44 +0000 (UTC) To: Jason Rumney , ding@gnus.org, Simon Josefsson Original-X-From: ding-owner+M17736@lists.math.uh.edu Fri Jan 08 19:40:36 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 1NTJlC-0005VY-OC for ding-account@gmane.org; Fri, 08 Jan 2010 19:40:35 +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 1NTJkG-0001cP-ME; Fri, 08 Jan 2010 12:39:36 -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 1NTH5D-0000FV-EM for ding@lists.math.uh.edu; Fri, 08 Jan 2010 09:49:03 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.69) (envelope-from ) id 1NTH5B-0000WF-Cn for ding@lists.math.uh.edu; Fri, 08 Jan 2010 09:49:02 -0600 Original-Received: from mail-yw0-f202.google.com ([209.85.211.202]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1NTH4z-0006eG-00 for ; Fri, 08 Jan 2010 16:48:49 +0100 Original-Received: by ywh40 with SMTP id 40so20873638ywh.26 for ; Fri, 08 Jan 2010 07:48:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:received:message-id :date:from:user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=EKtHGQiprKwLEjzt5J+k4+3igTWwuS9B+jonAUzC2So=; b=w8ZH7wyszlR522u7ZNYnfqzVA/8XcgaDOQmXLa9sHWvPkXEzG8gv+tN4WT8EidPwll 5RGoc0NeB5CkzqrApJ0s7HOUP93jzi3WcyF3t6mjzKUO6Q0DBzqjx4sQgT1Ng5X2znfM auoxdsXX+4cZIX+3jnPPQXxYBhlRhHE2kqxMg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; b=J3ntS4UwywSpMAgNslq/a0vH0mkglW8zynVrOVTw/V0k9n0JnZIZVlIBMRHmMZoHAH 7gQQyoaRqWV2xA/ShgNVH/PJ/YcCMV6AtaMOmOOoO3LCiF4FhQt1SxQzdPCnraJBQjEv 9w7kkWkOAbJzJ7KvOT6dKRLpkrOg1Kgi5xiv8= Original-Received: by 10.101.82.11 with SMTP id j11mr2031380anl.86.1262965698262; Fri, 08 Jan 2010 07:48:18 -0800 (PST) Original-Received: from wanchan.jasonrumney.net ([115.132.151.241]) by mx.google.com with ESMTPS id 9sm9298386yxf.41.2010.01.08.07.48.15 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 08 Jan 2010 07:48:15 -0800 (PST) Original-Received: from wanchan.jasonrumney.net (localhost [127.0.0.1]) by wanchan.jasonrumney.net (Postfix) with ESMTP id D6CD748; Fri, 8 Jan 2010 23:48:11 +0800 (MYT) User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090706) In-Reply-To: <87vdh3k73o.fsf@marauder.physik.uni-ulm.de> X-Spam-Score: -2.6 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:69332 Archived-At: Reiner Steib wrote: > On Thu, Nov 19 2009, Jason Rumney wrote: > > >> My server sends the following non-matching line: >> >> OK "Dovecot ready." >> > > I know next to nothing about sieve, but AFAICS, you (and your server) > are right. Feel free to adjust sieve-manage-parse-capability-1 as > needed. > The following simple patch works for me, but I don't understand why the eol needed to be on the regexp in the first place, so I may be missing something. === modified file 'lisp/gnus/sieve-manage.el' --- lisp/gnus/sieve-manage.el 2009-01-09 03:01:50 +0000 +++ lisp/gnus/sieve-manage.el 2010-01-08 14:53:46 +0000 @@ -636,7 +636,7 @@ sieve-manage-capability)) (push (list str) sieve-manage-capability)) (forward-line))) - (when (re-search-forward (concat "^OK" sieve-manage-server-eol) nil t) + (when (re-search-forward "^OK" nil t) (setq sieve-manage-state 'nonauth))) (defalias 'sieve-manage-parse-greeting-1 'sieve-manage-parse-capability-1) -- Jason