Subject: bug#31739: 25.2; Cannot expire articles in virtual group

From: Lars Ingebrigtsen <[email-masked]>
Date: Thu, 03 Oct 2019 17:51:10 +0200

Jamie Forth <[email-masked]> writes:

> Setting nnmail-expiry-target back to the default I now see:
>
> 14:55:11 [gold] 188 SELECT "Junk Email"
> 14:55:11 [gold] 189 UID STORE 25 +FLAGS.SILENT (\Deleted)
> 14:55:11 [gold] 190 UID EXPUNGE 25
> 14:55:11 [gold] 191 SELECT "Junk Email"
> 14:55:11 [gold] 192 UID STORE 25 +FLAGS.SILENT (\Seen)
>
> But no difference when expiring within the virtual group.
>
> 14:55:57 [gold] 196 SELECT "Junk Email"
> 14:55:57 [gold] 197 UID STORE 22 +FLAGS.SILENT (\Seen)

It does seem like the nnimap expiration function isn't being called at
all, somehow.

Would it be possible for you do open nnvirtual.el and `M-x edebug-defun'
on `nnvirtual-request-expire-articles' and then step through the
function when exiting from the nnvirtual group (with some articles
marked as expirable)?

What's interesting here is whether the

  (gnus-group-expire-articles-1 group)

form is being executed for the nnimap group.  

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no