From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 07 17:41:54 2016 Received: (at submit) by debbugs.gnu.org; 7 Feb 2016 22:41:54 +0000 Received: from localhost ([127.0.0.1]:37685 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aSY1f-0005Vx-8x for submit@debbugs.gnu.org; Sun, 07 Feb 2016 17:41:54 -0500 Received: from eggs.gnu.org ([208.118.235.92]:58628) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aSY1a-0005VS-QB for submit@debbugs.gnu.org; Sun, 07 Feb 2016 17:41:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aSY1R-0004BU-KW for submit@debbugs.gnu.org; Sun, 07 Feb 2016 17:41:41 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:40002) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSY1R-0004BQ-He for submit@debbugs.gnu.org; Sun, 07 Feb 2016 17:41:37 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49588) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSY1N-0007P0-Mm for bug-gnu-emacs@gnu.org; Sun, 07 Feb 2016 17:41:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aSY1J-0004B1-SQ for bug-gnu-emacs@gnu.org; Sun, 07 Feb 2016 17:41:33 -0500 Received: from shell1.rawbw.com ([198.144.192.42]:61759) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSY1J-0004Ax-Jw for bug-gnu-emacs@gnu.org; Sun, 07 Feb 2016 17:41:29 -0500 Received: from allegro.localdomain (m208-249.dsl.rawbw.com [198.144.208.249]) by shell1.rawbw.com (8.15.1/8.15.1) with ESMTP id u17MfQaE053036 for ; Sun, 7 Feb 2016 14:41:27 -0800 (PST) (envelope-from m.kupfer@acm.org) X-Authentication-Warning: shell1.rawbw.com: Host m208-249.dsl.rawbw.com [198.144.208.249] claimed to be allegro.localdomain From: Mike Kupfer To: bug-gnu-emacs@gnu.org Subject: 24.5; gnus/nnimap: ticked messages not getting marked as read X-Mailer: MH-E 8.6+mdk01; nmh 1.6; GNU Emacs 25.0.90 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <5165.1454884886.1@allegro.localdomain> Content-Transfer-Encoding: quoted-printable Date: Sun, 07 Feb 2016 14:41:26 -0800 Message-ID: <5166.1454884886@allegro.localdomain> X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) [This message was originally sent to ding@gnus.org. There was some followup discussion on 2016-2-6 on that list.] I have a couple different systems that I use to connect to an IMAP server. I've noticed that messages that I had read--or at least marked as read--using Gnus on system A sometimes show up as unread using Gnus on system B. I've finally tracked it down to this scenario: - a message is unread and flagged (ticked) on the IMAP server. Gnus shows it and the next message in the summary buffer as ticked. (I'm not sure that status of the second message is critical for reproducing the problem, but it seems to help.) - in the Gnus summary buffer, I type "d" for the first message. The message is marked "r" in the summary buffer, as expected. - I exit the summary buffer and type "s" in the Group buffer - I check the folder using Thunderbird; it shows the first message as no longer flagged, but it's still shown as unread. I expect the first message to be shown as read ("seen"). This is with Emacs 24.5. With the debugger I captured the following stack trace while exiting the summary buffer: Debugger entered--entering a function: * nnimap-send-command("UID STORE %s %sFLAGS.SILENT (%s)" "257948" "-" = "\\Flagged") nnimap-request-set-mark("INBOX" (((257948) del (tick))) "beehive") gnus-request-set-mark("nnimap+beehive:INBOX" (((257948) del (tick)))= ) gnus-update-marks() gnus-summary-update-info() gnus-summary-exit() call-interactively(gnus-summary-exit nil nil) command-execute(gnus-summary-exit) I didn't notice any calls to set the Seen flag. I tried figuring out what's going on in gnus-update-marks, but it's a bit confusing, because there's both a gnus-newsgroup-seen list and a gnus-newsgroup-unseen list. Though this bit of code seems odd: (when (eq (cdr type) 'seen) (setq list (gnus-range-add list gnus-newsgroup-unseen))) Is it really adding seen messages to the unseen list? [end of original email] In GNU Emacs 24.5.2 (x86_64-unknown-linux-gnu, X toolkit, Xaw scroll bars) of 2016-01-23 on allegro Windowing system distributor `The X.Org Foundation', version 11.0.11604000 System Description: Debian GNU/Linux 8.3 (jessie) Important settings: value of $LC_TIME: C value of $LANG: en_US.utf8 locale-coding-system: utf-8-unix Major mode: Fundamental Minor modes in effect: delete-selection-mode: t electric-indent-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t transient-mark-mode: t Recent messages: lib/emacs/hacks.el: (lambda (buf) ...) quoted with ' rather than with #' [= 2 times] lib/emacs/hacks.el: (lambda (name) ...) quoted with ' rather than with #' Loading /home/kupfer/lib/emacs/hacks.el (source)...done Loading /home/kupfer/lib/emacs/default.el (source)... Loading /home/kupfer/lib/emacs/xtermkeys.el (source)...done Loading vc...done Loading /home/kupfer/lib/emacs/default.el (source)...done Loading /home/kupfer/lib/emacs/xtermkeys.el (source)...done Loading vc...done For information about GNU Emacs and the GNU system, type M-H C-a. Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils warnings server noutline outline easy-mmode comint ansi-color ring xcscope easymenu advice help-fns ispell delsel vc vc-dispatcher dired timeclock mdk-hacks time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process inotify dynamic-setting font-render-setting x-toolkit x multi-tty emacs) Memory information: ((conses 16 96193 3845) (symbols 48 21325 0) (miscs 40 89 99) (strings 32 19562 4494) (string-bytes 1 490564) (vectors 16 11281) (vector-slots 8 413359 2394) (floats 8 86 68) (intervals 56 194 0) (buffers 960 13) (heap 1024 11183 682)) From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 26 17:48:22 2017 Received: (at 22590) by debbugs.gnu.org; 26 Jan 2017 22:48:22 +0000 Received: from localhost ([127.0.0.1]:46463 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cWsq6-0000jS-CH for submit@debbugs.gnu.org; Thu, 26 Jan 2017 17:48:22 -0500 Received: from hermes.netfonds.no ([80.91.224.195]:59946) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cWsq5-0000jJ-G0 for 22590@debbugs.gnu.org; Thu, 26 Jan 2017 17:48:21 -0500 Received: from 2.150.50.220.tmi.telenormobil.no ([2.150.50.220] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cWsq2-0005u8-MY; Thu, 26 Jan 2017 23:48:20 +0100 From: Lars Ingebrigtsen To: Mike Kupfer Subject: Re: bug#22590: 24.5; gnus/nnimap: ticked messages not getting marked as read In-Reply-To: <5166.1454884886@allegro.localdomain> (Mike Kupfer's message of "Sun, 07 Feb 2016 14:41:26 -0800") Date: Thu, 26 Jan 2017 23:47:32 +0100 Message-ID: <87wpdh5th7.fsf@gnus.org> References: <5166.1454884886@allegro.localdomain> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 22590 Cc: 22590@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Mike Kupfer writes: > - a message is unread and flagged (ticked) on the IMAP server. Gnus > shows it and the next message in the summary buffer as ticked. (I'm > not sure that status of the second message is critical for reproducing > the problem, but it seems to help.) > - in the Gnus summary buffer, I type "d" for the first message. The > message is marked "r" in the summary buffer, as expected. > - I exit the summary buffer and type "s" in the Group buffer > - I check the folder using Thunderbird; it shows the first message as no > longer flagged, but it's still shown as unread. I think I understand what's going on. In Gnus, there's no such thing as "ticked and unread": Everything that's \Flagged in the IMAP server becomes read in Gnus. So when you remove the tick (i.e., \Flagged), Gnus will propagate that change to the IMAP server, but since it thinks that nothing has changed WRT readedness, it doesn't send that information to the server... I'm not sure what the best way to fix that is... -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 26 19:14:48 2019 Received: (at 22590) by debbugs.gnu.org; 26 Sep 2019 23:14:48 +0000 Received: from localhost ([127.0.0.1]:45560 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iDcyG-0003X2-Ap for submit@debbugs.gnu.org; Thu, 26 Sep 2019 19:14:48 -0400 Received: from quimby.gnus.org ([80.91.231.51]:43860) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iDcyE-0003Wr-Ho for 22590@debbugs.gnu.org; Thu, 26 Sep 2019 19:14:46 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iDcy9-00010r-AY; Fri, 27 Sep 2019 01:14:44 +0200 From: Lars Ingebrigtsen To: Mike Kupfer Subject: Re: bug#22590: 24.5; gnus/nnimap: ticked messages not getting marked as read References: <5166.1454884886@allegro.localdomain> <87wpdh5th7.fsf@gnus.org> Date: Fri, 27 Sep 2019 01:14:41 +0200 In-Reply-To: <87wpdh5th7.fsf@gnus.org> (Lars Ingebrigtsen's message of "Thu, 26 Jan 2017 23:47:32 +0100") Message-ID: <871rw2fy5a.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Lars Ingebrigtsen writes: > Mike Kupfer writes: > >> - a message is unread and flagged (ticked) on the IMAP server. Gnus >> shows it and the next message in the summary buffer as ticked. (I'm >> not sure tha [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 22590 Cc: 22590@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Lars Ingebrigtsen writes: > Mike Kupfer writes: > >> - a message is unread and flagged (ticked) on the IMAP server. Gnus >> shows it and the next message in the summary buffer as ticked. (I'm >> not sure that status of the second message is critical for reproducing >> the problem, but it seems to help.) >> - in the Gnus summary buffer, I type "d" for the first message. The >> message is marked "r" in the summary buffer, as expected. >> - I exit the summary buffer and type "s" in the Group buffer >> - I check the folder using Thunderbird; it shows the first message as no >> longer flagged, but it's still shown as unread. > > I think I understand what's going on. In Gnus, there's no such thing as > "ticked and unread": Everything that's \Flagged in the IMAP server > becomes read in Gnus. So when you remove the tick (i.e., \Flagged), > Gnus will propagate that change to the IMAP server, but since it thinks > that nothing has changed WRT readedness, it doesn't send that > information to the server... > > I'm not sure what the best way to fix that is... I now made nnimap update readedness when tickedness changes, which I think should do the trick. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 26 19:14:56 2019 Received: (at control) by debbugs.gnu.org; 26 Sep 2019 23:14:56 +0000 Received: from localhost ([127.0.0.1]:45563 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iDcyN-0003XW-JF for submit@debbugs.gnu.org; Thu, 26 Sep 2019 19:14:56 -0400 Received: from quimby.gnus.org ([80.91.231.51]:43874) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iDcyJ-0003XC-FX for control@debbugs.gnu.org; Thu, 26 Sep 2019 19:14:51 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iDcyG-00010z-NO for control@debbugs.gnu.org; Fri, 27 Sep 2019 01:14:50 +0200 Date: Fri, 27 Sep 2019 01:14:48 +0200 Message-Id: <87zhiqejkn.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #22590 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 22590 fixed close 22590 27.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 22590 fixed close 22590 27.1 quit From unknown Sun Jun 22 03:54:32 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 25 Oct 2019 11:24:11 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator