From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 05 06:08:04 2014 Received: (at submit) by debbugs.gnu.org; 5 Aug 2014 10:08:04 +0000 Received: from localhost ([127.0.0.1]:58298 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XEbf2-0002ze-30 for submit@debbugs.gnu.org; Tue, 05 Aug 2014 06:08:04 -0400 Received: from fely.am-1.org ([78.47.74.50]:49456) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XEbez-0002zC-Ev for submit@debbugs.gnu.org; Tue, 05 Aug 2014 06:08:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=siamics.net; s=a2013295; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:Date:Sender:Subject:To:From; bh=UToCbGh1MvI/9igmDM/oAD67wqX9iwBuM0EeAdBe0RA=; b=bseffXSz5Grqa6w5mKXA9FtbH4gSOILZIYt2AyRwrjOGqQZJoY6oGccWAI2YQA5lYYnAgA/U57qcirgS61gmweNaaAbcNQ5potfreB6STVn5EU9AX2A3DvPuOngW37YGaFW4s8U9E95p1MuIucbvaTzQ1uf45+INKJ+jzV2FtFw=; Received: from [2a02:2560:6d4:26ca::1:1d] (helo=violet.siamics.net) by fely.am-1.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1XEbex-0001OS-Qa for submit@debbugs.gnu.org; Tue, 05 Aug 2014 10:07:59 +0000 Received: from localhost ([::1] helo=violet.siamics.net) by violet.siamics.net with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1XEbeo-0003Z6-L3 for submit@debbugs.gnu.org; Tue, 05 Aug 2014 17:07:50 +0700 From: Ivan Shmakov To: submit@debbugs.gnu.org Subject: Gnus fails to read ~/.newsrc with group names which are not symbols Date: Tue, 05 Aug 2014 10:07:50 +0000 Message-ID: <878un3ckqx.fsf@violet.siamics.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.7 (/) Package: emacs, gnus Severity: minor Tags: patch As it seems, gnus-newsrc-to-gnus-format fails to correctly process ~/.newsrc entries with group names not being /complete/ Emacs Lisp expressions (integers, symbols, etc.), as in: [Hello]/World: 42 [[[This-fails: 1 I believe that the problem is at the following point. 2556 (narrow-to-region 2557 (point) 2558 (progn (skip-chars-forward "^ \t!:\n") (point))) 2559 (goto-char (point-min)) 2560 (setq symbol 2561 (and (/=3D (point-min) (point-max)) 2562 (let ((obarray gnus-active-hashtb)) (read buf)))) 2563 (widen) Here, the =E2=80=9Cgroup=E2=80=9D field of .newsrc is read as an Emacs Lisp expression. Which may result either in an error, or, in the case of [Hello]/World =E2=80=93 and, similarly, (Hello)/World =E2=80=93 in= only the leading [Hello] or (Hello) being actually read. Instead, I believe that the entire string is to be read and interned, as in (untested): (setq symbol (let ((save (point))) (skip-chars-forward "^ \t!:\n") (and (> (point) save) (intern (buffer-substring-no-properties save (point)) gnus-active-hashtb)))) 2582 (symbol 2583 ;; Group names can be just numbers. 2584 (when (numberp symbol) 2585 (setq symbol (intern (int-to-string symbol) gnus-active-hashtb))) 2586 (unless (boundp symbol) 2587 (set symbol nil)) Naturally, the numberp check above will no longer be necessary after the change suggested. Please note that this change also prevents the boundp check here from raising an error should the group name be a valid Emacs Lisp non-symbol form (say, a vector or a list.) --=20 FSF associate member #7257 http://boycottsystemd.org/ =E2=80=A6 3013 B6A0= 230E 334A From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 13 03:44:56 2015 Received: (at 18198) by debbugs.gnu.org; 13 Feb 2015 08:44:56 +0000 Received: from localhost ([127.0.0.1]:41291 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YMBrr-0006fP-IM for submit@debbugs.gnu.org; Fri, 13 Feb 2015 03:44:55 -0500 Received: from smtp.syd.comcen.com.au ([203.23.236.77]:1459) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YMBro-0006fF-E1 for 18198@debbugs.gnu.org; Fri, 13 Feb 2015 03:44:53 -0500 Received: from building.gnus.org ([27.96.197.126]) by smtp.syd.comcen.com.au (8.13.4/8.12.9) with ESMTP id t1D8hhJ4076612; Fri, 13 Feb 2015 19:43:43 +1100 (EST) From: Lars Ingebrigtsen To: Ivan Shmakov Subject: Re: bug#18198: Gnus fails to read ~/.newsrc with group names which are not symbols References: <878un3ckqx.fsf@violet.siamics.net> Date: Fri, 13 Feb 2015 19:43:38 +1100 In-Reply-To: <878un3ckqx.fsf@violet.siamics.net> (Ivan Shmakov's message of "Tue, 05 Aug 2014 10:07:50 +0000") Message-ID: <87mw4inqv9.fsf@building.gnus.org> User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-comcen-MailScanner-Information: Please contact the ISP for more information X-comcen-MailScanner: Found to be clean X-comcen-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=0.12, required 4, AWL 0.02, BAYES_50 0.00, RDNS_NONE 0.10) X-comcen-MailScanner-From: larsi@gnus.org X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 18198 Cc: 18198@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Ivan Shmakov writes: > I believe that the problem is at the following point. > > 2556 (narrow-to-region > 2557 (point) > 2558 (progn (skip-chars-forward "^ \t!:\n") (point))) > 2559 (goto-char (point-min)) > 2560 (setq symbol > 2561 (and (/=3D (point-min) (point-max)) > 2562 (let ((obarray gnus-active-hashtb)) (read buf)))) > 2563 (widen) > > Here, the =93group=94 field of .newsrc is read as an Emacs Lisp > expression. Which may result either in an error, or, in the > case of [Hello]/World =96 and, similarly, (Hello)/World =96 in only > the leading [Hello] or (Hello) being actually read. Well, "[Hello]/World" isn't a valid newsgroup name, and I think only newsgroups are supposed to be in ~/.newsrc? How did you get such a group name there? --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/ From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 14 03:06:07 2015 Received: (at 18198) by debbugs.gnu.org; 14 Feb 2015 08:06:07 +0000 Received: from localhost ([127.0.0.1]:42654 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YMXjn-0006u7-Rd for submit@debbugs.gnu.org; Sat, 14 Feb 2015 03:06:07 -0500 Received: from fely.am-1.org ([78.47.74.50]:43672) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YMXji-0006tf-EX for 18198@debbugs.gnu.org; Sat, 14 Feb 2015 03:06:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=siamics.net; s=a2013295; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:Sender:References:Subject:To:From; bh=jJQLQbaVFOmR65lyuD7voPa+CgYtKrekTo5IwLA46LQ=; b=WD8P5ZOBAu0n4t8TGUVk3RrdzZHluUuxAuncn27BXaAs49xGvkjMgTXZbwVti0tb7BUxmaQD4GgOsDgy08pgNX89YxX+nzpQ7ntOvzR5tS0cPzkY68CN9B0eHHDkc7kIR2oFs5X5wN4aIoCY8xbquCutvUd+Jg6PhwolaqPyuvQ=; Received: from [2a02:2560:6d4:26ca::1:1d] (helo=violet.siamics.net) by fely.am-1.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1YMXjh-0007KS-Io for 18198@debbugs.gnu.org; Sat, 14 Feb 2015 08:05:57 +0000 Received: from localhost ([::1] helo=violet.siamics.net) by violet.siamics.net with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1YMXja-00015P-W7 for 18198@debbugs.gnu.org; Sat, 14 Feb 2015 15:05:51 +0700 From: Ivan Shmakov To: 18198@debbugs.gnu.org Subject: Re: bug#18198: Gnus fails to read ~/.newsrc with group names which are not symbols References: <878un3ckqx.fsf@violet.siamics.net> <87mw4inqv9.fsf@building.gnus.org> Mail-Followup-To: 18198@debbugs.gnu.org Date: Sat, 14 Feb 2015 08:05:50 +0000 In-Reply-To: <87mw4inqv9.fsf@building.gnus.org> (Lars Ingebrigtsen's message of "Fri, 13 Feb 2015 19:43:38 +1100") Message-ID: <87mw4gdijl.fsf@violet.siamics.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: 18198 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.7 (/) >>>>> Lars Ingebrigtsen writes: >>>>> Ivan Shmakov writes: [=E2=80=A6] >> Here, the =E2=80=9Cgroup=E2=80=9D field of .newsrc is read as an Emacs = Lisp >> expression. Which may result either in an error, or, in the case of >> [Hello]/World =E2=80=93 and, similarly, (Hello)/World =E2=80=93 in only= the leading >> [Hello] or (Hello) being actually read. > Well, "[Hello]/World" isn't a valid newsgroup name, Yet (Hello)/World is. (Per the newsgroup-name and wildmat-exact productions given in section 9.8 of RFC 3977.) > and I think only newsgroups are supposed to be in ~/.newsrc? How did > you get such a group name there? I didn=E2=80=99t. The person who brought this issue to IRC has apparently used something like (nnimap "imap.gmail.com") for gnus-select-method. Though indeed, I know of no reason /not/ to set gnus-save-newsrc-file to nil in this case. --=20 FSF associate member #7257 http://boycottsystemd.org/ =E2=80=A6 3013 B6A0= 230E 334A From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 14 05:42:12 2015 Received: (at submit) by debbugs.gnu.org; 14 Feb 2015 10:42:12 +0000 Received: from localhost ([127.0.0.1]:42720 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YMaAt-00025P-Vn for submit@debbugs.gnu.org; Sat, 14 Feb 2015 05:42:12 -0500 Received: from eggs.gnu.org ([208.118.235.92]:43891) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YMaAr-000256-Tq for submit@debbugs.gnu.org; Sat, 14 Feb 2015 05:42:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YMaAh-0002E9-RN for submit@debbugs.gnu.org; Sat, 14 Feb 2015 05:42:04 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: *** X-Spam-Status: No, score=3.2 required=5.0 tests=BAYES_40,FSL_HELO_BARE_IP_2, RCVD_NUMERIC_HELO autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:40775) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YMaAh-0002E5-Oe for submit@debbugs.gnu.org; Sat, 14 Feb 2015 05:41:59 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45536) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YMaAe-00073C-1Q for bug-gnu-emacs@gnu.org; Sat, 14 Feb 2015 05:41:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YMaAa-0002BK-1n for bug-gnu-emacs@gnu.org; Sat, 14 Feb 2015 05:41:55 -0500 Received: from plane.gmane.org ([80.91.229.3]:42541) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YMaAZ-0002AS-RS for bug-gnu-emacs@gnu.org; Sat, 14 Feb 2015 05:41:52 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YMaAW-0003dk-Sm for bug-gnu-emacs@gnu.org; Sat, 14 Feb 2015 11:41:51 +0100 Received: from 114.248.19.180 ([114.248.19.180]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 14 Feb 2015 11:41:48 +0100 Received: from eric by 114.248.19.180 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 14 Feb 2015 11:41:48 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: bug-gnu-emacs@gnu.org From: Eric Abrahamsen Subject: Re: bug#18198: Gnus fails to read ~/.newsrc with group names which are not symbols Date: Sat, 14 Feb 2015 18:41:41 +0800 Lines: 79 Message-ID: <87r3tsn5ay.fsf@ericabrahamsen.net> References: <878un3ckqx.fsf@violet.siamics.net> <87mw4inqv9.fsf@building.gnus.org> <87mw4gdijl.fsf@violet.siamics.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 114.248.19.180 User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux) Cancel-Lock: sha1:eVjyxK+/dOeQy2c8tIZWmzk6paQ= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -1.2 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.2 (---) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Ivan Shmakov writes: >>>>>> Lars Ingebrigtsen writes: >>>>>> Ivan Shmakov writes: > > […] > > >> Here, the “group” field of .newsrc is read as an Emacs Lisp > >> expression. Which may result either in an error, or, in the case of > >> [Hello]/World – and, similarly, (Hello)/World – in only the leading > >> [Hello] or (Hello) being actually read. > > > Well, "[Hello]/World" isn't a valid newsgroup name, > > Yet (Hello)/World is. (Per the newsgroup-name and wildmat-exact > productions given in section 9.8 of RFC 3977.) > > > and I think only newsgroups are supposed to be in ~/.newsrc? How did > > you get such a group name there? > > I didn’t. The person who brought this issue to IRC has > apparently used something like (nnimap "imap.gmail.com") for > gnus-select-method. > > Though indeed, I know of no reason /not/ to set > gnus-save-newsrc-file to nil in this case. This was discussed on the gnus.general list, and I produced a fix for it (at least, I'm 95% sure it's the same issue), and then apparently never sent the patch to the list, despite having thought I did. Attaching the patch here. Eric --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0001-Handle-unquoted-IMAP-group-names.patch Content-Transfer-Encoding: 8bit >From cfb7b8feefeef69ed855e90f700aef6d1b7fda39 Mon Sep 17 00:00:00 2001 From: "Eric (clem)" Date: Sat, 14 Feb 2015 18:39:10 +0800 Subject: [PATCH] Handle unquoted IMAP group names * lisp/nnimap.el (nnimap-get-groups): Correctly read unquoted group names from the server LIST response. --- lisp/nnimap.el | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lisp/nnimap.el b/lisp/nnimap.el index d8b49f7..2d6a55e 100644 --- a/lisp/nnimap.el +++ b/lisp/nnimap.el @@ -1262,7 +1262,12 @@ If LIMIT, first try to limit the search to the N last articles." (while (search-forward "* LIST " nil t) (let ((flags (read (current-buffer))) (separator (read (current-buffer))) - (group (read (current-buffer)))) + (group (buffer-substring-no-properties + (progn (skip-chars-forward " \"") + (point)) + (progn (move-end-of-line 1) + (skip-chars-backward " \"") + (point))))) (unless (member '%NoSelect flags) (push (utf7-decode (if (stringp group) group -- 2.3.0 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 14 05:56:06 2015 Received: (at 18198) by debbugs.gnu.org; 14 Feb 2015 10:56:06 +0000 Received: from localhost ([127.0.0.1]:42725 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YMaOL-0002OU-Ca for submit@debbugs.gnu.org; Sat, 14 Feb 2015 05:56:05 -0500 Received: from fely.am-1.org ([78.47.74.50]:43723) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YMaOI-0002O2-18 for 18198@debbugs.gnu.org; Sat, 14 Feb 2015 05:56:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=siamics.net; s=a2013295; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:Sender:References:Subject:To:From; bh=BWdjw5pqVkevKl3vOUU4xB6ZJW3cw+tvRCYSHHyglo4=; b=CnuzDvvCnvoIQuh26MzYrWXPx65aJpkTK7S+PLGfPUA6n28AlsIx7r0zuXAxmaXu0OSn4EBaS+9nUhHnPAYFYvL4weT3HCw2RZvnhV7NBXuyqUKaXD4OnHUuvO88EgPlrsdyEOED/kzwX/OARXHkvzc7rj1b+i1fcDGz2Id09oY=; Received: from [2a02:2560:6d4:26ca::1:1d] (helo=violet.siamics.net) by fely.am-1.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1YMaOG-00011s-C2 for 18198@debbugs.gnu.org; Sat, 14 Feb 2015 10:56:00 +0000 Received: from localhost ([::1] helo=violet.siamics.net) by violet.siamics.net with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1YMaO9-0001X5-MT for 18198@debbugs.gnu.org; Sat, 14 Feb 2015 17:55:53 +0700 From: Ivan Shmakov To: 18198@debbugs.gnu.org Subject: Re: bug#18198: Gnus fails to read ~/.newsrc with group names which are not symbols References: <878un3ckqx.fsf@violet.siamics.net> <87mw4inqv9.fsf@building.gnus.org> <87mw4gdijl.fsf@violet.siamics.net> <87r3tsn5ay.fsf@ericabrahamsen.net> Mail-Followup-To: 18198@debbugs.gnu.org Date: Sat, 14 Feb 2015 10:55:53 +0000 In-Reply-To: <87r3tsn5ay.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Sat, 14 Feb 2015 18:41:41 +0800") Message-ID: <87egpsdao6.fsf@violet.siamics.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: 18198 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.7 (/) >>>>> Eric Abrahamsen writes: >>>>> Ivan Shmakov writes: [=E2=80=A6] >> I didn=E2=80=99t. The person who brought this issue to IRC has apparen= tly >> used something like (nnimap "imap.gmail.com") for >> gnus-select-method. >> Though indeed, I know of no reason /not/ to set >> gnus-save-newsrc-file to nil in this case. > This was discussed on the gnus.general list, and I produced a fix for > it (at least, I'm 95% sure it's the same issue), It isn=E2=80=99t, =E2=80=93 the one #18198 is about is that Gnus fails to = read ~/.newsrc it produces back; the one you suggest a patch for is about the (mis)use of =E2=80=98read=E2=80=99 in the Gnus IMAP implementati= on. > and then apparently never sent the patch to the list, despite having > thought I did. Attaching the patch here. I believe that the information regarding (possible) bugs =E2=80=93 including patches =E2=80=93 should be sent to the BTS /first./ This way, it=E2=80=99s easier to add late follow-ups, /and/ it still ends up in a mailing list (the bug-gnu-emacs@ one, that is.) --=20 FSF associate member #7257 http://boycottsystemd.org/ =E2=80=A6 3013 B6A0= 230E 334A From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 14 06:28:20 2015 Received: (at submit) by debbugs.gnu.org; 14 Feb 2015 11:28:20 +0000 Received: from localhost ([127.0.0.1]:42731 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YMatX-0003AW-GG for submit@debbugs.gnu.org; Sat, 14 Feb 2015 06:28:19 -0500 Received: from eggs.gnu.org ([208.118.235.92]:48844) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YMatU-0003AH-KZ for submit@debbugs.gnu.org; Sat, 14 Feb 2015 06:28:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YMatK-0007Ef-RW for submit@debbugs.gnu.org; Sat, 14 Feb 2015 06:28:11 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: *** X-Spam-Status: No, score=4.0 required=5.0 tests=BAYES_50,FSL_HELO_BARE_IP_2, RCVD_NUMERIC_HELO autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:57250) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YMatK-0007Eb-Np for submit@debbugs.gnu.org; Sat, 14 Feb 2015 06:28:06 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50548) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YMatJ-0007lC-Bh for bug-gnu-emacs@gnu.org; Sat, 14 Feb 2015 06:28:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YMatE-0007Du-Kk for bug-gnu-emacs@gnu.org; Sat, 14 Feb 2015 06:28:05 -0500 Received: from plane.gmane.org ([80.91.229.3]:44125) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YMatE-0007Dl-E7 for bug-gnu-emacs@gnu.org; Sat, 14 Feb 2015 06:28:00 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YMat8-0004mh-LW for bug-gnu-emacs@gnu.org; Sat, 14 Feb 2015 12:27:57 +0100 Received: from 114.248.19.180 ([114.248.19.180]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 14 Feb 2015 12:27:54 +0100 Received: from eric by 114.248.19.180 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 14 Feb 2015 12:27:54 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: bug-gnu-emacs@gnu.org From: Eric Abrahamsen Subject: Re: bug#18198: Gnus fails to read ~/.newsrc with group names which are not symbols Date: Sat, 14 Feb 2015 19:27:43 +0800 Lines: 34 Message-ID: <87mw4gn368.fsf@ericabrahamsen.net> References: <878un3ckqx.fsf@violet.siamics.net> <87mw4inqv9.fsf@building.gnus.org> <87mw4gdijl.fsf@violet.siamics.net> <87r3tsn5ay.fsf@ericabrahamsen.net> <87egpsdao6.fsf@violet.siamics.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 114.248.19.180 User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux) Cancel-Lock: sha1:cKzSFb48tuqoucITqVZXoh1CVUM= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -1.2 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.2 (---) Ivan Shmakov writes: >>>>>> Eric Abrahamsen writes: >>>>>> Ivan Shmakov writes: > > […] > > >> I didn’t. The person who brought this issue to IRC has apparently > >> used something like (nnimap "imap.gmail.com") for > >> gnus-select-method. > > >> Though indeed, I know of no reason /not/ to set > >> gnus-save-newsrc-file to nil in this case. > > > This was discussed on the gnus.general list, and I produced a fix for > > it (at least, I'm 95% sure it's the same issue), > > It isn’t, – the one #18198 is about is that Gnus fails to read > ~/.newsrc it produces back; the one you suggest a patch for is > about the (mis)use of ‘read’ in the Gnus IMAP implementation. Ah, my apologies -- just a similar-looking problem, then. > > and then apparently never sent the patch to the list, despite having > > thought I did. Attaching the patch here. > > I believe that the information regarding (possible) bugs – > including patches – should be sent to the BTS /first./ > > This way, it’s easier to add late follow-ups, /and/ it still > ends up in a mailing list (the bug-gnu-emacs@ one, that is.) Sorry, didn't quite understand this -- did you mean just start another bug report? From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 14 23:44:11 2015 Received: (at 18198) by debbugs.gnu.org; 15 Feb 2015 04:44:11 +0000 Received: from localhost ([127.0.0.1]:44247 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YMr3z-0002pv-0p for submit@debbugs.gnu.org; Sat, 14 Feb 2015 23:44:11 -0500 Received: from smtp.syd.comcen.com.au ([203.23.236.77]:4851) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YMr3v-0002pi-Qx for 18198@debbugs.gnu.org; Sat, 14 Feb 2015 23:44:10 -0500 Received: from building.gnus.org ([27.96.197.126]) by smtp.syd.comcen.com.au (8.13.4/8.12.9) with ESMTP id t1F4gKTk095292 for <18198@debbugs.gnu.org>; Sun, 15 Feb 2015 15:42:22 +1100 (EST) From: Lars Ingebrigtsen To: 18198@debbugs.gnu.org Subject: Re: bug#18198: Gnus fails to read ~/.newsrc with group names which are not symbols References: <878un3ckqx.fsf@violet.siamics.net> <87mw4inqv9.fsf@building.gnus.org> <87mw4gdijl.fsf@violet.siamics.net> Date: Sun, 15 Feb 2015 15:42:16 +1100 In-Reply-To: <87mw4gdijl.fsf@violet.siamics.net> (Ivan Shmakov's message of "Sat, 14 Feb 2015 08:05:50 +0000") Message-ID: <87sie7bxav.fsf@building.gnus.org> User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-comcen-MailScanner-Information: Please contact the ISP for more information X-comcen-MailScanner: Found to be clean X-comcen-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=0.118, required 4, AWL 0.02, BAYES_50 0.00, RDNS_NONE 0.10) X-comcen-MailScanner-From: larsi@gnus.org X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 18198 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Ivan Shmakov writes: > I didn=92t. The person who brought this issue to IRC has > apparently used something like (nnimap "imap.gmail.com") for > gnus-select-method. > > Though indeed, I know of no reason /not/ to set > gnus-save-newsrc-file to nil in this case. There should only be newsgroups in the .newsrc file -- it's for interoperability with other newsreaders, and putting non-newsgroups in there makes no sense. So that does sound like a bug. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/ From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 15 00:52:56 2015 Received: (at 18198) by debbugs.gnu.org; 15 Feb 2015 05:52:56 +0000 Received: from localhost ([127.0.0.1]:44267 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YMs8S-0004Lw-85 for submit@debbugs.gnu.org; Sun, 15 Feb 2015 00:52:56 -0500 Received: from fely.am-1.org ([78.47.74.50]:43910) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YMs8M-0004Lk-BS for 18198@debbugs.gnu.org; Sun, 15 Feb 2015 00:52:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=siamics.net; s=a2013295; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:Sender:References:Subject:To:From; bh=KTdcuWPEhNE2W4a/LU9qv8P11nrDf6qufwpTc+YtecA=; b=UBglQw3N/xVev/d9IZg43dj2ecmJNsSTUMAU/gyTilv6UDHSdVRJorhfdvKR4Skac9CH5TOcDHz+NdUPSVB73UMxzmOK3nux9juHLSuxKs7dVJweI2YnMA0Uwit645O4Kggd2GrOuUoeYYGviVZT50RQ2akGOfXCgsv6R13X1CQ=; Received: from [2a02:2560:6d4:26ca::1:1d] (helo=violet.siamics.net) by fely.am-1.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1YMs8K-0002fX-PP for 18198@debbugs.gnu.org; Sun, 15 Feb 2015 05:52:44 +0000 Received: from localhost ([::1] helo=violet.siamics.net) by violet.siamics.net with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1YMs8E-0004I8-1V for 18198@debbugs.gnu.org; Sun, 15 Feb 2015 12:52:38 +0700 From: Ivan Shmakov To: 18198@debbugs.gnu.org Subject: Re: bug#18198: Gnus fails to read ~/.newsrc with group names which are not symbols References: <878un3ckqx.fsf@violet.siamics.net> <87mw4inqv9.fsf@building.gnus.org> <87mw4gdijl.fsf@violet.siamics.net> <87sie7bxav.fsf@building.gnus.org> Mail-Followup-To: 18198@debbugs.gnu.org Date: Sun, 15 Feb 2015 05:52:37 +0000 In-Reply-To: <87sie7bxav.fsf@building.gnus.org> (Lars Ingebrigtsen's message of "Sun, 15 Feb 2015 15:42:16 +1100") Message-ID: <87d25bafh6.fsf@violet.siamics.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: 18198 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.7 (/) >>>>> Lars Ingebrigtsen writes: >>>>> Ivan Shmakov writes: >>>>> Lars Ingebrigtsen writes: >>> Well, "[Hello]/World" isn't a valid newsgroup name, >> Yet (Hello)/World is. (Per the newsgroup-name and wildmat-exact >> productions given in section 9.8 of RFC 3977.) [=E2=80=A6] >> The person who brought this issue to IRC has apparently used >> something like (nnimap "imap.gmail.com") for gnus-select-method. >> Though indeed, I know of no reason /not/ to set >> gnus-save-newsrc-file to nil in this case. > There should only be newsgroups in the .newsrc file -- it's for > interoperability with other newsreaders, and putting non-newsgroups > in there makes no sense. There still may be RFC-compliant newsgroup names which contain parentheses; and alt.foo.(bar) would fail just the same as [Hello]/World. Granted, I know of no such /public/ newsgroups, but whoever hosts an NNTP server could probably add a local one with ease. > So that does sound like a bug. As long as there=E2=80=99s no clear indication from Gnus that ~/.newsrc could easily break when used together with nnimap (and possibly other similar select methods), I=E2=80=99d rather deem it a bug in Gnus. --=20 FSF associate member #7257 np. Bounzie boom =E2=80=94 S. A. Kiviniemi B6A0= 230E 334A From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 25 13:31:16 2017 Received: (at 18198) by debbugs.gnu.org; 25 Jan 2017 18:31:16 +0000 Received: from localhost ([127.0.0.1]:43321 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cWSLk-0001j8-K6 for submit@debbugs.gnu.org; Wed, 25 Jan 2017 13:31:16 -0500 Received: from hermes.netfonds.no ([80.91.224.195]:43140) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cWSLi-0001j0-ME for 18198@debbugs.gnu.org; Wed, 25 Jan 2017 13:31:15 -0500 Received: from 2.150.50.220.tmi.telenormobil.no ([2.150.50.220] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cWSLf-0006Zo-U4 for 18198@debbugs.gnu.org; Wed, 25 Jan 2017 19:31:14 +0100 From: Lars Ingebrigtsen To: 18198@debbugs.gnu.org Subject: Re: bug#18198: Gnus fails to read ~/.newsrc with group names which are not symbols In-Reply-To: <87d25bafh6.fsf@violet.siamics.net> (Ivan Shmakov's message of "Sun, 15 Feb 2015 05:52:37 +0000") Date: Wed, 25 Jan 2017 19:24:49 +0100 Message-ID: <87h94nov4e.fsf@gnus.org> References: <878un3ckqx.fsf@violet.siamics.net> <87mw4inqv9.fsf@building.gnus.org> <87mw4gdijl.fsf@violet.siamics.net> <87sie7bxav.fsf@building.gnus.org> <87d25bafh6.fsf@violet.siamics.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 18198 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Ivan Shmakov writes: > As long as theres no clear indication from Gnus that ~/.newsrc > could easily break when used together with nnimap (and possibly > other similar select methods), Id rather deem it a bug in Gnus. It should perhaps not create a .newsrc file at all when gnus-select-method isn't an NNTP method? I think I'll just make that change instead. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 25 13:31:24 2017 Received: (at control) by debbugs.gnu.org; 25 Jan 2017 18:31:24 +0000 Received: from localhost ([127.0.0.1]:43324 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cWSLr-0001jS-SL for submit@debbugs.gnu.org; Wed, 25 Jan 2017 13:31:24 -0500 Received: from hermes.netfonds.no ([80.91.224.195]:43151) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cWSLq-0001jK-J6 for control@debbugs.gnu.org; Wed, 25 Jan 2017 13:31:22 -0500 Received: from 2.150.50.220.tmi.telenormobil.no ([2.150.50.220] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cWSLo-0007CK-Dv for control@debbugs.gnu.org; Wed, 25 Jan 2017 19:31:22 +0100 From: Lars Ingebrigtsen To: control@debbugs.gnu.org Subject: control message for bug #18198 Message-ID: <87fuk7ouuk.fsf@totally-fudged-out-message-id> Date: Wed, 25 Jan 2017 19:31:14 +0100 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) tags 18198 fixed close 18198 From unknown Sat Jun 14 19:29:43 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 23 Feb 2017 12:24:08 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator