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

From: Jamie Forth <[email-masked]>
Date: Tue, 1 Oct 2019 14:08:44 +0000

Lars Ingebrigtsen <[email-masked]> writes:

> Jamie Forth <[email-masked]> writes:
>
> To debug, mark a message in the nnvirtual group as expirable, exit the
> group, and look in the *imap log* buffer and see what's there.

14:34:43 [gold] 3562 SELECT "Junk Email"
14:34:43 [gold] 3563 UID STORE 34 +FLAGS.SILENT (\Seen)

Hm, so no \Deleted.

Doing the same in a normal group:

14:40:03 [gold] 3787 SELECT "Junk Email"
14:40:03 [gold] 3788 SELECT "Junk Email"
14:40:03 [gold] 3789 UID MOVE 31 "Deleted Items"
14:40:03 [gold] 3790 SELECT "Junk Email"
14:40:03 [gold] 3791 SELECT "Junk Email"
14:40:03 [gold] 3792 UID STORE 31 +FLAGS.SILENT (\Seen)

OK, so I’m moving rather than deleting, this makes sense because I have
(nnmail-expiry-target "nnimap+gold:Deleted Items").

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)

--
Jamie