Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: Nicolas Cavigneaux <cavigneaux@gmail.com>
Cc: info-gnus-english@gnu.org
Subject: Re: Expiring nnimap messages automatically
Date: Tue, 07 Apr 2020 12:49:06 -0700	[thread overview]
Message-ID: <87a73ngjpp.fsf@ericabrahamsen.net> (raw)
In-Reply-To: <m21rozjgqz.fsf@gmail.com> (Nicolas Cavigneaux's message of "Tue,  07 Apr 2020 20:24:52 +0200")

Nicolas Cavigneaux <cavigneaux@gmail.com> writes:

> Hi Eric, thank a lot for your reply.
>
> Eric Abrahamsen <eric@ericabrahamsen.net> writes:
>
>> I'm not entirely sure, but it looks like nnimap has its own server
>> variable governing expiration/expunging: ‘nnimap-expunge’
>>
>> From the manual:
>>
>>      When to expunge deleted messages.  If ‘never’, deleted articles are
>>      marked with the IMAP ‘\\Delete’ flag but not automatically
>>      expunged.  If ‘immediately’, deleted articles are immediately
>>      expunged (this requires the server to support the UID EXPUNGE
>>      command).  If ‘on-exit’, deleted articles are flagged, and all
>>      flagged articles are expunged when the group is closed.
>>
>>      For backwards compatibility, this variable may also be set to t or
>>      nil.  If the server supports UID EXPUNGE, both t and nil are
>>      equivalent to ‘immediately’.  If the server does not support UID
>>      EXPUNGE nil is equivalent to ‘never’, while t will immediately
>>      expunge ALL articles that are currently flagged as deleted (i.e.,
>>      potentially not only the article that was just deleted).
>>
>> Does that help?
>
> I just tried to set 'nnimap-expunge' to both 'on-exit and then
> 'immediate but it doesn't seems to do anything at all.

Oops, I'm sorry, that variable only governs when/whether Gnus issues an
EXPUNGE command when exiting a group, nothing directly to do with
expiry, I should have looked at that more closely. I don't use expiry so
all this is a bit confusing.

The fact that expiry happens only when you call
`gnus-summary-expire-articles-now' makes it look like the
nnmail-expiry-wait is not getting successfully set to 'immediate. If you
run this (use whatever group name you're expecting expiry to happen in):

(gnus-group-find-parameter "nnimap+Home:INBOX" 'expiry-wait)

What does it return?

_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english

  reply	other threads:[~2020-04-07 19:49 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-07  8:42 Nicolas Cavigneaux
2020-04-07 17:13 ` Eric Abrahamsen
2020-04-07 18:24   ` Nicolas Cavigneaux
2020-04-07 19:49     ` Eric Abrahamsen [this message]
2020-04-07 20:22       ` Nicolas Cavigneaux
2020-04-07 21:29         ` Eric Abrahamsen
2020-04-07 22:32           ` Nicolas Cavigneaux
2020-04-08  3:45             ` Eric Abrahamsen
2020-04-08  8:38               ` Nicolas Cavigneaux
2020-04-08 14:55                 ` Eric Abrahamsen
2020-04-09  8:22                   ` Nicolas Cavigneaux
2020-04-09 16:47                     ` Eric Abrahamsen
2020-04-09 19:26                       ` Nicolas Cavigneaux
2020-04-09 20:23                         ` Eric Abrahamsen
2020-04-09 20:27                           ` Eric Abrahamsen
2020-04-09 21:15                             ` Nicolas Cavigneaux
2020-04-09 21:32                               ` 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=87a73ngjpp.fsf@ericabrahamsen.net \
    --to=eric@ericabrahamsen.net \
    --cc=cavigneaux@gmail.com \
    --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).