From: Pankaj Jangid <pankaj@codeisgreat.org>
To: phillip.lord@russet.org.uk
Cc: Eric Abrahamsen <eric@ericabrahamsen.net>, help-gnu-emacs@gnu.org
Subject: Re: nnimap splitting
Date: Fri, 11 Dec 2020 10:43:58 +0530 [thread overview]
Message-ID: <m2a6ukc4bt.fsf@codeisgreat.org> (raw)
In-Reply-To: <1d30cad3346c3d955911198146a18148@russet.org.uk> (phillip lord's message of "Thu, 10 Dec 2020 18:58:08 +0000")
phillip.lord@russet.org.uk writes:
>> --8<---------------cut here---------------start------------->8---
>> 1 (add-to-list 'gnus-secondary-select-methods ; codeisgreat.org
>> 2 `(nnimap "codeisgreat"
>> 3 (nnimap-address "imap.gmail.com")
>> 4 (nnimap-inbox "INBOX")
>> 5 (nnimap-expunge immediately)
>> 6 (nnimap-stream ssl)
>> 7 (nnimap-split-methods ,nnmail-split-methods)))
>> --8<---------------cut here---------------end--------------->8---
>> Notice backquote on line 2 and comma on line 7. And
>> ‘nnmail-split-methods’ is defined like this:
>> --8<---------------cut here---------------start------------->8---
>> (setq nnmail-split-methods
>> '(("cron" "^from:.*Cron Daemon")
>> ("cron" "^from: OSSEC HIDS <ossecm@app0>")
>> ("cron" "^from: OSSEC HIDS <ossecm@app1>")))
>> --8<---------------cut here---------------end--------------->8---
>
>
> Just out of curiosity, why do you not use `(nnimap-split-methods
> default)` which should do the same thing without the backtick.
This has a little history. I have many IMAP servers to fetch from. And I
had different variables to set splitting for each. Quoting was necessary
then. It is only recently, after looking at an 11 year old message from
Lars in a mailing list, that I have switched to using a common variable,
which, as you said, could be replaced with default.
prev parent reply other threads:[~2020-12-11 5:13 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-09 22:38 nnimap splitting Phillip Lord
2020-12-09 23:26 ` Eric Abrahamsen
2020-12-10 10:26 ` Phillip Lord
2020-12-10 17:41 ` Eric Abrahamsen
2020-12-10 18:48 ` phillip.lord
2020-12-10 18:36 ` Pankaj Jangid
2020-12-10 18:58 ` phillip.lord
2020-12-10 19:22 ` phillip.lord
2020-12-11 0:07 ` Eric Abrahamsen
2020-12-11 0:09 ` Eric Abrahamsen
2020-12-11 12:24 ` Leo Butler
2020-12-11 21:37 ` phillip.lord
2020-12-11 22:04 ` Leo Butler
2020-12-11 5:13 ` Pankaj Jangid [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=m2a6ukc4bt.fsf@codeisgreat.org \
--to=pankaj@codeisgreat.org \
--cc=eric@ericabrahamsen.net \
--cc=help-gnu-emacs@gnu.org \
--cc=phillip.lord@russet.org.uk \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.