[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: multi-email gnus setup questions
From: |
Eric Abrahamsen |
Subject: |
Re: multi-email gnus setup questions |
Date: |
Thu, 24 Dec 2015 14:32:24 +0800 |
User-agent: |
Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.1.50 (gnu/linux) |
Benjamin Slade <slade@uta.edu> writes:
> news@kloecker.org (Jens Klöcker) writes:
>
>> I have one. It's looking like this:
>>
>> --8<---------------cut here---------------start------------->8---
>> (setq gnus-secondary-select-methods
>> '((nnimap "work"
>> SOME CONFIG OPTIONS
>> (nnimap-inbox "INBOX")
>> (nnimap-split-methods 'nnimap-split-fancy)
>> (nnimap-split-fancy
>> (| SOME FANCY RULES HERE
>> )
>> )
>> )
>> (nnimap "private"
>> SOME CONFIG OPTIONS
>> (nnimap-inbox "INBOX")
>> (nnimap-split-methods 'nnimap-split-fancy)
>> (nnimap-split-fancy
>> (| SOME OTHER FANCY RULES HERE
>> )
>> )
>> )
>> )
>> --8<---------------cut here---------------end--------------->8---
>>
>
> Ok, that worked for me. Many thanks.
>
> I'm still stuck on getting my "expired" mail to move to [Gmail]/Bin
>
> (setq gnus-secondary-select-methods
> '((nnimap "work"
> (nnimap-inbox "INBOX")
> ....
> (nnmail-expiry-target "nnimap+work:[Gmail]/Bin")
>
> (nnmail-expiry-wait immediate)
> )
> )
> )
>
> I've tried changing "nnmail-expiry-target" to "nnimap-expiry-target";
> I've tried changing "/Bin" to "/Trash" (but it should be former for my
> account); I've tried changing "/Bin" to ".Bin", all the various
> permutations of these.
>
> As well, I tried various ways of setting up
> ```nnmail-fancy-expiry-target```. But I couldn't get any of these to
> work. Even with ```nnmail-expiry-wait immediate``` set. The messages are
> removed from the INBOX, and marked read, but are not moved to
> [Gmail]Bin(~Trash).
`nnmail-expiry-targets' isn't a server variable, just a regular
variable. Also, there's no `nnimap-expiry-targets', and
`nnmail-fancy-expiry-targets' only lets you base expiration on group
names, not backends. Here's what I do (outside of the server
definition):
(setq nnmail-expiry-target 'my-expire-gmail-imap-message)
(defun my-expire-gmail-imap-message (group)
"In gmail-based imap groups, expiry should happen by moving the
message to the corresponding [Gmail]/Trash folder."
(if (string-match "nnimap\\+\\(several\\|gmail\\|backends\\):" group)
(format "nnimap+%s:[Gmail]/Trash" (match-string 1 group))
'delete))
That expires everything in a Gmail imap account to the corresponding
[Gmail]/Trash folder.
Hope that helps,
Eric
- multi-email gnus setup questions, Benjamin Slade, 2015/12/21
- Re: multi-email gnus setup questions, Eric Abrahamsen, 2015/12/21
- Re: multi-email gnus setup questions, Benjamin Slade, 2015/12/23
- Message not available
- Re: multi-email gnus setup questions, Jens Klöcker, 2015/12/23
- Re: multi-email gnus setup questions, Eric Abrahamsen, 2015/12/23
- Re: multi-email gnus setup questions, Benjamin Slade, 2015/12/23
- Re: multi-email gnus setup questions,
Eric Abrahamsen <=
- Re: multi-email gnus setup questions, Benjamin Slade, 2015/12/24
- Re: multi-email gnus setup questions, Eric Abrahamsen, 2015/12/24
- Re: multi-email gnus setup questions, Benjamin Slade, 2015/12/26
- Re: multi-email gnus setup questions, Eric Abrahamsen, 2015/12/26
- Re: multi-email gnus setup questions, B.V. Raghav, 2015/12/27
- Re: multi-email gnus setup questions, B.V. Raghav, 2015/12/24
- Re: multi-email gnus setup questions, Eric Abrahamsen, 2015/12/24