From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: James Thomas via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#69517: [PATCH] Make gnus cache work with group names having '/' Date: Sun, 10 Mar 2024 03:26:23 +0530 Message-ID: <8734szul14.fsf@gmx.net> References: <87wmqkcc9u.fsf@outlook.com> <86wmqbyews.fsf@gnu.org> Reply-To: James Thomas Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12417"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eric Abrahamsen , Eli Zaretskii To: 69517@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Mar 09 22:57:49 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rj4hR-00033z-72 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 09 Mar 2024 22:57:49 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rj4h8-0007JO-E9; Sat, 09 Mar 2024 16:57:30 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rj4h7-0007Iv-39 for bug-gnu-emacs@gnu.org; Sat, 09 Mar 2024 16:57:29 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rj4h6-0000Gc-R5 for bug-gnu-emacs@gnu.org; Sat, 09 Mar 2024 16:57:28 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rj4hd-0003IQ-Lf for bug-gnu-emacs@gnu.org; Sat, 09 Mar 2024 16:58:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: James Thomas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 09 Mar 2024 21:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69517 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 69517-submit@debbugs.gnu.org id=B69517.171002144012622 (code B ref 69517); Sat, 09 Mar 2024 21:58:01 +0000 Original-Received: (at 69517) by debbugs.gnu.org; 9 Mar 2024 21:57:20 +0000 Original-Received: from localhost ([127.0.0.1]:34947 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rj4gy-0003HW-FN for submit@debbugs.gnu.org; Sat, 09 Mar 2024 16:57:20 -0500 Original-Received: from mout.gmx.net ([212.227.17.22]:39475) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rj4gv-0003HF-NS for 69517@debbugs.gnu.org; Sat, 09 Mar 2024 16:57:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=s31663417; t=1710021389; x=1710626189; i=jimjoe@gmx.net; bh=5onD56uCxJcIVG14wSqQihvTv9AXZc53oCwZgrfaYEo=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References: Date; b=fCgtgVG7iRFp3Dzosy/MJfsXdp4kCs5NIMxjQYPk47Ek9XZ9D9V/v2zT8G4oZ9ys RIM8HEdd6QB1TvkDfXvm9uVk1EqVwViiOTCS8f0/xo/y60toPfprEgKhBgnFB5vuq 5Nn1pQJhLEyoiJY3/02ll9NmF51EKbCyeSgBy5tcfOaQ05b0RcmAKv6vEtwR39w22 H6515HVsov2Wsyjx/51AkBFUU6XRaXnveVkRWFgZ/7i9hzFgwGty706pZiF+jz2e/ NFiFF69nJvNqmb6++HJsAYbiMyqrEUClOE+3oTnWRvCVZDtBbUoc6sXqAYrGh6lfZ 3RxkW0fUvWKkIpP7Ww== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from user-Inspiron-15-5518 ([59.92.164.184]) by mail.gmx.net (mrgmx105 [212.227.17.174]) with ESMTPSA (Nemesis) id 1MC30P-1rXHNZ1A0D-00CQUZ; Sat, 09 Mar 2024 22:56:28 +0100 In-Reply-To: <86wmqbyews.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 09 Mar 2024 10:42:43 +0200") X-Provags-ID: V03:K1:dyPAgAfCOce2RHaGbVu/WgcYWOrTW9V/lCVoss2vup91amXm5XA 4X0yrxu5fPBD3d7HIrMZsjv1VK1M89ep8UnFvoRFqmSc4Cx4TnCJ9MlyiT27+XuDXcoERsa shLAADBaG9sA1xMN0dzeZInsZ+Jrw+g28qBP3QRBaukgnuWwiFYAyEZ/NYFSneFfck8j5Qz 5ZDGh4fCJxCfDItEPsRRQ== UI-OutboundReport: notjunk:1;M01:P0:wzX849gNvbY=;UZgu2rsoxzVZLKW+9Q4pwccL9Rz sGX3BQ2fV+1kUQGQNPPZlqO99hA8chncXbesuUCvQ/fAlx1MsyQ5RDSPVmAbcUrK670PRzdSI hbwJm+w6u2wWdfLzqA8B4jqaMiDiDk8SE4QaM3CLcK0AhLfxnVlCt1sOCuioMnYMbPXMxmHSg YmjaOLXb3gjR9nZ6Nswjh6sMx3pCIbnUtmkvHEpVs6YJDpzMpX3y76Vr3FMF2hHy/MEaM9zO+ XsVY+OcvZafd/K9HdnmguOyFzzjv6pIOfA1YEnXYWaNaX3HLSIR55qSE32+7sX5uHf0DBi3Pb ewZHPl2e/Ry0Y50yU2M0oY/bDl0J+FwhpEX/l+MrCrqrTy9Lg8ECBJmgY2yQg1SyVPF+GFoxk sETGzG60Trbr6tiYUbNFy56qUCmCmyTLQhYNd2NnjPrU9i4A2MWkg+5OA99r1ubA/4L3WNx1w aQYHF7syKDWgrQwdTpYLLMrrmcyeWr1LX3ere8ScEnOjyqVEAMPoUnRosOIR4lcB7mfjmvCld upWwql3wKEuLkd+dfdx2GY5EXynq4DK9qaHtWJ6EchZz7Pcjq0a1/1mFHKCoOYAxH6Nd13BpO 8VKXjGKiblK5m6QXRiLB+mh7tQAewNoJvHd5CseEQjKYQa/8/VOxAdzBXd8T48qhs6GIbrJVZ Hg+S5HjdYZMsevQav5YR9gYWybRMYK+J2AGVyRMeIzWkulWoibG0k6Mdmv7VWCO6ImRhDfNc7 gL46UMLHt2R50U6hohpVGCXaLGgozn98IC8r/z3Vx1hJt0BncC3xV7ZDEVjTXLWNfV5HFniS X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:281359 Archived-At: Eli Zaretskii wrote: >> Date: Sun, 03 Mar 2024 07:22:29 +0530 >> From: James Thomas via "Bug reports for GNU Emacs, >> the Swiss army knife of text editors" >> >> Tags: patch >> >> Reproduction steps: >> >> - Setup Gnus with any group name having a slash ('/') such as >> "[Gmail]/Drafts" or an Atom feed (they usually have slashes) using th= e >> patch in bug#66188. >> >> - Press '*' on a message in the group. >> >> - Do (info "(gnus) Creating a Virtual Server") >> >> - Open the above from the Server buffer; RET on the new group fails. >> >> A patch is attached. I couldn't find the problematic commit or its >> original branch (where it was a consolidated merge from) but >> 'gnus-use-long-file-names' is apparently not meant for backends: it >> can't even be customized with that 'not-cache' option. I think this is >> the right way to solve it: the other lines removed in this patch are >> even older, but they were never being called due to the above reason. > > Eric, could you please review the patch and install if it's okay? > > Thanks. There's a small caveat after applying this: Before this patch, cache entries would've effectively ignored 'nnmail-use-long-file-names' (nil by default) and used long names. After this patch new entries would honor it, resulting in an extra directory tree for the same group. But only the original one would be opened (due to [[./lisp/gnus/nnmail.el::;; If this direc]]). To fix it, one would have to copy all the files in from the original directory into the new one (and retain the active file entry). Or of course, change the above variable (but that could have other implications depending upon one's configuration). =2D-