Gnus development mailing list
 help / color / mirror / Atom feed
* {gnus|nnmail}-use-long-filename[s] beahviour changed
@ 2000-01-18  9:41 Linus Nordberg
  2000-04-21 12:49 ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 5+ messages in thread
From: Linus Nordberg @ 2000-01-18  9:41 UTC (permalink / raw)


hi!

gnus-agent-group-path changed between pgnus-0.98 and pgnus-0.99 in a
way that broke my ``non-long-filenames''.

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".

is this on purpose?  if not, how do i get group "foo/bar" translated
into directory "foo/bar" again?

regards,
--linus




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: {gnus|nnmail}-use-long-filename[s] beahviour changed
  2000-01-18  9:41 {gnus|nnmail}-use-long-filename[s] beahviour changed Linus Nordberg
@ 2000-04-21 12:49 ` Lars Magne Ingebrigtsen
  2000-05-09  8:56   ` Linus Nordberg
  0 siblings, 1 reply; 5+ messages in thread
From: Lars Magne Ingebrigtsen @ 2000-04-21 12:49 UTC (permalink / raw)


Linus Nordberg <linus@swox.se> 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?

-- 
(domestic pets only, the antidote for overdose, milk.)
   larsi@gnus.org * Lars Magne Ingebrigtsen



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: {gnus|nnmail}-use-long-filename[s] beahviour changed
  2000-04-21 12:49 ` Lars Magne Ingebrigtsen
@ 2000-05-09  8:56   ` Linus Nordberg
  2000-05-09 17:04     ` Shenghuo ZHU
  0 siblings, 1 reply; 5+ messages in thread
From: Linus Nordberg @ 2000-05-09  8:56 UTC (permalink / raw)


Lars Magne Ingebrigtsen <larsi@gnus.org> wrote
21 Apr 2000 14:49:43 +0200:

   Linus Nordberg <linus@swox.se> 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



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: {gnus|nnmail}-use-long-filename[s] beahviour changed
  2000-05-09  8:56   ` Linus Nordberg
@ 2000-05-09 17:04     ` Shenghuo ZHU
  2000-05-10 10:52       ` Linus Nordberg
  0 siblings, 1 reply; 5+ messages in thread
From: Shenghuo ZHU @ 2000-05-09 17:04 UTC (permalink / raw)


>>>>> "Linus" == Linus Nordberg <linus@swox.se> writes:

[...]

Linus> I can't reproduce it with gnus-5.8.6 and an empty
Linus> ~/.newsrc.eld, but with my current ~/.newsrc.eld, articles for
Linus> foo/bar ends up in the directory ~/Mail/foo_bar.  This happens
Linus> both when I move the article manually using
Linus> gnus-summary-move-article and when I let GNUS split incoming
Linus> articles.

"/" is not supposed to be the separator for translating group names to
path names.  Translating "/" to "_" is because of some strange group
names, especially those from nnslashdot (when gnus-agent covers
nnslashdot).  In your case, you can use foo.bar, which ends up in the
directory ~/Mail/foo/bar.

Shenghuo



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: {gnus|nnmail}-use-long-filename[s] beahviour changed
  2000-05-09 17:04     ` Shenghuo ZHU
@ 2000-05-10 10:52       ` Linus Nordberg
  0 siblings, 0 replies; 5+ messages in thread
From: Linus Nordberg @ 2000-05-10 10:52 UTC (permalink / raw)
  Cc: ding

Shenghuo ZHU <zsh@cs.rochester.edu> wrote
09 May 2000 13:04:20 -0400:

   >>>>> "Linus" == Linus Nordberg <linus@swox.se> writes:
   
   [...]
   
   Linus> I can't reproduce it with gnus-5.8.6 and an empty
   Linus> ~/.newsrc.eld, but with my current ~/.newsrc.eld, articles for
   Linus> foo/bar ends up in the directory ~/Mail/foo_bar.  This happens
   Linus> both when I move the article manually using
   Linus> gnus-summary-move-article and when I let GNUS split incoming
   Linus> articles.
   
   "/" is not supposed to be the separator for translating group names to
   path names.  Translating "/" to "_" is because of some strange group
   names, especially those from nnslashdot (when gnus-agent covers
   nnslashdot).  In your case, you can use foo.bar, which ends up in the
   directory ~/Mail/foo/bar.
   
Changing '/' to '.' in the group names made things start working.

Thanks a lot.

--linus



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2000-05-10 10:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-01-18  9:41 {gnus|nnmail}-use-long-filename[s] beahviour changed Linus Nordberg
2000-04-21 12:49 ` Lars Magne Ingebrigtsen
2000-05-09  8:56   ` Linus Nordberg
2000-05-09 17:04     ` Shenghuo ZHU
2000-05-10 10:52       ` Linus Nordberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).