From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Visuwesh Newsgroups: gmane.emacs.bugs Subject: bug#73581: 29.4; Gnus: Error doing a search on nnmaildir with gnus-search-find-grep Date: Wed, 02 Oct 2024 10:53:35 +0530 Message-ID: <87bk03dqnc.fsf@gmail.com> References: <874j5x9med.fsf@lispclub.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23753"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 73581@debbugs.gnu.org To: Daniel Cerqueira Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 02 07:58:51 2024 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 1svsNu-00062A-Md for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 02 Oct 2024 07:58:50 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1svsHY-0006oU-H9; Wed, 02 Oct 2024 01:52:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1svsHL-0006Sk-Ee for bug-gnu-emacs@gnu.org; Wed, 02 Oct 2024 01:52:03 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1svsHL-0004ud-62 for bug-gnu-emacs@gnu.org; Wed, 02 Oct 2024 01:52:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=tsfc4bsx4uhb8k9mEEiwOkg9AkzyroMAF5COdtpb8rY=; b=gqhADq0CgxqHCr6VeXMaiiWJKa0yrZH45JMdS9uci5K7civrVFs2RUJmvnVJp09aIZiAATIQlCJdsTITSVFqRgDEwZ6Lg/zrQBZw48q6Sq+TPYMjhgevss97sTHKlcCr7D8Q6DGkeei/lmO5Zo/NIn2Fv0tmHqXGiVTCj9yfaEcDsJLj5r4MsPGjoVZztAhDpKBW8q/1TTK3QF8sGxbZStijn40E84sg6GXDzhFHfBuw+lZl77nCDme/2S7J+t1UIrmsBqN/z6s8HLKYC/MaifuZ6umZVbTKFJHwvOkgefvMCTofm2GXdPuadTybkI/6dKC7NTnvSnOFzH+nTTnbBQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1svsHJ-0000vM-Sy; Wed, 02 Oct 2024 01:52:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Visuwesh Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Wed, 02 Oct 2024 05:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73581 X-GNU-PR-Package: emacs,gnus Original-Received: via spool by 73581-submit@debbugs.gnu.org id=B73581.17278482683480 (code B ref 73581); Wed, 02 Oct 2024 05:52:01 +0000 Original-Received: (at 73581) by debbugs.gnu.org; 2 Oct 2024 05:51:08 +0000 Original-Received: from localhost ([127.0.0.1]:56303 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1svsGR-0000u2-Kz for submit@debbugs.gnu.org; Wed, 02 Oct 2024 01:51:08 -0400 Original-Received: from mail-io1-f65.google.com ([209.85.166.65]:52542) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1svsGP-0000ts-TZ for 73581@debbugs.gnu.org; Wed, 02 Oct 2024 01:51:06 -0400 Original-Received: by mail-io1-f65.google.com with SMTP id ca18e2360f4ac-82ceab75c27so385790339f.1 for <73581@debbugs.gnu.org>; Tue, 01 Oct 2024 22:51:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727848205; x=1728453005; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=tsfc4bsx4uhb8k9mEEiwOkg9AkzyroMAF5COdtpb8rY=; b=BzmE8D82jKzjeJ/0jCaFWsV5JCc7dnnUTtldg3aJXIkWdrynZAxZz1BdsqQJCvQ/aZ P4mxd+qd35uE+zBZ9MtFSTJa0xOjjwwir7vJ2de9bTG0peplUsdD/7RC/JUQ+SBCVQJZ QP+fxZWNr+gSYXGmaBx7QDYlrU+f01rWaAIrahFzQJXF9zkZ4/77yi4FWi65B+7ymySN xHugvtXUXP4xwASYMvAgt9iycm9Ta4PhSXGiK1+KNdrNlapcaRkQdXmazwSd7xboh4JG QunZphpfI68adFHC1H8VY+dZ1n2YLviVynibR0cWqzK+zaSGAJOEzgc4UrP+SWgLjdZW 3pSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727848205; x=1728453005; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=tsfc4bsx4uhb8k9mEEiwOkg9AkzyroMAF5COdtpb8rY=; b=rlVm5NyXKG8OJIND6VRDo4h4rhfdCpyIo3IhakEr//yBlFtRrLrlNV20c/M98YHKIW B++WibgiraEa5ceNCZp8xmLO+inzH4UUokTHYyWIcKQKpZ53XcDfyKyn4FW2CjLggoPF QpDfsb4NRuo2aIaO6U6rZT0na8BJ/6eMMBgCqT7XAC313NSjt8OnSsLyBxzRC1JpgQAs t2SnS+6SJmZ1JewrK6w6DsfFYJ+yH1XSWEiCpumXFjryWtObXzwnTZXum9eduHOumzAz ZokRw5f07x1aIYRzd4498L90BsiiBTxolB16PNGBFWFnexpsnXvKdb35HpBbgk96jKxD QQow== X-Gm-Message-State: AOJu0YyycJtMGu9QVsw4Mq8ZLg7J5MD1M8x9XXntfj/v5GXZRRxhVaV+ v6iQ6D44VXEC7zdDyEAwvkU9B0YC+zN3GN3ul7Apymm4o55TeusLjAfqXhjP X-Google-Smtp-Source: AGHT+IHZtWS+ZDSRQBE0iL6C2+Yy3gcx06AlcIXaTInCsXFjcrPK3uZpuM0bSZMenRLixPztJkFEiw== X-Received: by 2002:a17:903:183:b0:202:371c:3312 with SMTP id d9443c01a7336-20bc5a8ec65mr26895795ad.40.1727846619448; Tue, 01 Oct 2024 22:23:39 -0700 (PDT) Original-Received: from localhost ([115.240.90.130]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20b37d8ccfcsm78556285ad.72.2024.10.01.22.23.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Oct 2024 22:23:39 -0700 (PDT) In-Reply-To: <874j5x9med.fsf@lispclub.com> (Daniel Cerqueira's message of "Mon, 30 Sep 2024 16:44:26 +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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:292814 Archived-At: [=E0=AE=A4=E0=AE=BF=E0=AE=99=E0=AF=8D=E0=AE=95=E0=AE=B3=E0=AF=8D =E0=AE=9A= =E0=AF=86=E0=AE=AA=E0=AF=8D=E0=AE=9F=E0=AE=AE=E0=AF=8D=E0=AE=AA=E0=AE=B0=E0= =AF=8D 30, 2024] Daniel Cerqueira wrote: > Using Gnus, doing 'G G' on a nnmaildir group gives me this error: > > ``` > nnselect-generate-artlist: gnus-search-run-query on > ((search-query-spec (query . subject:meditation) (raw)) > (search-group-spec (nnmaildir:email archive clients crypto-archive > crypto-sent drafts inbox git git-l10n job-hunting list medical penpal > poker sent shopping software spam wellness writing) (nndraft > nndraft:delayed) (nndraft:nnmaildir:email nndraft:drafts))) gave error > (wrong-type-argument stringp nil) > Group nnselect:nnselect-878qv99nf2.fsf contains no messages > ``` > > The relevant configuration of `~/.emacs` is: > > ``` > (setq message-kill-buffer-on-exit t) ;; C-c C-c kills the buffer > (setq gnus-check-bogus-newsgroups t) ;; delete bogus newsgroups at gnus s= tartup > > ;;; open gnus in topics mode > (add-hook 'gnus-group-mode-hook 'gnus-topic-mode) > > ;;; lines with time > (setq gnus-summary-line-format "%U%R%z%I %4L %(%[%-25,25D %-23,23f%]%) %s > ") > > ;;; order threads by most recent date > (setq gnus-thread-sort-functions '(gnus-thread-sort-by-most-recent-date)) > > ;; hide summary lines of articles that have scores lower than this > (setq gnus-summary-expunge-below -9) > > > (setq gnus-select-method > `(nnmaildir "email" > (directory ,(expand-file-name "~/.mail")) > (nnmaildir-directory ,(expand-file-name "~/.mail")))) > > (setq gnus-message-archive-group '((if (message-news-p) "list" "sent"))) > (setq nndraft-directory (expand-file-name "~/.mail/drafts")) > > (setq message-directory (expand-file-name "~/.mail")) > (setq gnus-directory (expand-file-name "~/.emacs.d/news")) > (setq nnfolder-directory (expand-file-name "~/.mail/archive")) > (setq nnfolder-directory "~/.mail/archive") > (setq nnfolder-active-file "~/.mail/archive/active") > (setq gnus-server-alist '(("archive" nnfolder "archive" > (nnfolder-directory "~/.mail/archive") > (nnfolder-active-file "~/.mail/archive/active") > (nnfolder-get-new-mail nil) > (nnfolder-inhibit-expiry t)))) > (setq mail-default-directory "~/.mail") > (setq smtpmail-queue-dir "~/.mail/.queued-mail") > > ;; gnus search > (setq gnus-search-default-engines > '((nnimap . gnus-search-imap) > (nnmaildir . gnus-search-find-grep) > (nnselect . gnus-search-nnselect))) > ``` > > Gnus is running good, and I am trying to add searching capabilities to > my, already organized, email. > > Doing an epheremal search using 'G G' with point on a nnmaildir group is > giving me the error above. Doing the same of my Topic of my nnmaildir > groups also give me this error. > > My GNU system has `grep` installed. I don't want to do searches on my > maildirs with any other searching methods/executables. > IIRC, this is because the grep method does not change to the maildir directory properly. Since I do not know the maildir terminologies well, if you say G G on a group named "nnmaildir+mail:spam" it does not search in ~/.mail/spam/ but in ~/.mail/ using find with -maxdepth 1, which obviously fails. [ AFAIR, the workaround I posted in bug#72196 does not work for the grep method. ]