unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Visuwesh <visuweshm@gmail.com>
To: Daniel Cerqueira <dan.list@lispclub.com>
Cc: 73581@debbugs.gnu.org
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	[thread overview]
Message-ID: <87bk03dqnc.fsf@gmail.com> (raw)
In-Reply-To: <874j5x9med.fsf@lispclub.com> (Daniel Cerqueira's message of "Mon, 30 Sep 2024 16:44:26 +0100")

[திங்கள் செப்டம்பர் 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 startup
>
> ;;; 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.  ]





      reply	other threads:[~2024-10-02  5:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-30 15:44 bug#73581: 29.4; Gnus: Error doing a search on nnmaildir with gnus-search-find-grep Daniel Cerqueira
2024-10-02  5:23 ` Visuwesh [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87bk03dqnc.fsf@gmail.com \
    --to=visuweshm@gmail.com \
    --cc=73581@debbugs.gnu.org \
    --cc=dan.list@lispclub.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).