Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* imap immediate expiry trouble
@ 2016-04-21 15:10 Stig Brautaset
  2016-04-22 21:42 ` Stig Brautaset
  0 siblings, 1 reply; 2+ messages in thread
From: Stig Brautaset @ 2016-04-21 15:10 UTC (permalink / raw)
  To: info-gnus-english


Hi,

I've got this function in my .gnus.el:

  (setq nnmail-expiry-wait-function
        (lambda (group)
          (print "DEBUG: nnmail-expiry-wait-function")
          (if (string= "INBOX" group)
              'immediate
            'never)))

When I expire a group I can see in *Messages* that the
nnmail-expiry-wait-function is indeed called, but it appears that its
return value is ignored, because recent messages from the last 24 hours
are still there. (I have explicitly marked messages for expiry with
"E".)

If I have very old messages marked for expiry, these /are/ usually
expired. Any help would be appreciated.

I'm using Gnus v5.13.

Stig



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: imap immediate expiry trouble
  2016-04-21 15:10 imap immediate expiry trouble Stig Brautaset
@ 2016-04-22 21:42 ` Stig Brautaset
  0 siblings, 0 replies; 2+ messages in thread
From: Stig Brautaset @ 2016-04-22 21:42 UTC (permalink / raw)
  To: info-gnus-english

Stig Brautaset <sbrautaset@gmail.com> writes:
> If I have very old messages marked for expiry, these /are/ usually
> expired. Any help would be appreciated.

Never mind, this seems to do what I want:

  (setq gnus-parameters
        '((".*"
           (expiry-wait . never))
        
          ("^nnimap.*:INBOX$"
           (expiry-wait . immediate))))


Stig



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-04-22 21:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-21 15:10 imap immediate expiry trouble Stig Brautaset
2016-04-22 21:42 ` Stig Brautaset

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).