[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 10:43:58 +0530 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (darwin) |
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.
- Re: nnimap splitting, (continued)
- Re: nnimap splitting, Pankaj Jangid, 2020/12/10
- Re: nnimap splitting, phillip . lord, 2020/12/10
- Re: nnimap splitting, phillip . lord, 2020/12/10
- Re: nnimap splitting, Eric Abrahamsen, 2020/12/10
- Re: nnimap splitting, Eric Abrahamsen, 2020/12/10
- Re: nnimap splitting, Leo Butler, 2020/12/11
- Re: nnimap splitting, phillip . lord, 2020/12/11
- Re: nnimap splitting, Leo Butler, 2020/12/11
- Re: nnimap splitting,
Pankaj Jangid <=