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 29513 invoked from network); 26 Jun 2021 03:21:21 -0000 Received: from mx1.math.uh.edu (129.7.128.32) by inbox.vuxu.org with ESMTPUTF8; 26 Jun 2021 03:21:21 -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 1lwysg-008dFE-4Z for ml@inbox.vuxu.org; Fri, 25 Jun 2021 22:21:18 -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 1lwysf-0058eV-KX for ml@inbox.vuxu.org; Fri, 25 Jun 2021 22:21:17 -0500 Received: from mx2.math.uh.edu ([129.7.128.33]) by lists1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1lwUpQ-004s4E-K3 for ding@lists.math.uh.edu; Thu, 24 Jun 2021 14:15:56 -0500 Received: from quimby.gnus.org ([95.216.78.240]) by mx2.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1lwUpN-005qic-1e for ding@lists.math.uh.edu; Thu, 24 Jun 2021 14:15:56 -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=Tw+TkaDTogrDBEQ9pKBOTMzw31aVBFUY5UOCuNOJHSk=; b=sC9W4/O8c03OC1Q/uLksFlhGvn Jd1LX+jx6YGgFRWB6y0/CAsz2iDIr1xj5z/DaFdxfF7N3BmlWs/VfzSBzumMkD7XCgJskND3tGKQ7 shLhgshsQ4mO2zoj2/HlQD2LDJnJ3g7q8N9+jNBmKjJfAw7xi/CaaQqGq6lr6cG/ckbA=; Received: from mail-eopbgr20120.outbound.protection.outlook.com ([40.107.2.120] helo=EUR02-VE1-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 1lwUpE-0004JB-Ht for ding@gnus.org; Thu, 24 Jun 2021 21:15:47 +0200 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=R4L9tKdLNk0gHvSkAADa8VryoFxJofCfXbvmXxeVOtfxJFnycpvistKVPTenEkmUXsCjSl6SqXNE4oZe64lF3+1txCsUaD/VLKYTCqie3sLT8hiKIUERbntI31m+c21odGhv0nBc/OmiCzZ215pLlrMvj5eSXxQt8w/WIKvAAH99fYBozuDoZVF9L/XhEfcUY98OQaQSrpNDQKn6h8HeynPIcyJb4W+9h8h1Iv3Iy34Km3+n8wMAWDjh9mqWPDBhShG92hRgRNRO6ai4YYp6uFh5FRXru6Z7rHeOgEIIPy/xjqNNLoK22KFwkijdzQQAWoMIEEgRmItHKS9MrmPPow== 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=Tw+TkaDTogrDBEQ9pKBOTMzw31aVBFUY5UOCuNOJHSk=; b=XpSzxJl4Mft/tdV5yoijPp8XruRrFOxK8M0M0Px/5akUWWKBhFEVdltvsEHn4eE50y2wLrPoXggkLiIHoQUaAebYgKoDWmXEyIt1Ga4Aln0EsUXFvFgM6wwSM37oSpKjOQ2YYOXxOZp2JkgPjIbm9DBaK1tIFOAM3xLEk6AKwy286fbeZE7VKQbJPUbSajwLyaxxFst2VYWHqN73mDZqDbMZnX9nDs2Uh2eLHOip1d9FFewIda4ydjvgOZL8+rc4Plnn8cyxG7Ty3+2we5THvtpYAMCrtxgMltkVyQy3+yRG1K/X92vOpESDfxKuxcDmHVB0DLp8zkWJqqO0cl1fOw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 192.38.124.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=Tw+TkaDTogrDBEQ9pKBOTMzw31aVBFUY5UOCuNOJHSk=; b=u/0FFa70kNsoD2eyMpXoR45H1lFxcHgKWgvTzM7Fs5pY4IMvE/g7m1oOM8EteP5SU5HU/M0PdyKDnRHBSJmsoD6FWHosdU4FZrs+oh0ZZN2K8J4vnezkcWUer34S3SGNVfOCjhaQxsFLDrULv4GDeq/1Ibj9+dFYm4YRxwa+0gA= Received: from AM5PR0101CA0035.eurprd01.prod.exchangelabs.com (2603:10a6:206:16::48) by AM4PR0401MB2339.eurprd04.prod.outlook.com (2603:10a6:200:4e::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4264.19; Thu, 24 Jun 2021 19:15:41 +0000 Received: from VE1EUR02FT049.eop-EUR02.prod.protection.outlook.com (2603:10a6:206:16:cafe::10) by AM5PR0101CA0035.outlook.office365.com (2603:10a6:206:16::48) 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 19:15:41 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 192.38.124.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.124.140 as permitted sender) receiver=protection.outlook.com; client-ip=192.38.124.140; helo=mailedg01pw.ku.dk; Received: from mailedg01pw.ku.dk (192.38.124.140) by VE1EUR02FT049.mail.protection.outlook.com (10.152.12.161) 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 19:15:40 +0000 Received: from sepo4.ku.dk (10.78.10.24) by MAILEDG01PW.unicph.domain (192.38.124.140) with Microsoft SMTP Server id 15.1.2242.10; Thu, 24 Jun 2021 21:15:40 +0200 Content-Transfer-Encoding: 7bit Received: from 10.78.10.21 ([10.78.10.21]) by sepo4.ku.dk (JAMES SMTP Server 2.3.2-1) with SMTP ID 167; Thu, 24 Jun 2021 21:15:40 +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 21:15:39 +0200 From: Thomas Alexander Gerds To: Eric Abrahamsen CC: Subject: Re: emacs 28 search not working with nnml In-Reply-To: <87v9631e6c.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Thu, 24 Jun 2021 08:21:31 -0700") References: <87bl7wzqpf.fsf@ku.dk> <87mtrgd6zw.fsf@ucl.ac.uk> <87mtrg39r8.fsf@ericabrahamsen.net> <87h7hn3jf6.fsf@ku.dk> <87v9631e6c.fsf@ericabrahamsen.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Date: Thu, 24 Jun 2021 21:15:39 +0200 Message-ID: <87fsx79iqs.fsf@ku.dk> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.78.10.8] X-ClientProxiedBy: MAILMBX11PW.unicph.domain (10.77.0.238) To MAILMBX16PW.unicph.domain (10.77.128.240) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 0f73ef36-8160-46d0-f01a-08d9374474f4 X-MS-TrafficTypeDiagnostic: AM4PR0401MB2339: 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: 1qkDMZIy5CTnKzIc+q1L5t2oPmY8ys5OAHo2tZRJHbKVGh3scCAADIjFuvtdyNrH4lr5DE1PrOanVshgPYVbupsT6mW7IE/lwnnh3Wv2LKYz/gBpgkRfBFJgyHjUP61fmJzQweRxFbt0To5/U/mE2143w4X/mZYBo52MlLVJpP2Rk8vp40aiIKUv+m7kvhI7KnBlLsYIAv2XfYZwQJR2OU+8ZMUSY6zgqS7Zx0KCAtEsnlz2BLhJaHY/HLB3joSi2FQyENqI0kE/3vDPaAh+5apgr0k79PvDv8Fg0yfcDVyULkQp0pqq32Cakq1Iwr/6w8L/JFa3f/D5iqgB1XSuOU5S538+Z20CfyARTulzrj1UF7FdjpaXl/C7AmpHqc+we/1Jm3rhrfb4ZSLHbA2TA3c6mLapvFrtf7/YrU3qbHwk2790ihmziwSA66gG+A0ZMNpXEi2LizhfbHUVoWvp3ggoOvFdJcOqovsjFjekXBbzLNzY4CunJbctrLUt1nyFCSTGXJ6+Pwrzds9Uvv5TLd55zTmDUY8SEVSZW/T6rjtTKPBj1PY2Y5EVSscETPq6BHezwqatSWilq9S1YSjK9nkLb8r7q22XMR4FOpgmFRSU4O6HXGRJf5Qiv4EJ/yILMnKnissm5PS/xYiC7ZmwOsRzGj7RuiRfx+/h/kt+5Po= X-Forefront-Antispam-Report: CIP:192.38.124.140;CTRY:DK;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mailedg01pw.ku.dk;PTR:mailedg01pw.ku.dk;CAT:NONE;SFS:(4636009)(136003)(346002)(39850400004)(376002)(396003)(36840700001)(46966006)(7636003)(7596003)(83380400001)(83170400001)(356005)(47076005)(478600001)(26005)(786003)(4326008)(316002)(16526019)(2906002)(186003)(36860700001)(336012)(82740400003)(2616005)(82310400003)(8676002)(70206006)(70586007)(8976002)(6916009)(36756003)(5660300002)(8936002);DIR:OUT;SFP:1102; X-OriginatorOrg: ku.dk X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jun 2021 19:15:40.7899 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0f73ef36-8160-46d0-f01a-08d9374474f4 X-MS-Exchange-CrossTenant-Id: a3927f91-cda1-4696-af89-8c9f1ceffa91 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=a3927f91-cda1-4696-af89-8c9f1ceffa91;Ip=[192.38.124.140];Helo=[mailedg01pw.ku.dk] X-MS-Exchange-CrossTenant-AuthSource: VE1EUR02FT049.eop-EUR02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR0401MB2339 List-ID: Precedence: bulk Eric Abrahamsen writes: > Thomas Alexander Gerds writes: > >> 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, > > The remaining bug is subtler: if you search a group whose name is a > substring of a different group, the code will also attempt to return > results from that other group, which will fail. aah. haha, and I thought it was a neat feature that in addition to nnml:research the search was also applied to nnml:research.old > >> but you may want to consider to change the default value here for >> people like me who use "mail" instead of "Mail": > > Wait, which default value are you referring to here? `gnus-directory'? no the default value of gnus-search-notmuch-remove-prefix. I have forgotten if there also is a variable that has a default value equal to "~/Mail". it seems that gnus-directory defaults to "~/News". >> (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