From: phillip.lord@russet.org.uk
To: Phillip Lord <phillip.lord@russet.org.uk>
Cc: Eric Abrahamsen <eric@ericabrahamsen.net>, help-gnu-emacs@gnu.org
Subject: Re: nnimap splitting
Date: Thu, 10 Dec 2020 18:58:08 +0000 [thread overview]
Message-ID: <1d30cad3346c3d955911198146a18148@russet.org.uk> (raw)
In-Reply-To: <m24kkty0c6.fsf@codeisgreat.org>
On 2020-12-10 18:36, Pankaj Jangid wrote:
> 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---
Just out of curiosity, why do you not use `(nnimap-split-methods
default)` which should do the same thing without the backtick.
Unfortunately the quoting isn't my problem as I have tried it. I think I
am looking in the wrong place and my configuration here is not the issue
at all. I have no idea, unfortunately, what the issue is. If this is
supposed to work in Gnus, I think, it is getting all the server
information from somehwere else. NOt sure where!
Phil
next prev parent reply other threads:[~2020-12-10 18:58 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 [this message]
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=1d30cad3346c3d955911198146a18148@russet.org.uk \
--to=phillip.lord@russet.org.uk \
--cc=eric@ericabrahamsen.net \
--cc=help-gnu-emacs@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.
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.