From debbugs-submit-bounces@debbugs.gnu.org Wed Mar 25 06:27:06 2015 Received: (at submit) by debbugs.gnu.org; 25 Mar 2015 10:27:06 +0000 Received: from localhost ([127.0.0.1]:35969 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YaiWf-0000W4-Gy for submit@debbugs.gnu.org; Wed, 25 Mar 2015 06:27:05 -0400 Received: from mx1.polytechnique.org ([129.104.30.34]:55545) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YaiWd-0000Vv-Jv for submit@debbugs.gnu.org; Wed, 25 Mar 2015 06:27:04 -0400 Received: from wifi-eduroam-161122.inria.fr (ren089r.vpn.inria.fr [128.93.181.89]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ssl.polytechnique.org (Postfix) with ESMTPSA id D3B3E1408EFAA for ; Wed, 25 Mar 2015 11:27:00 +0100 (CET) From: Alan Schmitt To: submit@debbugs.gnu.org (The Gnus Bugfixing Girls + Boys) Subject: moving a message to an empty group on a different imap server fails X-Debbugs-Version: 5.130012 X-Debbugs-Package: gnus Date: Wed, 25 Mar 2015 11:26:54 +0100 Message-ID: User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.4.90 (darwin) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-AV-Checked: ClamAV using ClamSMTP at svoboda.polytechnique.org (Wed Mar 25 11:27:01 2015 +0100 (CET)) X-Spam-Flag: No, tests=bogofilter, spamicity=0.000510, queueID=F29551408EFCA X-Org-Mail: alan.schmitt.1995@polytechnique.org X-Spam-Score: -2.3 (--) 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: -2.3 (--) --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hello, I'm seeing a bug with the current git version of gnus when I move a message in an empty group on a different imap server. I've discovered the bug through expiring but I can reproduce it when manually moving the message (using "B m"). The problem happens in the last line of that snippet #+begin_src emacs-lisp (deffoo nnimap-request-group (group &optional server dont-check info) (setq group (nnimap-decode-gnus-group group)) (let ((result (nnimap-change-group ;; Don't SELECT the group if we're going to select it ;; later, anyway. (if (and (not dont-check) (assoc group nnimap-current-infos)) nil group) server)) articles active marks high low) (with-current-buffer nntp-server-buffer (when result (when (or (not dont-check) (not (setq active (nth 2 (assoc group nnimap-current-infos))))) (let ((sequences (nnimap-retrieve-group-data-early server (list info)))) #+end_src It happens if the function is called with info being nil, then `nnimap-retrieve-group-data-early' is called with `(nil)' as second argument (the singleton list containing the empty list). Since `(nil)' is not nil, the guard of the `when' in the following snippet does not prevent the code from being run in the following #+begin_src emacs-lisp (deffoo nnimap-retrieve-group-data-early (server infos) (when (and (nnimap-change-group nil server) infos) #+end_src and the rest of the code breaks (when a `dolist' is done on the list `(nil)'). Unfortunately I don't know what should be done in `nnimap-request-group' if `info' is nil, so I cannot propose a patch. Best regards, Alan Ma Gnus v0.12 GNU Emacs 24.4.90.1 (x86_64-apple-darwin14.1.0, Carbon Version 157 AppKit 1= 344.72) of 2015-03-11 on charm-ecran.irisa.fr 200 news.gmane.org InterNetNews NNRP server INN 2.5.1 ready (posting ok) 100 Legal commands ARTICLE [message-ID|number] AUTHINFO USER name|PASS password|GENERIC program [argument ...] BODY [message-ID|number] CAPABILITIES [keyword] DATE GROUP newsgroup HDR header [message-ID|range] HEAD [message-ID|number] HELP IHAVE message-ID LAST LIST [ACTIVE [wildmat]|ACTIVE.TIMES [wildmat]|DISTRIB.PATS|DISTRIBUTIONS|= HEADERS [MSGID|RANGE]|MODERATORS|MOTD|NEWSGROUPS [wildmat]|OVERVIEW.FMT|SUB= SCRIPTIONS] LISTGROUP [newsgroup [range]] MODE READER NEWGROUPS [yy]yymmdd hhmmss [GMT] NEWNEWS wildmat [yy]yymmdd hhmmss [GMT] NEXT OVER [range] POST QUIT STARTTLS STAT [message-ID|number] XGTITLE [wildmat] XHDR header [message-ID|range] XOVER [range] XPAT header message-ID|range pattern [pattern ...] Report problems to . . 382 Begin TLS negotiation now 100 Legal commands ARTICLE [message-ID|number] AUTHINFO USER name|PASS password|GENERIC program [argument ...] BODY [message-ID|number] CAPABILITIES [keyword] DATE GROUP newsgroup HDR header [message-ID|range] HEAD [message-ID|number] HELP IHAVE message-ID LAST LIST [ACTIVE [wildmat]|ACTIVE.TIMES [wildmat]|DISTRIB.PATS|DISTRIBUTIONS|= HEADERS [MSGID|RANGE]|MODERATORS|MOTD|NEWSGROUPS [wildmat]|OVERVIEW.FMT|SUB= SCRIPTIONS] LISTGROUP [newsgroup [range]] MODE READER NEWGROUPS [yy]yymmdd hhmmss [GMT] NEWNEWS wildmat [yy]yymmdd hhmmss [GMT] NEXT OVER [range] POST QUIT STARTTLS STAT [message-ID|number] XGTITLE [wildmat] XHDR header [message-ID|range] XOVER [range] XPAT header message-ID|range pattern [pattern ...] Report problems to . . =2D-=20 OpenPGP Key ID : 040D0A3B4ED2E5C7 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.22 (Darwin) iQEcBAEBCgAGBQJVEo10AAoJEAQNCjtO0uXH8FIH+wVjkfbImD0MD6MqnBpyaaWp hXTuCr8TYLKlhX80m5PD7L0AkKf/GtFdhAjVyfpn3i9c4Am+2chqSXW/qE1540J5 3hdvo5G8jrCSf33y7UNJvSv4f+mKpjcGG3GxQ64vC4/59tNYV0p7x38cP+EHEn33 qnMMeEADwzJWN0+vi+tT7dnkrvGgS/Y1qlXlRYNJsbp5w9EHd/HYvdaWfJC4xhlo IYym7zt3iKdCXemRABQoQmqyOv9fA2vZcX63Loduq8cGwA423L/JAmX7qK1zmEWC ui5xPg1g2eNvexaMenTX/5rD6JIvxkIF8T1LF2epPy1JABpUfTkNtrWWFSnzBkw= =ap/u -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 26 13:11:02 2017 Received: (at control) by debbugs.gnu.org; 26 Jan 2017 18:11:02 +0000 Received: from localhost ([127.0.0.1]:45841 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cWoVi-0005Na-E6 for submit@debbugs.gnu.org; Thu, 26 Jan 2017 13:11:02 -0500 Received: from hermes.netfonds.no ([80.91.224.195]:55833) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cWoVg-0005N7-FU for control@debbugs.gnu.org; Thu, 26 Jan 2017 13:11:00 -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 1cWoVe-0003iO-BA for control@debbugs.gnu.org; Thu, 26 Jan 2017 19:11:00 +0100 From: Lars Ingebrigtsen To: control@debbugs.gnu.org Subject: control message for bug #20197 Message-ID: <87efzpzoxm.fsf@totally-fudged-out-message-id> Date: Thu, 26 Jan 2017 19:10:52 +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 (/) reassign 20197 emacs,gnus From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 23 07:39:38 2019 Received: (at 20197) by debbugs.gnu.org; 23 Sep 2019 11:39:38 +0000 Received: from localhost ([127.0.0.1]:35218 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iCMgs-0001lH-EN for submit@debbugs.gnu.org; Mon, 23 Sep 2019 07:39:38 -0400 Received: from quimby.gnus.org ([80.91.231.51]:33806) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iCMgr-0001l9-0s for 20197@debbugs.gnu.org; Mon, 23 Sep 2019 07:39:37 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iCMgm-00068B-RD; Mon, 23 Sep 2019 13:39:35 +0200 From: Lars Ingebrigtsen To: Alan Schmitt Subject: Re: bug#20197: moving a message to an empty group on a different imap server fails References: Date: Mon, 23 Sep 2019 13:39:32 +0200 In-Reply-To: (Alan Schmitt's message of "Wed, 25 Mar 2015 11:26:54 +0100") Message-ID: <87y2yf8cnf.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Alan Schmitt writes: > It happens if the function is called with info being nil, then > `nnimap-retrieve-group-data-early' is called with `(nil)' as second > argument (the singleton list containing the empty list). Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 20197 Cc: 20197@debbugs.gnu.org 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: -1.0 (-) Alan Schmitt writes: > It happens if the function is called with info being nil, then > `nnimap-retrieve-group-data-early' is called with `(nil)' as second > argument (the singleton list containing the empty list). I think this was fixed by this patch: commit 3fb7881a0e320f380203c0f2dd16dfc7189af1e9 Author: Eric Abrahamsen Date: Sun Sep 6 12:47:43 2015 +0000 nnimap.el: Handle nil arg to nnimap-request-group * lisp/gnus/nnimap.el (nnimap-request-group): Handle nil "info" arg. This arg isn't always passed in, check it's not nil before making it into a list. The active arg will also be nil if the group is new, check for that. So this should work now, and I'm closing this bug report. If you're still seeing this bug, please reopen. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 23 07:39:44 2019 Received: (at control) by debbugs.gnu.org; 23 Sep 2019 11:39:44 +0000 Received: from localhost ([127.0.0.1]:35221 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iCMgx-0001lc-QG for submit@debbugs.gnu.org; Mon, 23 Sep 2019 07:39:44 -0400 Received: from quimby.gnus.org ([80.91.231.51]:33820) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iCMgw-0001lU-36 for control@debbugs.gnu.org; Mon, 23 Sep 2019 07:39:42 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iCMgt-00068I-Cd for control@debbugs.gnu.org; Mon, 23 Sep 2019 13:39:41 +0200 Date: Mon, 23 Sep 2019 13:39:38 +0200 Message-Id: <87wodz8cn9.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #20197 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 20197 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 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: -1.0 (-) close 20197 quit From unknown Fri Aug 15 14:49:04 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 22 Oct 2019 11:24:11 +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