From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.bugs Subject: bug#47096: 28.0.50; gnus-search notmuch can't find files when using nnimap Date: Sat, 13 Mar 2021 15:02:10 -0800 Message-ID: <87ft0ysln1.fsf@ericabrahamsen.net> References: <87sg507il1.fsf@trigram.no> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14112"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 47096@debbugs.gnu.org To: Kevin Brubeck Unhammer Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Mar 14 00:03:15 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1lLDHv-0003aW-Lh for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 14 Mar 2021 00:03:15 +0100 Original-Received: from localhost ([::1]:37576 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lLDHu-0003cs-Az for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 13 Mar 2021 18:03:14 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53390) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lLDHj-0003ca-67 for bug-gnu-emacs@gnu.org; Sat, 13 Mar 2021 18:03:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49336) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lLDHi-0003e6-PF for bug-gnu-emacs@gnu.org; Sat, 13 Mar 2021 18:03:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lLDHi-0002bd-B7 for bug-gnu-emacs@gnu.org; Sat, 13 Mar 2021 18:03:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eric Abrahamsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 13 Mar 2021 23:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47096 X-GNU-PR-Package: emacs Original-Received: via spool by 47096-submit@debbugs.gnu.org id=B47096.16156765449966 (code B ref 47096); Sat, 13 Mar 2021 23:03:02 +0000 Original-Received: (at 47096) by debbugs.gnu.org; 13 Mar 2021 23:02:24 +0000 Original-Received: from localhost ([127.0.0.1]:60882 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lLDH6-0002af-E7 for submit@debbugs.gnu.org; Sat, 13 Mar 2021 18:02:24 -0500 Original-Received: from ericabrahamsen.net ([52.70.2.18]:55692 helo=mail.ericabrahamsen.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lLDH1-0002aN-Uu for 47096@debbugs.gnu.org; Sat, 13 Mar 2021 18:02:22 -0500 Original-Received: from localhost (c-73-254-86-141.hsd1.wa.comcast.net [73.254.86.141]) (Authenticated sender: eric@ericabrahamsen.net) by mail.ericabrahamsen.net (Postfix) with ESMTPSA id 86A22FA0FB; Sat, 13 Mar 2021 23:02:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericabrahamsen.net; s=mail; t=1615676533; bh=iSKeMvsz1VSLDuDuJ76t8v0fLp99gjb9YMZq7YlF30w=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=HIJrTli0OQZofB7wP+X8zNpZs5UYK0Op8iuRNuooQJcZxBfdPivBDfXulipGdgNpW zrKPdvCQ2VMc6HP79xsVtSBNso5dtWEgfOHNnhnC5DlfeqXpSnGk0gL+lSqM2LtFBc NXc7rvGzHEvk1ms8x67OHpItQuj3jLubzgH99+MM= In-Reply-To: <87sg507il1.fsf@trigram.no> (Kevin Brubeck Unhammer's message of "Fri, 12 Mar 2021 11:49:14 +0100") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:202318 Archived-At: Kevin Brubeck Unhammer writes: > If I have a gnus backend for a local dovecot instance like > > '(nnimap "mbsync" > (nnimap-address "localhost") > (gnus-search-engine notmuch > (config-file "/home/me/.notmuch-config") > (remove-prefix "/home/me/.Maildir/")) > (nnimap-shell-program "MAIL=maildir:$HOME/.Maildir /usr/lib/dovecot/imap") > (nnimap-stream shell)) > > then Gnus isn't able to translate the filenames returned from notmuch > (e.g. inbox/cur/1615384505.697011_1.laptop,U=5667) > into article numbers. It seems to look up using a function that assumes > you're using nnmaildir: Thanks for the report. Just to be clear, is this something that used to work before gnus-search landed, and now doesn't? My understanding is that this part of the code hasn't changed, and this wouldn't have ever worked, but I'd very much like to know if that's not true. Basically, there is an ugly bit of heuristics when looking at search results, and guessing how to handle them. As you've noticed, if the file name looks like a maildir message, the search code will assume there's an nnmaildir server involved, and try to find it. There should be a dedicated method in place to handle a single search result, which is able to take both the server and the search engine into account. I've been gnawing on what that might look like, but haven't implemented it yet. Eric