From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.bugs Subject: bug#35443: 27.0.50; Gnus (nnimap) shows "ghost" messages in summary buffer Date: Tue, 07 May 2019 13:34:24 -0700 Message-ID: <87d0kugg1b.fsf@ericabrahamsen.net> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="155381"; 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: Ulrich Mueller Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue May 07 22:35:16 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 1hO6ny-000eJM-SB for geb-bug-gnu-emacs@m.gmane.org; Tue, 07 May 2019 22:35:14 +0200 Original-Received: from localhost ([127.0.0.1]:54355 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hO6nx-0004nu-SP for geb-bug-gnu-emacs@m.gmane.org; Tue, 07 May 2019 16:35:13 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:34293) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hO6nn-0004mz-PM for bug-gnu-emacs@gnu.org; Tue, 07 May 2019 16:35:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hO6nm-0003RZ-Fk for bug-gnu-emacs@gnu.org; Tue, 07 May 2019 16:35:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46206) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hO6nm-0003Qp-Bs for bug-gnu-emacs@gnu.org; Tue, 07 May 2019 16:35:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hO6nm-0003nj-6b for bug-gnu-emacs@gnu.org; Tue, 07 May 2019 16:35:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eric Abrahamsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 07 May 2019 20:35:02 +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.155726127714574 (code B ref 35443); Tue, 07 May 2019 20:35:02 +0000 Original-Received: (at 35443) by debbugs.gnu.org; 7 May 2019 20:34:37 +0000 Original-Received: from localhost ([127.0.0.1]:59750 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hO6nM-0003n0-V7 for submit@debbugs.gnu.org; Tue, 07 May 2019 16:34:37 -0400 Original-Received: from ericabrahamsen.net ([52.70.2.18]:39818 helo=mail.ericabrahamsen.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hO6nK-0003mh-Ax for 35443@debbugs.gnu.org; Tue, 07 May 2019 16:34:35 -0400 Original-Received: from localhost (50-251-205-17-static.hfc.comcastbusiness.net [50.251.205.17]) (Authenticated sender: eric@ericabrahamsen.net) by mail.ericabrahamsen.net (Postfix) with ESMTPSA id 5B11EFA026; Tue, 7 May 2019 20:34:27 +0000 (UTC) In-Reply-To: (Ulrich Mueller's message of "Sat, 27 Apr 2019 08:23:03 +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: 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:158893 Archived-At: Ulrich Mueller writes: > In GNU Emacs 27.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit) > of 2019-04-21 built on a1i15 > Windowing system distributor 'The X.Org Foundation', version 11.0.11905000 > System Description: Gentoo/Linux > > When fetching e-mail from a dovecot-2.3.5.1 IMAP server, Gnus/nnimap > gets confused and displays ghost messages with address "nobody" and > subject "(none)" in the summary buffer, like in this example: > > *Summary nnimap+dev.gentoo.org:INBOX* > ---------------------------------------------------------------------- > R. [ 1: Ulrich Mueller ] test 1 > . [ ?: nobody ] (none) > . [ 1: Ulrich Mueller ] test 2 > ---------------------------------------------------------------------- [...] > Buffer " *nnimap dev.gentoo.org nil *nntpd**" looks like this, upon > entering nnimap-transform-headers: >---------------------------------------------------------------------- > * 583 FETCH (UID 32409 RFC822.SIZE 698 BODYSTRUCTURE ("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 8 1 NIL NIL NIL NIL) BODY[HEADER.FIELDS (SUBJECT FROM DATE MESSAGE-ID REFERENCES IN-REPLY-TO XREF X-DIARY-TIME-ZONE X-DIARY-DOW X-DIARY-YEAR X-DIARY-MONTH X-DIARY-DOM X-DIARY-HOUR X-DIARY-MINUTE TO NEWSGROUPS CC)] {165} > From: Ulrich Mueller > To: ulm@gentoo.org > Subject: test 1 > Date: Sat, 27 Apr 2019 07:39:56 +0200 > Message-ID: > > ) > * 584 FETCH (UID 32410 RFC822.SIZE 698 BODYSTRUCTURE ("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 8 1 NIL NIL NIL NIL) BODY[HEADER.FIELDS (SUBJECT FROM DATE MESSAGE-ID REFERENCES IN-REPLY-TO XREF X-DIARY-TIME-ZONE X-DIARY-DOW X-DIARY-YEAR X-DIARY-MONTH X-DIARY-DOM X-DIARY-HOUR X-DIARY-MINUTE TO NEWSGROUPS CC)] {165} > From: Ulrich Mueller > To: ulm@gentoo.org > Subject: test 2 > Date: Sat, 27 Apr 2019 07:40:15 +0200 > Message-ID: > > ) > * 583 FETCH (UID 32409 MODSEQ (63364) FLAGS ($HasNoAttachment)) > * 584 FETCH (UID 32410 MODSEQ (63364) FLAGS ($HasNoAttachment)) > 10194 OK Fetch completed (0.003 + 0.000 + 0.002 secs). > ---------------------------------------------------------------------- Okay, I've made a bit of progress on this. Locally I'm using Dovecot 2.3.6, and it does not output those last two lines before the OK. `nnimap-transform-headers' is not expecting those two lines -- it deletes all but the last, leaving a buffer that looks like: 211 32409 Article retrieved. Chars: 698 Lines: 1 From: Ulrich Mueller To: ulm@gentoo.org Subject: test 1 Date: Sat, 27 Apr 2019 07:39:56 +0200 Message-ID: . 211 32410 Article retrieved. Chars: 698 Lines: 1 From: Ulrich Mueller To: ulm@gentoo.org Subject: test 2 Date: Sat, 27 Apr 2019 07:40:15 +0200 Message-ID: . 211 32409 Article retrieved. * 584 FETCH (UID 32410 MODSEQ (63364) FLAGS ($HasNoAttachment)) 10194 OK Fetch completed (0.003 + 0.000 + 0.002 secs). . Which Gnus then parses as an _extra_ article 32409, but then there's no header data for it, which is why you get all the "nobody" "none" nonsense. Essentially, we're not set up to parse this particular return value. I guess what I'll do is ask on the dovecot mailing list under what circumstances/versions we'd get a string like that, and try to help Gnus parse it correctly. Thanks for your patience, Eric