GNU bug report logs - #28331
[gnus] Articles loose read status on expiry

Previous Next

Packages: gnus, emacs;

Reported by: Nikolaus Rath <Nikolaus <at> rath.org>

Date: Sat, 2 Sep 2017 14:31:01 UTC

Severity: minor

Tags: fixed

Merged with 21071

Found in versions 5.130014, 5.13

Fixed in version 27.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 28331 in the body.
You can then email your comments to 28331 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org, bugs <at> gnus.org:
bug#28331; Package emacs,gnus. (Sat, 02 Sep 2017 14:31:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Nikolaus Rath <Nikolaus <at> rath.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org, bugs <at> gnus.org. (Sat, 02 Sep 2017 14:31:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Nikolaus Rath <Nikolaus <at> rath.org>
To: submit <at> debbugs.gnu.org (The Gnus Bugfixing Girls + Boys)
Subject: [gnus] Articles loose read status on expiry
Date: Sat, 02 Sep 2017 16:30:49 +0200
When marking an article as read and for expiry, and the expiry target is
another group, the article ends up being unread again in the target
group.

An easy fix is to take `gnus-summary-expire-articles' out of
`gnus-summary-prepare-exit-hook', and instead call it explicitly in
`gnus-summary-exit' at a later point.

However, this results in the article not just being marked read in the
target group (as intended), but also still marked for expiry (not
good). I could not figure out how to change that.

I've observed this with the nnimap backend.

Ma Gnus v0.14
GNU Emacs 25.1.1 (x86_64-pc-linux-gnu, GTK+ Version 3.22.12)
 of 2017-04-23, modified by Debian

Best,
-Nikolaus

-- 
GPG Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F

             »Time flies like an arrow, fruit flies like a Banana.«




Information forwarded to bug-gnu-emacs <at> gnu.org, bugs <at> gnus.org:
bug#28331; Package emacs,gnus. (Wed, 11 Apr 2018 21:49:02 GMT) Full text and rfc822 format available.

Message #8 received at 28331 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Nikolaus Rath <Nikolaus <at> rath.org>
Cc: 28331 <at> debbugs.gnu.org
Subject: Re: bug#28331: [gnus] Articles loose read status on expiry
Date: Wed, 11 Apr 2018 23:48:18 +0200
Nikolaus Rath <Nikolaus <at> rath.org> writes:

> When marking an article as read and for expiry, and the expiry target is
> another group, the article ends up being unread again in the target
> group.
>
> An easy fix is to take `gnus-summary-expire-articles' out of
> `gnus-summary-prepare-exit-hook', and instead call it explicitly in
> `gnus-summary-exit' at a later point.
>
> However, this results in the article not just being marked read in the
> target group (as intended), but also still marked for expiry (not
> good). I could not figure out how to change that.
>
> I've observed this with the nnimap backend.

I don't use expiry targets, but this sounds like the right solution
(only that the expiry mark should be filtered out).  Could you post the
patch of what you have and I can take a whack at doing the filtering?

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




Added tag(s) moreinfo. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Wed, 11 Apr 2018 21:49:02 GMT) Full text and rfc822 format available.

Forcibly Merged 21071 28331. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Thu, 12 Apr 2018 16:44:01 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org, bugs <at> gnus.org:
bug#28331; Package emacs,gnus. (Sun, 29 Apr 2018 15:15:02 GMT) Full text and rfc822 format available.

Message #15 received at 28331 <at> debbugs.gnu.org (full text, mbox):

From: Nikolaus Rath <Nikolaus <at> rath.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 28331 <at> debbugs.gnu.org
Subject: Re: bug#28331: [gnus] Articles loose read status on expiry
Date: Sun, 29 Apr 2018 16:13:57 +0100
On Apr 11 2018, Lars Ingebrigtsen <larsi <at> gnus.org> wrote:
> Nikolaus Rath <Nikolaus <at> rath.org> writes:
>
>> When marking an article as read and for expiry, and the expiry target is
>> another group, the article ends up being unread again in the target
>> group.
>>
>> An easy fix is to take `gnus-summary-expire-articles' out of
>> `gnus-summary-prepare-exit-hook', and instead call it explicitly in
>> `gnus-summary-exit' at a later point.
>>
>> However, this results in the article not just being marked read in the
>> target group (as intended), but also still marked for expiry (not
>> good). I could not figure out how to change that.
>>
>> I've observed this with the nnimap backend.
>
> I don't use expiry targets, but this sounds like the right solution
> (only that the expiry mark should be filtered out).  Could you post the
> patch of what you have and I can take a whack at doing the filtering?

"patch" may be exaggerating it a little bit. What I used is

(remove-hook 'gnus-summary-prepare-exit-hook 'gnus-summary-expire-articles)

in my .gnus and

     ;; Remove entries for this group.
     (nnmail-purge-split-history (gnus-group-real-name group))
     ;; Make all changes in this group permanent.
     (unless quit-config
       (gnus-run-hooks 'gnus-exit-group-hook)
       (gnus-summary-update-info))
+    (gnus-summary-expire-articles)
     (gnus-close-group group)
     ;; Make sure where we were, and go to next newsgroup.
     (when (buffer-live-p (get-buffer gnus-group-buffer))
       (set-buffer gnus-group-buffer))
     (unless quit-config

in gnus-summary-exit (gnus-sum.el).



Best,
-Nikolaus

-- 
GPG Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F

             »Time flies like an arrow, fruit flies like a Banana.«




Removed tag(s) moreinfo. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Wed, 09 Jan 2019 19:39:02 GMT) Full text and rfc822 format available.

Forcibly Merged 21071 28331 33232. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sun, 23 Jun 2019 13:02:01 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 21071 <at> debbugs.gnu.org and Nikolaus Rath <Nikolaus <at> rath.org> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sun, 23 Jun 2019 13:03:02 GMT) Full text and rfc822 format available.

Did not alter fixed versions and reopened. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 23 Jun 2019 13:03:02 GMT) Full text and rfc822 format available.

Disconnected #33232 from all other report(s). Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sun, 23 Jun 2019 13:04:02 GMT) Full text and rfc822 format available.

Removed tag(s) wontfix. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Mon, 29 Jul 2019 22:29:02 GMT) Full text and rfc822 format available.

Added tag(s) fixed. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Fri, 27 Sep 2019 16:06:02 GMT) Full text and rfc822 format available.

bug marked as fixed in version 27.1, send any further explanations to 21071 <at> debbugs.gnu.org and Nikolaus Rath <Nikolaus <at> rath.org> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Fri, 27 Sep 2019 16:06:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 26 Oct 2019 11:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 154 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.