From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: Fernando de Morais <fernandodemorais.jf@gmail.com>
Cc: info-gnus-english@gnu.org
Subject: Re: Help needed: nnmaildir and create-directory parameter.
Date: Wed, 23 Nov 2022 10:00:45 -0800 [thread overview]
Message-ID: <87bkoxa6uq.fsf@ericabrahamsen.net> (raw)
In-Reply-To: <87r0xtohmh.fsf@sekai.mail-host-address-is-not-set> (Fernando de Morais's message of "Wed, 23 Nov 2022 11:44:22 -0300")
Fernando de Morais <fernandodemorais.jf@gmail.com> writes:
> Hello everyone,
>
> According to the manual, for a `nnmaildir' server, if my split rules
> create new groups, I need to supply a `create-directory' server
> parameter[1]. Ok, so considering the following example snippet:
>
> #+begin_src emacs-lisp
> (customize-set-variable 'gnus-select-method '(nnnil ""))
> (customize-set-variable 'gnus-secondary-select-methods
> '((nntp "news.gwene.org")
> (nnmaildir ""
> (directory "~/Mail/maildirs")
> (target-prefix "")
> (get-new-mail t)
> (create-directory ...)))) ; <-- Here
> (customize-set-variable 'mail-sources '((file :path "~/Mail/emaple_mbox")))
> (customize-set-variable 'nnmail-split-methods '(("inbox" "")))
> #+end_src
>
> Following the example snippet above, what is the expected value for the
> parameter `create-directory'? Unfortunately the manual brings no
> details about it.
I won't claim to understand how this is supposed to work, but in
`nnmaildir-open-server' we've got the following chunk of
lisp-as-imperative-code:
(setq x (assq 'target-prefix defs))
(if x
(progn
(setq x (cadr x)
x (eval x t)) ;FIXME: Why `eval'?
(setf (nnmaildir--srv-target-prefix server) x))
(setq x (assq 'create-directory defs))
(if x
(progn
(setq x (cadr x)
x (eval x t) ;FIXME: Why `eval'?
x (file-name-as-directory x))
(setf (nnmaildir--srv-target-prefix server) x))
(setf (nnmaildir--srv-target-prefix server) "")))
This makes it look to me like, if you've got a 'target-prefix set (even
if it's the empty string), then 'create-directory never comes into play
at all.
So maybe try taking out the (target-prefix "") server config completely?
I really don't know how this is meant to work. If you figure it out we
should update the manual.
Thanks,
Eric
next prev parent reply other threads:[~2022-11-23 18:01 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-23 14:44 Fernando de Morais
2022-11-23 18:00 ` Eric Abrahamsen [this message]
2022-11-24 5:52 ` Fernando de Morais
2022-11-25 19:21 ` Eric Abrahamsen
2022-11-26 0:16 ` Andrew Cohen
2022-11-26 18:02 ` Eric Abrahamsen
-- strict thread matches above, loose matches on Subject: below --
2022-11-23 14:25 Fernando de Morais
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=87bkoxa6uq.fsf@ericabrahamsen.net \
--to=eric@ericabrahamsen.net \
--cc=fernandodemorais.jf@gmail.com \
--cc=info-gnus-english@gnu.org \
/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).