From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Ulrich Mueller Newsgroups: gmane.emacs.bugs Subject: bug#35443: 27.0.50; Gnus (nnimap) shows "ghost" messages in summary buffer Date: Thu, 09 May 2019 21:03:38 +0200 Message-ID: References: <87wojfjxry.fsf@ericabrahamsen.net> <87h8ajjhux.fsf@ericabrahamsen.net> <87lfztiqu3.fsf@ericabrahamsen.net> <871s1735ec.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="268432"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 35443@debbugs.gnu.org To: Eric Abrahamsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu May 09 21:04:11 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hOoKw-0017Za-S5 for geb-bug-gnu-emacs@m.gmane.org; Thu, 09 May 2019 21:04:10 +0200 Original-Received: from localhost ([127.0.0.1]:59598 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hOoKv-0006uU-T6 for geb-bug-gnu-emacs@m.gmane.org; Thu, 09 May 2019 15:04:09 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:49575) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hOoKp-0006u6-FI for bug-gnu-emacs@gnu.org; Thu, 09 May 2019 15:04:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hOoKo-0008Ib-Ep for bug-gnu-emacs@gnu.org; Thu, 09 May 2019 15:04:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51132) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hOoKo-0008IP-BU for bug-gnu-emacs@gnu.org; Thu, 09 May 2019 15:04:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hOoKn-0004kU-VP for bug-gnu-emacs@gnu.org; Thu, 09 May 2019 15:04:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ulrich Mueller Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 09 May 2019 19:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35443 X-GNU-PR-Package: emacs Original-Received: via spool by 35443-submit@debbugs.gnu.org id=B35443.155742863118235 (code B ref 35443); Thu, 09 May 2019 19:04:01 +0000 Original-Received: (at 35443) by debbugs.gnu.org; 9 May 2019 19:03:51 +0000 Original-Received: from localhost ([127.0.0.1]:36443 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hOoKc-0004k3-Q8 for submit@debbugs.gnu.org; Thu, 09 May 2019 15:03:51 -0400 Original-Received: from smtp.gentoo.org ([140.211.166.183]:43310) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hOoKa-0004jn-MB for 35443@debbugs.gnu.org; Thu, 09 May 2019 15:03:49 -0400 Original-Received: from a1i15 (host2092.kph.uni-mainz.de [134.93.134.92]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: ulm) by smtp.gentoo.org (Postfix) with ESMTPSA id 8ACCB343E7C; Thu, 9 May 2019 19:03:41 +0000 (UTC) In-Reply-To: <871s1735ec.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Thu, 09 May 2019 10:27:07 -0700") 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: 209.51.188.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:158998 Archived-At: >>>>> On Thu, 09 May 2019, Eric Abrahamsen wrote: > Okay, here's what I was told on irc: > looks like it's the new feature that adds $HasAttachment or > $HasNoAttachment flags to mails. they're actually supposed to be added > only during mail delivery, and there's a setting needed to enable them: > mail_attachment_detection_options = add-flags-on-save > but .. there's an "unintentional feature" :) that they also get added > during some FETCH commands if they're not already there > but even without this, imap protocol allows sending FETCH FLAGS updates > (or any updates really) as a response to any command. and with > concurrent imap access dovecot does this. > for example if another client adds a \Seen flag, that same thing could > happen > either way, a client should really be able to process these > "unexpeceted" FETCH updates, that's what the standard is about > --8<---------------cut here---------------end--------------->8--- > Ultimately, the "real" fix would be to teach Gnus to handle all possible > responses from IMAP servers, probably using a proper parser. > But if you have access to the dovecot config in your case, you might try > removing the mail_attachment_detection_options setting above, if it's > set. If it's not set, then you might be getting the "unintentional > feature". Thank you very much for your help. Indeed the add-flags-on-save option was enabled in the config file. Gentoo's infrastructure team has agreed to disable it for now, which made the problem go away. > I suppose in the interim I could mess with `nnimap-transform-headers' > and try to add some bookkeeping so that multiple FETCH responses for > the same article UID get merged together. On the other hand, this > feature only seems to relate to has/hasnoattachment flags, which Gnus > doesn't handle anyway -- we could safely drop those lines altogether. > (Though it sure would be nice to handle hasattachment flags, that's > something that users have requested in the past...) Maybe drop the extra FETCH responses for now, and add proper bookkeeping later when implementing the requested feature?