From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 16649 invoked from network); 24 Jun 2021 15:14:29 -0000 Received: from mx1.math.uh.edu (129.7.128.32) by inbox.vuxu.org with ESMTPUTF8; 24 Jun 2021 15:14:29 -0000 Received: from lists1.math.uh.edu ([129.7.128.208]) by mx1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1lwR3i-007ZeT-OU for ml@inbox.vuxu.org; Thu, 24 Jun 2021 10:14:26 -0500 Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.94) (envelope-from ) id 1lwR3i-004pv6-9o for ml@inbox.vuxu.org; Thu, 24 Jun 2021 10:14:26 -0500 Received: from mx1.math.uh.edu ([129.7.128.32]) by lists1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1lwIBE-004kzF-Cx for ding@lists.math.uh.edu; Thu, 24 Jun 2021 00:45:36 -0500 Received: from quimby.gnus.org ([95.216.78.240]) by mx1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1lwIBB-007FBh-Dq for ding@lists.math.uh.edu; Thu, 24 Jun 2021 00:45:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:CC:To:From:Content-Transfer-Encoding:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=ITFYiOjvmLn6k06zk0gCABpENSvOb3SOt8qss6lunnE=; b=ToxYhgOwksY63VGLHcfepHNsQI VnROMFU7y346iul2NeuUqW613vVQH0S9/urz/5iaSjuGvhEZzZzhtT52XYtVSL5JzDj9LC4hNqh5k /UxjUXcueibGv7FvkPteK5m5YcFF46jDwTKVNwLkszW5mnyJB0BnlyuFjurhJtvCoPWY=; Received: from mail-eopbgr10103.outbound.protection.outlook.com ([40.107.1.103] helo=EUR02-HE1-obe.outbound.protection.outlook.com) by quimby.gnus.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lwIB3-0002pH-Bj for ding@gnus.org; Thu, 24 Jun 2021 07:45:28 +0200 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MMIZMZcN5yt2psfthyc0a55GKSMe3uUrziITyWmbaCy5jZN7s7USZVuWWXjtDEf/vjmKZ3cjwZBXV1kK6YGsqEdmXhNfXNVrEj5do6klRvjhvQFlyDiMw6MzDk8OOEaOZTWAfr5UaLsmeBPonOUPWHdud232nYMrmzKCdZgnjYnnDWQOQiUF8bp70ZD/k6keeyZvB5mArJJImPU7G0lJWMGmNVi6aK9bT4Y9C21N5g3Ly8onCaXINqoiuuYzLSNMSPBckFzkVZAIQUUVbI0MO5IZgF1PIzg0DCF+gp9XharFC2NsKjx3hI+YRNVxmda0DNEOK/Bl2RMCdUDMSiTn5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ITFYiOjvmLn6k06zk0gCABpENSvOb3SOt8qss6lunnE=; b=LRONGCD0qHBnDCoSIbHAQmGKUZPXkiO/zMEB/2Cd6pJWoeYiI8KAv9hcD5nLEOnJRqlhgyOrQkSN3kjkjP5Q/bIjxOg+mvlGJGMlV/Mp1YhjrggjgMMDXYgWJ4bGFo0QO1qpPwOBdeJgS/a2VVOM3V3yxSnSqEcovgbL8XJxP/ZeBm9O6cIj70FLfoiIzDbzxpBRgYOlF3ZrV16JIM25goKy9ek+QVmp8QNGzrkI5jNEoAk+8+JubXwrUpoGqn6W9JxO1rd0rdXCVEb55AxtyRcyxPJTKQvPokcd5ldjCIa/3alTnk4sPyEIlPQ6DmcpZf+/QSmZQm1sC9Xibb/oeQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 192.38.125.140) smtp.rcpttodomain=gnus.org smtp.mailfrom=biostat.ku.dk; dmarc=pass (p=none sp=none pct=100) action=none header.from=ku.dk; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ku.dk; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ITFYiOjvmLn6k06zk0gCABpENSvOb3SOt8qss6lunnE=; b=pcGDmGW8KhxYaWg4mSGR1tI+klbnRK9ZNswDaIw9cnq6y6mR3TXcA+tHMLuN62DcwsRqBeRs4l3lF5q9t9KUbKDwQvoEtjPdW6Bl+aZBKL5isIZgtgnlagNEL4b11YIyGczgXOjQO2xVpyckn+1noELjXY0lafy61bsxvm2Tp9M= Received: from FR3P281CA0008.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:1d::14) by AM6PR04MB6103.eurprd04.prod.outlook.com (2603:10a6:20b:72::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4242.21; Thu, 24 Jun 2021 05:45:21 +0000 Received: from HE1EUR02FT060.eop-EUR02.prod.protection.outlook.com (2603:10a6:d10:1d:cafe::75) by FR3P281CA0008.outlook.office365.com (2603:10a6:d10:1d::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4264.19 via Frontend Transport; Thu, 24 Jun 2021 05:45:21 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 192.38.125.140) smtp.mailfrom=biostat.ku.dk; gnus.org; dkim=none (message not signed) header.d=none;gnus.org; dmarc=pass action=none header.from=ku.dk; Received-SPF: Pass (protection.outlook.com: domain of biostat.ku.dk designates 192.38.125.140 as permitted sender) receiver=protection.outlook.com; client-ip=192.38.125.140; helo=mailedg02pw.ku.dk; Received: from mailedg02pw.ku.dk (192.38.125.140) by HE1EUR02FT060.mail.protection.outlook.com (10.152.11.208) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4264.18 via Frontend Transport; Thu, 24 Jun 2021 05:45:20 +0000 Received: from sepo3.ku.dk (10.78.10.8) by MAILEDG02PW.unicph.domain (192.38.125.140) with Microsoft SMTP Server id 15.1.2242.10; Thu, 24 Jun 2021 07:45:18 +0200 Content-Transfer-Encoding: 7bit Received: from 10.78.10.21 ([10.78.10.21]) by sepo3.ku.dk (JAMES SMTP Server 2.3.2-1) with SMTP ID 518; Thu, 24 Jun 2021 07:45:18 +0200 (CEST) Received: from sund3583 (10.78.10.8) by MAILMBX16PW.unicph.domain (10.77.128.240) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.10; Thu, 24 Jun 2021 07:45:18 +0200 From: Thomas Alexander Gerds To: Eric Abrahamsen CC: Subject: Re: emacs 28 search not working with nnml In-Reply-To: <87mtrg39r8.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Wed, 23 Jun 2021 08:01:47 -0700") References: <87bl7wzqpf.fsf@ku.dk> <87mtrgd6zw.fsf@ucl.ac.uk> <87mtrg39r8.fsf@ericabrahamsen.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Date: Thu, 24 Jun 2021 07:45:17 +0200 Message-ID: <87h7hn3jf6.fsf@ku.dk> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.78.10.8] X-ClientProxiedBy: MAILMBX15PW.unicph.domain (10.77.0.240) To MAILMBX16PW.unicph.domain (10.77.128.240) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 7d808dc2-d025-43e4-dc8f-08d936d34116 X-MS-TrafficTypeDiagnostic: AM6PR04MB6103: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:4502; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 3Acb2noBSla934H93lVu3hUKVxJ1Ce4/3YxG0qQNcqEhMVBoDvvMZpOceoixQoposuV59ziIwaImo7dAYUXeBTrpGPE1Rzv2gGQf5lfsL4s/Q3GZwD5M/Qq2SJyPJHjM1XS+L2vo1bl5ed47bh2JL+Gc1M5e088MuFMcVpHvAT4tUSWDUUoRXtAW9R+/dpKlB0OPt8bHzprsXlZuk88StBWMPXclxCQ10JGXiceeViMm6yLacNPpMJy/KwbreV3qgDd/oeYsCCsqQcZseQ9jbe3FaH4vpY4wKUoukQs1GN7u7GtZg9lVguh6vyNtgkjoIZ8jKBYCuo4S1OM/BMq2vAZLjEEfyYztYCxCRJMlpbmxRwdKAonZa/ilMaxPlIyfswiWxytQgZFoOdnfUy8jT0koWCNGYb0IxB8UX8IobzST4qFRvRlmqweJDc+ZTEXWdctwbjjKOCPc902ebnpmH9rLS08tNuGJ+jyhBOlzlahmQ1eArnYaByBQz88BxBZvCV3ybbVvsBYEprPMRuHXMy2hRoPkpVWO82Jce5JdY/zptxVdxwjjA83zJo1K4CTpcuCJoWjw3MMVpOwUWFj5Z7tDnyeU+X0E7eMQJXaxLr011HNAtybtcNFOSfsdv2l6tyDo/JPK33baq28TxUo1SqyU768el5FCb4z7Pzq+9r0= X-Forefront-Antispam-Report: CIP:192.38.125.140;CTRY:DK;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mailedg02pw.ku.dk;PTR:mailedg02pw.ku.dk;CAT:NONE;SFS:(4636009)(376002)(396003)(39850400004)(136003)(346002)(36840700001)(46966006)(5660300002)(316002)(26005)(356005)(786003)(16526019)(6916009)(478600001)(186003)(2616005)(70586007)(82310400003)(336012)(2906002)(83170400001)(36756003)(4326008)(8936002)(82740400003)(8976002)(7596003)(47076005)(36860700001)(8676002)(7636003)(83380400001)(70206006);DIR:OUT;SFP:1102; X-OriginatorOrg: ku.dk X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jun 2021 05:45:20.6872 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7d808dc2-d025-43e4-dc8f-08d936d34116 X-MS-Exchange-CrossTenant-Id: a3927f91-cda1-4696-af89-8c9f1ceffa91 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=a3927f91-cda1-4696-af89-8c9f1ceffa91;Ip=[192.38.125.140];Helo=[mailedg02pw.ku.dk] X-MS-Exchange-CrossTenant-AuthSource: HE1EUR02FT060.eop-EUR02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR04MB6103 List-ID: Precedence: bulk Eric(1): thank you so much, this helped and solved my problem! Eric(2): you are right: the hack is not needed and my search functions work smoothly without it. not sure what remaining bug there might be, but you may want to consider to change the default value here for people like me who use "mail" instead of "Mail": (defcustom gnus-search-notmuch-remove-prefix gnus-directory "The prefix to remove from each file name returned by notmuch in order to get a group name (albeit with / instead of .). This is a regular expression. This variable can also be set per-server." :type 'regexp :version "28.1") cheers Thomas Eric Abrahamsen writes: > Eric S Fraga writes: > >> On Wednesday, 23 Jun 2021 at 14:54, Thomas Alexander Gerds wrote: >>> I am using nnml and have all my email downloaded to my laptop using >> >> I have a similar configuration. My settings look like this: >> >> #+begin_src emacs-lisp >> (setq gnus-secondary-select-methods >> '((nnml "work" >> (gnus-search-engine gnus-search-notmuch >> (remove-prefix "/HOME/Mail") >> (config-file "/HOME/.notmuch-config") >> ) >> (get-new-mail t)))) >> >> (add-to-list 'gnus-search-default-engines '(nnml . notmuch)) >> (setq gnus-search-notmuch-remove-prefix "/HOME/Mail") >> (with-eval-after-load "gnus-search" >> (cl-defmethod gnus-search-indexed-parse-output :around >> ((e gnus-search-notmuch) s q groups) >> (let ((gs (mapcar (lambda (g) (replace-regexp-in-string "\\." "/" g)) >> groups))) >> (cl-call-next-method e s q gs)))) >> #+end_src >> >> where HOME in various places above should be replaced by your home >> directory. I have gnus splitting email into various sub-directories of >> Mail/. >> >> The last bit was suggested by Jose A. Ortega Ruiz on the gnus newsgroup >> [1] sometime in late 2020 and proved to be necessary (at that time) to >> get the new search engine to work with nnml. It basically changes the >> file paths from . to / separators. > > FWIW, this hack isn't necessary any more, if you're running a recent > Emacs from master (looks like since early February of this year). > > Thomas, the bug you're seeing is something I'm aware of, I just haven't > come up with a great solution for it yet (actually I'd forgotten about > it). I'll get that fixed soon, and report back here. > > Eric > > > > -- Thomas A. Gerds -- Department of Biostatistics Copenhagen University of Copenhagen, Oester Farimagsgade 5, 1014 Copenhagen, Denmark