help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: nnimap splitting


From: Pankaj Jangid
Subject: Re: nnimap splitting
Date: Fri, 11 Dec 2020 00:06:57 +0530
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (darwin)

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---



reply via email to

[Prev in Thread] Current Thread [Next in Thread]