From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Kevin Brubeck Unhammer Newsgroups: gmane.emacs.bugs Subject: bug#47096: 28.0.50; gnus-search notmuch can't find files when using nnimap Date: Fri, 12 Mar 2021 11:49:14 +0100 Message-ID: <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="39698"; mail-complaints-to="usenet@ciao.gmane.io" To: 47096@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Mar 12 11:50:18 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 1lKfN4-000AEi-F8 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 12 Mar 2021 11:50:18 +0100 Original-Received: from localhost ([::1]:36378 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lKfN3-0002Au-FL for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 12 Mar 2021 05:50:17 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48358) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lKfMo-00027x-GL for bug-gnu-emacs@gnu.org; Fri, 12 Mar 2021 05:50:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44582) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lKfMo-0007P0-81 for bug-gnu-emacs@gnu.org; Fri, 12 Mar 2021 05:50:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lKfMo-0001NM-5G for bug-gnu-emacs@gnu.org; Fri, 12 Mar 2021 05:50:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Kevin Brubeck Unhammer Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 12 Mar 2021 10:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 47096 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16155461685235 (code B ref -1); Fri, 12 Mar 2021 10:50:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 12 Mar 2021 10:49:28 +0000 Original-Received: from localhost ([127.0.0.1]:56128 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lKfMG-0001ML-94 for submit@debbugs.gnu.org; Fri, 12 Mar 2021 05:49:28 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:35696) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lKfME-0001MD-Gh for submit@debbugs.gnu.org; Fri, 12 Mar 2021 05:49:27 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48122) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lKfME-0001Bw-6C for bug-gnu-emacs@gnu.org; Fri, 12 Mar 2021 05:49:26 -0500 Original-Received: from wforward2-smtp.messagingengine.com ([64.147.123.31]:54633) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lKfMB-0006oz-Bl for bug-gnu-emacs@gnu.org; Fri, 12 Mar 2021 05:49:25 -0500 Original-Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailforward.west.internal (Postfix) with ESMTP id 3D4CB1AFC; Fri, 12 Mar 2021 05:49:20 -0500 (EST) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Fri, 12 Mar 2021 05:49:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=pzt0/rPOpQDSL2d6v6w/PQw4AmvDI 0aDAvIRgs3R6Qg=; b=qjgDgZx3OuuHfrSbLoJCXFw2P+RDc7B/rsuiXvnPBL4Wx fVvTtx3sMFs/wJMVO/X8DIlbTNwAfFw2kmellUgjP3wAWat8DgR+EAPYOKYSBAfH 4JwcCUpU0ty4V629e0K5GW+Hkx29W/9duDfLbGW6RrJY4mCxuBToyyx/9MCHrClL moIZhAsozXThzKaIarV6YeWfy3BBhPfNZOGjUGYgDeJrHpqXQggwXErSoKXdHRA+ jzsFjRlviJmwZY1YPG7aGoxNo1oKx8K/myOJqFf+opgcwYVTcc/cfbz38wDRSpWI nEFTnWDnWYKoFUDxgL931V+++Q3azHgck1ojpJFhw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledruddvvddgvdduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkgggtsehttdertddttd dtnecuhfhrohhmpefmvghvihhnuceurhhusggvtghkucgfnhhhrghmmhgvrhcuoehunhhh rghmmhgvrhesfhhsfhgvrdhorhhgqeenucggtffrrghtthgvrhhnpeeutdefueejtdehke eluedvhfdvtdelueevjeegieekledugeeggeevhfdtteevveenucffohhmrghinhepvghm rggtshifihhkihdrohhrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmh grihhlfhhrohhmpehunhhhrghmmhgvrhesfhhsfhgvrdhorhhg X-ME-Proxy: Received-SPF: softfail client-ip=64.147.123.31; envelope-from=unhammer@fsfe.org; helo=wforward2-smtp.messagingengine.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_SOFTFAIL=0.665 autolearn=no autolearn_force=no X-Spam_action: no action 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:202153 Archived-At: 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: (if (string-match-p "\\`[[:digit:]]+\\'" article) (string-to-number article) (nnmaildir-base-name-to-article-number (substring article 0 (string-match ":" article)) group nil)) Here the string-match fails because the filename includes hostname and U= parts, so we get sent to nnmaildir-base-name-to-article-number which tries to look up current nnmaildir server which is nil and the end result is that the computed article number is nil and we get no search results. I don't know what the correct way to do this is; there's https://www.emacswiki.org/emacs/NotMuch#h5o-1 which goes via message-id's, but maybe there's some better way. In GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo version 1.16.0, Xaw3d scroll bars) of 2020-12-03 built on laptop Repository revision: cf448f6bcc7ab3f8ea03bcb8868a67cf0b39d412 Repository branch: feature/native-comp-erc-network-symbol-harfbug2 Windowing system distributor 'The X.Org Foundation', version 11.0.12009000 System Description: Ubuntu 20.04.2 LTS Configured using: 'configure --prefix=/home/me/PREFIX/emacs --with-libsystemd --with-pop=yes --with-sound=alsa --without-gconf --with-mailutils --with-json --with-cairo --with-nativecomp --with-x=yes --with-x-toolkit=lucid' Configured features: XAW3D XPM JPEG TIFF GIF PNG RSVG CAIRO SOUND GPM DBUS GSETTINGS GLIB NOTIFY INOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF ZLIB TOOLKIT_SCROLL_BARS LUCID X11 XDBE XIM MODULES NATIVE_COMP THREADS LIBSYSTEMD JSON PDUMPER LCMS2 Important settings: value of $LANG: nn_NO.UTF-8 locale-coding-system: utf-8