Gnus development mailing list
 help / color / mirror / Atom feed
* Attempted expiry on numeric group folders
@ 1999-08-23  0:51 David Z. Maze
  1999-08-23 17:03 ` Stainless Steel Rat
  0 siblings, 1 reply; 3+ messages in thread
From: David Z. Maze @ 1999-08-23  0:51 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 789 bytes --]

As a result of MIT's class naming scheme, I have several folders of
the form nnml:mail.classes.6.001, ...6.170, and so on.  I also have a
general folder nnml:mail.classes.6 which is used for an announcement
list for all things pertaining to the department of Electrical
Engineering and Computer Science (Course 6), which is total-expirable.

I noticed today (using pgnus 0.95 under XEmacs 20.4) that Gnus was
trying to expire ~/Mail/mail/classes/6/001, even though that's a group 
directory rather than an nnml message file.  This is because
nnheader-directory-articles doesn't look to see whether the files
nnheader-directory-files-safe returns are directories or not.  This
can be fixed by tweaking the arguments passed to directory-files,
which the attached patch to nnheader.el does.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Patch to nnheader.el to make directories not be articles --]
[-- Type: text/x-patch, Size: 737 bytes --]

--- nnheader.el.orig	Sun Aug 22 20:45:22 1999
+++ nnheader.el	Sun Aug 22 20:45:56 1999
@@ -584,13 +584,13 @@
   "Return a list of all article files in a directory."
   (mapcar 'nnheader-file-to-number
 	  (nnheader-directory-files-safe
-	   dir nil nnheader-numerical-short-files t)))
+	   dir nil nnheader-numerical-short-files t t)))
 
 (defun nnheader-article-to-file-alist (dir)
   "Return an alist of article/file pairs in DIR."
   (mapcar (lambda (file) (cons (nnheader-file-to-number file) file))
 	  (nnheader-directory-files-safe
-	   dir nil nnheader-numerical-short-files t)))
+	   dir nil nnheader-numerical-short-files t t)))
 
 (defun nnheader-fold-continuation-lines ()
   "Fold continuation lines in the current buffer."

[-- Attachment #3: Type: text/plain, Size: 222 bytes --]


-- 
David Maze             dmaze@mit.edu          http://donut.mit.edu/dmaze/
"Hey, Doug, do you mind if I push the Emergency Booth Self-Destruct Button?"
"Oh, sure, Dave, whatever...you _do_ know what that does, right?"

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

* Re: Attempted expiry on numeric group folders
  1999-08-23  0:51 Attempted expiry on numeric group folders David Z. Maze
@ 1999-08-23 17:03 ` Stainless Steel Rat
  1999-08-25 15:03   ` Robert Bihlmeyer
  0 siblings, 1 reply; 3+ messages in thread
From: Stainless Steel Rat @ 1999-08-23 17:03 UTC (permalink / raw)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

* "David Z. Maze" <dmaze@donut.mit.edu>  on Sun, 22 Aug 1999
| As a result of MIT's class naming scheme, I have several folders of
| the form nnml:mail.classes.6.001, ...6.170,

These are illegal nnml names.  As with NNTP, nnml and nnmh rely on messges
being numbered.  If you have directories with numerical names, these
backends will break.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v0.9.10 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE3wX7dgl+vIlSVSNkRArJSAJ92yW/n98g5ItBTgMzHm6SkzP3EegCdGx0C
syW+3yF58/c+gc3kWBBE96A=
=hRh0
-----END PGP SIGNATURE-----

-- 
Rat <ratinox@peorth.gweep.net>    \ Caution: Happy Fun Ball may suddenly
Minion of Nathan - Nathan says Hi! \ accelerate to dangerous speeds.
PGP Key: at a key server near you!  \ 


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

* Re: Attempted expiry on numeric group folders
  1999-08-23 17:03 ` Stainless Steel Rat
@ 1999-08-25 15:03   ` Robert Bihlmeyer
  0 siblings, 0 replies; 3+ messages in thread
From: Robert Bihlmeyer @ 1999-08-25 15:03 UTC (permalink / raw)


Hi,

>>>>> On 23 Aug 1999 13:03:25 -0400
>>>>> Stainless Steel Rat <ratinox@peorth.gweep.net> said:

 * "David Z. Maze" <dmaze@donut.mit.edu> on Sun, 22 Aug 1999
 | As a result of MIT's class naming scheme, I have several folders of
 | the form nnml:mail.classes.6.001, ...6.170,

 Rat> These are illegal nnml names. As with NNTP, nnml and nnmh rely
 Rat> on messges being numbered. If you have directories with
 Rat> numerical names, these backends will break.

It's the question whether they /should/ break. Checking if an
"article" is really a directory is not hard. But slow perhaps?

One solution, of course, is to set `nnmail-use-long-file-names' to t.

        Robbe

-- 
Robert Bihlmeyer	reads: Deutsch, English, MIME, Latin-1, NO SPAM!
<robbe@orcus.priv.at>	<http://stud2.tuwien.ac.at/~e9426626/sig.html>


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

end of thread, other threads:[~1999-08-25 15:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-08-23  0:51 Attempted expiry on numeric group folders David Z. Maze
1999-08-23 17:03 ` Stainless Steel Rat
1999-08-25 15:03   ` Robert Bihlmeyer

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