Gnus development mailing list
 help / color / mirror / Atom feed
From: kees_de_bruin@tasking.nl (Kees de Bruin)
Cc: Andrew J Cosgriff <ajc@bing.wattle.id.au>
Subject: Re: Default save dir for things with an Archive-name ?
Date: 25 Sep 1996 07:44:42 +0200	[thread overview]
Message-ID: <ngpw3b408l.fsf@tasking.nl> (raw)
In-Reply-To: Andrew J Cosgriff's message of 25 Sep 1996 07:48:09 +1000

>>>>> "ajc" == Andrew J Cosgriff <ajc@bing.wattle.id.au> writes:

 ajc> When I go to save, say, an FAQ, or something out of
 ajc> alt.sources/comp.sources.*, Gnus defaults to wanting to save it as,
 ajc> say, ~/News/computer-security/ssh-faq - what I want to do, however,
 ajc> is to save it as something like ~/News/faq/computer-security/ssh-faq
 ajc> instead.

Hello Andrew,

I have the following functions in my .gnus (adjusted for your situation):

| (defun kdb/faq-save-directory ()
|   "Determine the directory where I want my FAQ files."
|   (expand-file-name "faq/" gnus-article-save-directory))
|
| (defun kdb/gnus-article-archive-name (group)
|   "Return the first instance of an \"Archive-name\" in the current buffer.
| This is stolen from the Gnus code."
|   (let ((case-fold-search t))
|     (when (re-search-forward "archive-name: *\\([^ \n\t]+\\)[ \t]*$" nil t)
|       (nnheader-concat (kdb/faq-save-directory)
|                        (match-string 1)))))

Setting the variable `gnus-split-methods' using the above function, Gnus
will save your FAQ files in the correct directory. Be careful when setting
this variable. It may contain the function `gnus-article-archive-name'. It
should be removed from the list.

| (setq gnus-split-methods '((kdb/gnus-article-archive-name))

I hope this helps,

Kees.

-- 
Kees de Bruin                                     kees_de_bruin@tasking.com
Software Engineer                                    http://www.tasking.com

Tasking Software BV,  Plotterweg 31,  3821 BB  Amersfoort,  The Netherlands
Phone: +31-33-455 85 84     Fax: +31-33-455 10 05    CompuServe: GO TASKING
------------------[ Quality Development Tools Worldwide ]------------------


      reply	other threads:[~1996-09-25  5:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-09-24 21:48 Andrew J Cosgriff
1996-09-25  5:44 ` Kees de Bruin [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ngpw3b408l.fsf@tasking.nl \
    --to=kees_de_bruin@tasking.nl \
    --cc=ajc@bing.wattle.id.au \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).