From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/86674 Path: news.gmane.org!not-for-mail From: Mike Kupfer Newsgroups: gmane.emacs.gnus.general Subject: messages not being marked as read on IMAP server Date: Mon, 25 Jan 2016 13:18:59 -0800 Message-ID: <28176.1453756739@allegro.localdomain> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1453762133 11673 80.91.229.3 (25 Jan 2016 22:48:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 25 Jan 2016 22:48:53 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M34900@lists.math.uh.edu Mon Jan 25 23:48:37 2016 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from lists1.math.uh.edu ([129.7.128.208]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aNpw4-0000de-VX for ding-account@gmane.org; Mon, 25 Jan 2016 23:48:37 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.85) (envelope-from ) id 1aNpvB-0007kf-OM; Mon, 25 Jan 2016 16:47:41 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by lists1.math.uh.edu with esmtps (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.85) (envelope-from ) id 1aNoXU-00079g-IH for ding@lists.math.uh.edu; Mon, 25 Jan 2016 15:19:08 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.85) (envelope-from ) id 1aNoXS-0008Ur-9R for ding@lists.math.uh.edu; Mon, 25 Jan 2016 15:19:08 -0600 Original-Received: from shell1.rawbw.com ([198.144.192.42] ident=root) by quimby.gnus.org with esmtp (Exim 4.80) (envelope-from ) id 1aNoXQ-00082Z-I7 for ding@gnus.org; Mon, 25 Jan 2016 22:19:04 +0100 Original-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 u0PLIx6Q014137 for ; Mon, 25 Jan 2016 13:19:00 -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 X-Mailer: MH-E 8.6+mdk02; nmh 1.6; GNU Emacs 24.5.2 Content-ID: <28175.1453756739.1@allegro.localdomain> X-Spam-Score: 0.8 (/) X-Spam-Report: SpamAssassin (3.4.1 2015-04-28) analysis follows Bayesian score: 0.4684 Ham tokens: 0.000-43--2255h-0s--0d--H*UA:Emacs, 0.000-3--115h-0s--0d--imap, 0.000-2--101h-0s--0d--emacs, 0.000-2--88h-0s--0d--gnus, 0.000-2--56h-0s--0d--Emacs Spam tokens: 0.996-16341--337h-9458s--0d--H*r:quimby.gnus.org, 0.995-14959--450h-8738s--0d--H*Ad:D*gnus.org, 0.994-17689--612h-10378s--0d--H*RU:quimby.gnus.org, 0.994-17689--612h-10378s--0d--Hx-spam-relays-external:quimby.gnus.org, 0.994-16723--581h-9813s--0d--HTo:D*gnus.org Autolearn status: ham autolearn_force=no 0.0 T_SPF_PERMERROR SPF: test of record failed (permerror) 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% [score: 0.4684] List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:86674 Archived-At: 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? mike