From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Nikolaus Rath Newsgroups: gmane.emacs.bugs Subject: bug#28331: [gnus] Articles loose read status on expiry Date: Sun, 29 Apr 2018 16:13:57 +0100 Message-ID: <8736ze11vu.fsf@vostro.rath.org> References: <87d179jhpi.fsf@vostro.rath.org> <87muy9wh25.fsf@mouse.gnus.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1525014869 13274 195.159.176.226 (29 Apr 2018 15:14:29 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 29 Apr 2018 15:14:29 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) Cc: 28331@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Apr 29 17:14:24 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fCo1v-0003Ky-I3 for geb-bug-gnu-emacs@m.gmane.org; Sun, 29 Apr 2018 17:14:24 +0200 Original-Received: from localhost ([::1]:55896 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fCo42-0000D9-Ez for geb-bug-gnu-emacs@m.gmane.org; Sun, 29 Apr 2018 11:16:34 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49314) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fCo2c-0007sd-CY for bug-gnu-emacs@gnu.org; Sun, 29 Apr 2018 11:15:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fCo2Y-0003kV-Ob for bug-gnu-emacs@gnu.org; Sun, 29 Apr 2018 11:15:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:35112) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fCo2Y-0003jz-K4 for bug-gnu-emacs@gnu.org; Sun, 29 Apr 2018 11:15:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fCo2Y-0007fG-7j; Sun, 29 Apr 2018 11:15:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Nikolaus Rath Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Sun, 29 Apr 2018 15:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28331 X-GNU-PR-Package: emacs,gnus X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 28331-submit@debbugs.gnu.org id=B28331.152501484829385 (code B ref 28331); Sun, 29 Apr 2018 15:15:02 +0000 Original-Received: (at 28331) by debbugs.gnu.org; 29 Apr 2018 15:14:08 +0000 Original-Received: from localhost ([127.0.0.1]:43009 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fCo1d-0007dq-9U for submit@debbugs.gnu.org; Sun, 29 Apr 2018 11:14:08 -0400 Original-Received: from out2-smtp.messagingengine.com ([66.111.4.26]:51575) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fCo1Y-0007dH-Ey for 28331@debbugs.gnu.org; Sun, 29 Apr 2018 11:14:04 -0400 Original-Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 01CBE21511; Sun, 29 Apr 2018 11:14:00 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Sun, 29 Apr 2018 11:14:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=H7VBGB gTiCfrrI8xvbjQZdu+CqvRSJORh4tMj8/LQ2w=; b=a++cExrMgudycxtWT87Z0+ ysH06AGxuwkxoQGgqJGcldaV1pfQbRiyJBxpsXZgisDHkAl+YKQNsm8VTFzPjR2S jrUi6nLqtaVIgQZ7lMI+l+O8ULbGWq97a0Rl15a9R8wX4NaNQJlIhdvAJorM7hjY QbSg/SFgAOp4TdttkfE1zvl3Y4DFb/yYTqYsPY+gl0c3IHrpKVgHZ1AEksQnKzzg l5q9p+f1B0Pd1Y/NZ0LcjjWZ3psybxQO0qjOZGStK03GtDKJB7pojQNYfnnIcD+d ePLsUneqFnJetgXPPe9EQ5jtJgx6rcRqtLDXhFmnJgO0XiBko9QSXnAqLuWJ1JVg == X-ME-Sender: Original-Received: from ebox.rath.org (ebox.rath.org [185.3.94.194]) by mail.messagingengine.com (Postfix) with ESMTPA id 70730E4924; Sun, 29 Apr 2018 11:13:59 -0400 (EDT) Original-Received: from vostro.rath.org (vostro [192.168.12.4]) by ebox.rath.org (Postfix) with ESMTPS id 4FFD227; Sun, 29 Apr 2018 15:13:58 +0000 (UTC) Original-Received: by vostro.rath.org (Postfix, from userid 1000) id C5608E2BE7; Sun, 29 Apr 2018 16:13:57 +0100 (BST) In-Reply-To: <87muy9wh25.fsf@mouse.gnus.org> (Lars Ingebrigtsen's message of "Wed, 11 Apr 2018 23:48:18 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:145821 Archived-At: On Apr 11 2018, Lars Ingebrigtsen wrote: > Nikolaus Rath 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 --=20 GPG Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F =C2=BBTime flies like an arrow, fruit flies like a Banana.=C2= =AB