Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: David Z Maze <dmaze@mit.edu>
Subject: Re: nnml directory customization
Date: Tue, 13 Sep 2005 17:15:19 -0400	[thread overview]
Message-ID: <y681x3s655k.fsf@biohazard-cafe.mit.edu> (raw)
In-Reply-To: <1126455169.075131.151860@g47g2000cwa.googlegroups.com>

romeomedina@libero.it writes:

> Instead, if I first put the following line:
>
> (setq my-nnml-directory "/path/to/my/nnml/directory")
>
> and then:
>
> (setq gnus-select-method
>       '(nnml ""
> 	(nnml-directory my-nnml-directory)))
>
> , when starting gnus I get the following error message:
>
> nnml () open error: ''.  Continue? (y or n)

If you 'C-h v gnus-select-method' having set it, you'll find that the
value of nnml-directory is the symbol my-nnml-directory rather than
its value.  Getting this to work requires navigating Lisp quoting,
which can be exciting; perhaps the most straightforward thing is

(setq gnus-select-method
      `(nnml ""
        (nnml-directory ,my-nnml-directory)))

(note the backquote and comma).  Unless you have a specific need, it's
probably cleaner to include the "~/Mail" directly in
gnus-select-method.

Note that you can also use this approach to do more complicated
things, if you like writing Lisp.  My .gnus file defines split rules
partially from BBDB information, approximately

(defun dzm-bbdb-split-fancy () ...)
(setq nnmail-split-fancy
      `(|
        (: spam-split)
        (any mail "mail.misc.admin")
        ,(dzm-bbdb-split-fancy)
        (any "dmaze@.*mit\\.edu" "mail.misc.personal")
        "mail.misc.impersonal"))

so that the results of the function call are dropped into the
splitting rules.

  --dzm


  parent reply	other threads:[~2005-09-13 21:15 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-11 16:12 romeomedina
2005-09-12 21:16 ` Reiner Steib
2005-09-17  7:34   ` romeomedina
2005-09-13 21:15 ` David Z Maze [this message]
2005-09-13 21:51   ` Feng Chen
2005-09-13 22:23     ` Adam Sjøgren

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=y681x3s655k.fsf@biohazard-cafe.mit.edu \
    --to=dmaze@mit.edu \
    /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).