From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/30793 Path: main.gmane.org!not-for-mail From: Linus Nordberg Newsgroups: gmane.emacs.gnus.general Subject: Re: {gnus|nnmail}-use-long-filename[s] beahviour changed Date: 09 May 2000 10:56:10 +0200 Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035167278 10331 80.91.224.250 (21 Oct 2002 02:27:58 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 02:27:58 +0000 (UTC) Return-Path: Original-Received: from bart.math.uh.edu (bart.math.uh.edu [129.7.128.48]) by mailhost.sclp.com (Postfix) with ESMTP id B506BD051F for ; Tue, 9 May 2000 05:03:20 -0400 (EDT) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by bart.math.uh.edu (8.9.1/8.9.1) with ESMTP id DAB21301; Tue, 9 May 2000 03:58:24 -0500 (CDT) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Tue, 09 May 2000 03:57:27 -0500 (CDT) Original-Received: from mailhost.sclp.com (postfix@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id DAA08976 for ; Tue, 9 May 2000 03:57:17 -0500 (CDT) Original-Received: from king.swox.se (king.swox.se [212.247.3.130]) by mailhost.sclp.com (Postfix) with ESMTP id 146D6D051F for ; Tue, 9 May 2000 04:56:12 -0400 (EDT) Original-Received: by king.swox.se (Postfix, from userid 1548) id E96653184; Tue, 9 May 2000 10:56:10 +0200 (CEST) Original-To: ding@gnus.org In-Reply-To: Lars Magne Ingebrigtsen's message of "21 Apr 2000 14:49:43 +0200" Original-Lines: 70 User-Agent: Gnus/5.070097 (Pterodactyl Gnus v0.97) Emacs/20.4 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:30793 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:30793 Lars Magne Ingebrigtsen wrote 21 Apr 2000 14:49:43 +0200: Linus Nordberg writes: > i have both `gnus-use-long-file-name' and `nnmail-use-long-file-names' > set to nil, which prior to pgnus-0.99 made groups like "foo/bar" end > up in directory "foo/bar". from pgnus-0.99 and on, "foo/bar" becomes > "foo_bar". What path names are affected in this manner? I can't reproduce it with gnus-5.8.6 and an empty ~/.newsrc.eld, but with my current ~/.newsrc.eld, articles for foo/bar ends up in the directory ~/Mail/foo_bar. This happens both when I move the article manually using gnus-summary-move-article and when I let GNUS split incoming articles. It gets an article number that would fit nicely in ~/Mail/foo/bar, so someone has obviously found its way there, but later decided to put the article in the wrong directory. nnmail-group-pathname has changed like this between pgnus-0.97 and gnus-5.8.6: *** 463,496 **** "Make pathname for GROUP." (concat (let ((dir (file-name-as-directory (expand-file-name dir)))) (setq group (nnheader-translate-file-chars group)) ;; If this directory exists, we use it directly. ! (if (or nnmail-use-long-file-names ! (file-directory-p (concat dir group))) ! (concat dir group "/") ! ;; If not, we translate dots into slashes. ! (concat dir ! (mm-encode-coding-string ! (nnheader-replace-chars-in-string group ?. ?/) ! nnmail-pathname-coding-system) ! "/"))) (or file ""))) --- 471,525 ---- "Make pathname for GROUP." (concat (let ((dir (file-name-as-directory (expand-file-name dir)))) + (setq group (nnheader-replace-duplicate-chars-in-string + (nnheader-replace-chars-in-string group ?/ ?_) + ?. ?_)) (setq group (nnheader-translate-file-chars group)) ;; If this directory exists, we use it directly. ! (file-name-as-directory ! (if (or nnmail-use-long-file-names ! (file-directory-p (concat dir group))) ! (expand-file-name group dir) ! ;; If not, we translate dots into slashes. ! (expand-file-name ! (mm-encode-coding-string ! (nnheader-replace-chars-in-string group ?. ?/) ! nnmail-pathname-coding-system) ! dir)))) (or file ""))) Those three added lines, replacing `/' with `_' looks suspicious from my point of view (though my lisp knowledge is poor, to say the least). Or, maybe my ~/.newsrc.eld is corrupted in some subtle way? Is there a way to ``clean it up''? --linus