From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Synchronize Gnus and IMAP's notion of read mail Date: Sat, 22 Jun 2024 09:59:02 +0300 Message-ID: <86cyo9jweh.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40746"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Stefan Monnier , Eric Abrahamsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jun 22 09:00:01 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sKujA-000AMe-NJ for ged-emacs-devel@m.gmane-mx.org; Sat, 22 Jun 2024 09:00:00 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sKuiQ-0002Mr-Du; Sat, 22 Jun 2024 02:59:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sKuiO-0002M0-N0 for emacs-devel@gnu.org; Sat, 22 Jun 2024 02:59:12 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sKuiG-0004eG-9f; Sat, 22 Jun 2024 02:59:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=3ZXsvDXA5pN/jvtiQZa+mURbEkp6KKW9mqv+EvXT930=; b=TOk+vaKXPMMl 4v0nHFPuY8/rwJfcZjVVh9Bb3sMvt4rYs34G4YQdaxagGDeg6s6Ho9jZBSQtTI1pGLHw/rJ4bgK6g 72Yx37aAivheXoMgXZOJmuwzrqaSnCO2f3zaM0bJYhDb4Rxn6p0l11jjoYknL7EyZto6raK3y/+qh cN6oPpr7QwqV1EXNEK7b86VaLrDtBVxl3dLDp/bL2/ALrSMltwto6/4feYoack6lAloBo2TsGqlKC 9vMcgFrIx1CJMqvGCSgsr6yrYK3oLDPPJgfSmwSyUtNff/Oy8f2yxxH+MOCS4Wf9ImKiN54OiexO4 vmNhtXq66CrZKBjHsHWffQ==; In-Reply-To: (message from Stefan Monnier on Fri, 21 Jun 2024 17:21:38 -0400) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:320458 Archived-At: > From: Stefan Monnier > Date: Fri, 21 Jun 2024 17:21:38 -0400 > > Apparently there's a bug in Gnus which causes it to sometimes fail to > tell IMAP that some messages are "read" (or maybe it causes some messages > to be re-set to "unread"? I don't know). > > In any case, what I do know is that what my IMAP server considers as > "read" is not the same as what Gnus thinks, even though I basically > never access my IMAP server via anything else than Gnus. > > I have not yet figured out how/why this happens, but instead I'm > wondering how I can fix the consequence of the bug by re-synchronize > Gnus with IMAP. > > I know how to get Gnus to forget its own notion of "read" and (re)fetch > all that info from IMAP. But I'd like to do the reverse: have Gnus tell > IMAP which messages should be considered "read" and which not (of > course, being careful not to affect those messages which Gnus hasn't > seen yet). > E.g. something like have Gnus go through all the messages that IMAP say > are "unread" and mark them (in IMAP) as "read" if Gnus thinks they've > already been "read". > > How can I do that? Eric, can you help Stefan?