From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: info-gnus-english@gnu.org
Subject: Re: multi-email gnus setup questions
Date: Fri, 25 Dec 2015 10:11:39 +0800 [thread overview]
Message-ID: <8737uruvj8.fsf@ericabrahamsen.net> (raw)
In-Reply-To: <87bn9fbkye.fsf@jnanam.net>
Benjamin Slade <slade@jnanam.net> writes:
> Eric Abrahamsen <eric@ericabrahamsen.net> writes:
>> `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.
>
> Hmm.. ok, so outside of the server definition, just in the main .gnus.el
> fail (not in the scope of anything else), I've tried putting:
>
> (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]/Bin folder."
> (if (string-match "nnimap\\+\\(homemail\\|workmail\\|funmail\\):" group)
> (format "nnimap+%s:[Gmail]\Bin" (match-string 1 group))
> 'delete))
>
> [So in my Gnus groups, I see things like:
>
> 3:nnimap+homemail:INBOX
> 7:nnimap+homemail:Madness
> 9:nnimap+workmail:INBOX
>
> etc.
>
> And my Gmail boxes are [Gmail]/Bin rather than [Gmail]/Trash]
>
> The resulting behaviour, when I open up the Gmail webclient, that the
> deleted message indeed disappears from the Inbox, but does not appear in
> the [Gmail]/Bin directory. (I.e., as far as I can, it must just be
> matching the 'delete rule).
>
> I've also tried setting (setq nnmail-expiry-wait 'immediate), but that
> doesn't seem to make a difference.
>
> Finally, I also tried changing the regex to:
>
> nnimap\\+\\(homemail\\|workmail\\|funmail\\):.*
>
> but that also doesn't work.
>
> Any ideas where something could be going wrong?
I think it's probably edebug time. Try instrumenting the
my-expire-gmail-imap-message function, and maybe, for good measure,
gnus-group-expire-articles-1 as well. Expire some articles, and step
through the functions, and just see what's going on. My guess is it will
become clear pretty quickly what's going wrong. I hope!
next prev parent reply other threads:[~2015-12-25 2:11 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-22 0:05 Benjamin Slade
2015-12-22 1:06 ` Eric Abrahamsen
2015-12-22 21:15 ` Benjamin Slade
[not found] ` <mailman.430.1450858810.843.info-gnus-english@gnu.org>
2015-12-23 11:14 ` Jens Klöcker
2015-12-23 21:38 ` Benjamin Slade
2015-12-24 6:32 ` Eric Abrahamsen
2015-12-24 21:22 ` Benjamin Slade
2015-12-25 2:11 ` Eric Abrahamsen [this message]
2015-12-27 4:01 ` Benjamin Slade
2015-12-27 4:08 ` Eric Abrahamsen
2015-12-28 0:33 ` B.V. Raghav
2015-12-25 3:18 ` B.V. Raghav
2015-12-25 3:25 ` Eric Abrahamsen
2015-12-24 3:28 ` Eric Abrahamsen
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=8737uruvj8.fsf@ericabrahamsen.net \
--to=eric@ericabrahamsen.net \
--cc=info-gnus-english@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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).