From: Pankaj Jangid <pankaj@codeisgreat.org>
To: Phillip Lord <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 00:06:57 +0530 [thread overview]
Message-ID: <m24kkty0c6.fsf@codeisgreat.org> (raw)
In-Reply-To: <877dpq6jp2.fsf@russet.org.uk> (Phillip Lord's message of "Thu, 10 Dec 2020 10:26:17 +0000")
Phillip Lord <phillip.lord@russet.org.uk> writes:
>>> (setq gnus-select-method '(nnnil ""))
>>> (setq gnus-secondary-select-methods
>>> '(
>>> (nnimap "localhost"
>>> (nnimap-address "localhost")
>>> (nnimap-server-port 143)
>>> ;; [...]
>>> (nnimap-inbox "INBOX")
>>> (nnimap-split-methods 'nnimap-split-fancy)
>>
>> Don't quote 'nnimap-split-fancy in this line. In fact, it's possible
>> that you can do without this dance altogether -- the manual makes it
>> look like that's okay. Maybe take this clause out and see if it works,
>> and if it doesn't, put it back in but don't quote nnimap-split-fancy.
>
> Alas no. I am still confused as to whether the server are being set at
> all.
As pointed out by Eric, this is a quoting issue. I had some rough days
setting it up. But with help from others, I got to know this. I am not
using fancy splitting. I am using simple splitting and here is my setup:
--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---
next prev parent reply other threads:[~2020-12-10 18:36 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 [this message]
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
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=m24kkty0c6.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.