From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/1651 Path: news.gmane.org!not-for-mail From: Mike Dixon Newsgroups: gmane.emacs.gnus.user Subject: Re: Little help sorting please... Date: Sat, 21 Dec 2002 08:57:28 GMT Organization: EarthLink Inc. -- http://www.EarthLink.net Message-ID: References: <843coyth0c.fsf@lucy.cs.uni-dortmund.de> <84smwxnfy0.fsf@lucy.cs.uni-dortmund.de> <84fzsvmeg8.fsf@lucy.cs.uni-dortmund.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1138668363 12213 80.91.229.2 (31 Jan 2006 00:46:03 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 Jan 2006 00:46:03 +0000 (UTC) Original-X-From: nobody Tue Jan 17 17:29:29 2006 Original-Path: quimby.gnus.org!lackawana.kippona.com!news.infoave.net!newsfeed1.easynews.com!easynews.com!easynews!newsfeed2.earthlink.net!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!newsread1.prod.itd.earthlink.net.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.gnus User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 X-Newsreader: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 X-Mailer: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 Original-NNTP-Posting-Host: 63.214.109.247 Original-X-Complaints-To: abuse@earthlink.net Original-X-Trace: newsread1.prod.itd.earthlink.net 1040461048 63.214.109.247 (Sat, 21 Dec 2002 00:57:28 PST) Original-NNTP-Posting-Date: Sat, 21 Dec 2002 00:57:28 PST Original-Xref: bridgekeeper.physik.uni-ulm.de gnus-emacs-gnus:1791 Original-Lines: 65 X-Gnus-Article-Number: 1791 Tue Jan 17 17:29:29 2006 Xref: news.gmane.org gmane.emacs.gnus.user:1651 Archived-At: > Mike Dixon writes: > > > Thanks Kai. Got a different error: > > Gah :-( > > > Wrong number of arguments: (lambda (group) (if group (format "nnfolder:%s.archive" group) "nnfolder:other.archive")), 0 > > > > I'll play around with it some and see if I can determine what's causing > > the error... > > I've peeked at the source, and maybe > > (setq gnus-message-archive-group 'mike-gnus-message-archive-group) > > is the simplest value that will do. But the one with the double pair > of parens should also work, if... > > (defun mike-gnus-message-archive-group (group) > > you write (&optional group) instead of (group) in the defun line. > > (if group > (format "nnfolder:%s.archive" group) > "nnfolder:other.archive")) > > Tell about your findings... > > But maybe the group name isn't passed as often as it should be. Hm. > Well, we will see. > -- Hi Kai - :-> The archive file my post is saved to using the above is at the end of a nested set of dirs. For instance, if the group name is gnu.emacs.gnus and I post to that group, and my archive file is therefore named gnu.emacs.gnus.archive, using the code above I end up with ~/*/gnu/emacs/gnus/archive which is where the copy of my post is stored. I was hoping for a filename such as ~/*/gnu.emacs.gnus.archive (which it looked like I was going to get with "nnfolder:%s.archive"). I found "format" in my LISP Info file but the specifiers didn't indicate behavior like that for %s. I located nnfolder.el and there's a function/dir "file-name-as-directory" that I wonder if that's the root cause of this (converted what I wanted as a filename into a dir path)? Is this the default behavior of nnfolder used as it is here to convert "." into directories? Do you know if there's some way I can use "file-name-as-directory" in nnfolder.el such that my posts are stored in filenames where it doesn't convert the "." in the group name into directories (or is there a better way to accomplish this)? Incidentally, when I save a thread (T #, O-f ) it creates one directory such as "comp.protocols.tcp-ip" and saves the thread in there but does not convert the "." in comp.protocols.tcp-ip into a nested series of directories (i.e., comp/protocols/tcp-ip/). I looked at "nnfolder" from the index of Info:gnus but unless I missed something it doesn't seem to mention this dir-creating behavior. I hope my question isn't too convoluted so to restate, what I'm after is an archive file where the "." of the Usenet group name isn't converted to directories - a filename like gnu.emacs.gnus.archive. Mike