[Top][All Lists]

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

Expiring nnimap messages automatically

From: Nicolas Cavigneaux
Subject: Expiring nnimap messages automatically
Date: Tue, 07 Apr 2020 10:42:33 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (darwin)


this is my first post in this newsgroup. I hope I'll follow this
newsgroup and general guidelines in my post.

I'm using Gnus for quite some times now and I really like it so far. I
managed to tweak it to my needs.

I mainly use it to read / write emails from multiple accounts but I also
use it to read newsgroups and newsfeeds.

I'm only one tweak away from my dream setup. I know how to manually
expire a given mail or thread. I did setup the nnmail-expiry-wait to
'immediate. As far as I know my setup is ready to auto-expire expired
mail in my nnimap groups but in fact expiry never happens.

When I leave a group, Gnus tells me that it is expiring my emails but
they never get deleted / moved. I can even call
gnus-summary-expire-articles and nothing happens.

The only way I found to really expire my expired mails (so they get
moved to according trash group) is to manually call
gnus-summary-expire-articles-now. This commands asks me for a

I though that the deletion / moving would be done automatically in some
way by Gnus…

Am I missing something? Is there something related to gnus-agent?

I'd be really grateful if someone was able to provide some insights to
help me with auto-deletion.

Here is the relevant part of config regarding expiry:

(setq gnus-secondary-select-methods
      '((nnimap "home"
                (nnimap-address "")
                (nnimap-server-port "imaps")
                (nnimap-stream ssl)
                (nnir-search-engine imap)
                ;; @see
                ;; press 'E' to expire email
                (nnmail-expiry-target "nnimap+home:[Gmail]/Trash")
                (nnmail-expiry-wait 'immediate))))

Thanks in advance and stay safe.
Nicolas Cavigneaux

reply via email to

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