Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

If at first you don't succeed, you are running about average.


computers / comp.mail.mutt / keyword search of old messages

SubjectAuthor
* keyword search of old messagesbob prohaska
+- Re: keyword search of old messagesRich
+* Re: keyword search of old messagesRoger Bell_West
|`* Re: keyword search of old messagesbob prohaska
| `- Re: keyword search of old messagesEike Rathke
`- Re: keyword search of old messagesPeter Pearson

1
keyword search of old messages

<tjpf3l$isnr$1@dont-email.me>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=123&group=comp.mail.mutt#123

 copy link   Newsgroups: comp.mail.mutt
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: bp...@www.zefox.net (bob prohaska)
Newsgroups: comp.mail.mutt
Subject: keyword search of old messages
Date: Mon, 31 Oct 2022 21:35:50 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <tjpf3l$isnr$1@dont-email.me>
Injection-Date: Mon, 31 Oct 2022 21:35:50 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="51cc3e96f2f2c8157125e7f8c480b687";
logging-data="619259"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18unP15ZF6l92DPFy4qPkKSPBUA65t44c4="
Summary: Is a full-text search possible using mutt?
Keywords: mutt, search
User-Agent: tin/2.4.4-20191224 ("Millburn") (FreeBSD/12.3-STABLE (arm))
Cancel-Lock: sha1:lpYKjkj06xv4yyy+qEPX+V5sUMs=
 by: bob prohaska - Mon, 31 Oct 2022 21:35 UTC

I admit this is a dumb question, but couldn't find
an answer that I recognized in the help list or manpage.

How does one search through accumulated mutt mail for
messages containing a particular word in the message body?

For example, I think there's an old message containing the
word foo, but it's not in the title or subject. Is it possible
to do a full-text search of all messages in a folder?

Thanks, and apologies if I'm missing something obvious.

bob prohaska

Re: keyword search of old messages

<tjph9d$j2b1$1@dont-email.me>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=124&group=comp.mail.mutt#124

 copy link   Newsgroups: comp.mail.mutt
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: ric...@example.invalid (Rich)
Newsgroups: comp.mail.mutt
Subject: Re: keyword search of old messages
Date: Mon, 31 Oct 2022 22:13:01 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <tjph9d$j2b1$1@dont-email.me>
References: <tjpf3l$isnr$1@dont-email.me>
Injection-Date: Mon, 31 Oct 2022 22:13:01 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="6ba5ce4f679d8e8abef85a6a15a4d797";
logging-data="624993"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+i1M1lVajo73gUIUyXhMX7"
User-Agent: tin/2.0.1-20111224 ("Achenvoir") (UNIX) (Linux/3.10.17 (x86_64))
Cancel-Lock: sha1:QZSeM2yTKtYMw9SU5KHI0ZIAVDU=
 by: Rich - Mon, 31 Oct 2022 22:13 UTC

bob prohaska <bp@www.zefox.net> wrote:
> How does one search through accumulated mutt mail for
> messages containing a particular word in the message body?

The mutt manual.txt lists the ~A modifer as "all messages":

Table 4.4. Pattern modifiers
Pattern modifier Description
~A all messages

for searching from within mutt.

> For example, I think there's an old message containing the
> word foo, but it's not in the title or subject. Is it possible
> to do a full-text search of all messages in a folder?

Folders are simply text files (or directories containing text files,
each file containing one message) so they are also searchable using the
standard Unix tools (i.e., grep) with help from find and xargs for the
maildir format (one file per message). The only items that would get
missed using the standard Unix tools would be odd mailers that base64
encode their entire message, even when not necessary.

Re: keyword search of old messages

<20221031225714.980840205987082@firedrake.org>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=125&group=comp.mail.mutt#125

 copy link   Newsgroups: comp.mail.mutt
Path: i2pn2.org!i2pn.org!news.nntp4.net!nntp.terraraq.uk!news1.firedrake.org!.POSTED.heliophagous.homenet.firedrake.org!not-for-mail
From: roger+cm...@nospam.firedrake.org (Roger Bell_West)
Newsgroups: comp.mail.mutt
Subject: Re: keyword search of old messages
Date: Mon, 31 Oct 2022 22:58:14 -0000 (UTC)
Organization: Firedrake Synthesis
Message-ID: <20221031225714.980840205987082@firedrake.org>
References: <tjpf3l$isnr$1@dont-email.me>
Injection-Date: Mon, 31 Oct 2022 22:58:14 -0000 (UTC)
Injection-Info: lustrous.firedrake.org; posting-host="heliophagous.homenet.firedrake.org:10.0.0.1";
logging-data="14825"; mail-complaints-to="usenet@lustrous.firedrake.org"
User-Agent: slrn/1.0.3 (Linux)
X-No-Archive: yes
X-Archiving-0: This post may be retained only in archives with
X-Archiving-1: contents selected by humans on a per-article basis.
 by: Roger Bell_West - Mon, 31 Oct 2022 22:58 UTC

On 2022-10-31, bob prohaska wrote:
>Is it possible
>to do a full-text search of all messages in a folder?

Within what mutt recognises as a mailbox, ~b [regex] .

Personally I also use mairix to index all folders, but that's a
slightly different problem.

Re: keyword search of old messages

<tjpo3r$ji62$1@dont-email.me>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=126&group=comp.mail.mutt#126

 copy link   Newsgroups: comp.mail.mutt
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: bp...@www.zefox.net (bob prohaska)
Newsgroups: comp.mail.mutt
Subject: Re: keyword search of old messages
Date: Tue, 1 Nov 2022 00:09:31 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 15
Message-ID: <tjpo3r$ji62$1@dont-email.me>
References: <tjpf3l$isnr$1@dont-email.me> <20221031225714.980840205987082@firedrake.org>
Injection-Date: Tue, 1 Nov 2022 00:09:31 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="ee8d839ec39419975c35f024a5408bb8";
logging-data="641218"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/ENf9+53R25TOS5Hd/kuCi+kEX3lnNVOM="
User-Agent: tin/2.4.4-20191224 ("Millburn") (FreeBSD/12.3-STABLE (arm))
Cancel-Lock: sha1:A2ql+uwzztDAp/NAtuF5MfCnwuc=
 by: bob prohaska - Tue, 1 Nov 2022 00:09 UTC

Roger Bell_West <roger+cmm202210@nospam.firedrake.org> wrote:
> On 2022-10-31, bob prohaska wrote:
>>Is it possible
>>to do a full-text search of all messages in a folder?
>
> Within what mutt recognises as a mailbox, ~b [regex] .
>

That seems to do the trick. Took me a while to recognize
the tilda as the escape key 8-\

Thanks for your help!

bob prohaska

Re: keyword search of old messages

<jscrqsFflasU1@mid.individual.net>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=127&group=comp.mail.mutt#127

 copy link   Newsgroups: comp.mail.mutt
Path: i2pn2.org!i2pn.org!aioe.org!news.mb-net.net!open-news-network.org!news.mind.de!bolzen.all.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: pkpear...@nowhere.invalid (Peter Pearson)
Newsgroups: comp.mail.mutt
Subject: Re: keyword search of old messages
Date: 1 Nov 2022 15:21:00 GMT
Lines: 19
Message-ID: <jscrqsFflasU1@mid.individual.net>
References: <tjpf3l$isnr$1@dont-email.me>
X-Trace: individual.net UJyexgrkQVoXiezkUvm8FQ5WkOZefxZ2wpZ7i/+wvudprG2dbB
Cancel-Lock: sha1:OmYMLPyBEHDpig+XGJDZcXoRXRg=
User-Agent: slrn/1.0.3 (Linux)
 by: Peter Pearson - Tue, 1 Nov 2022 15:21 UTC

On Mon, 31 Oct 2022 21:35:50 -0000 (UTC), bob prohaska wrote:
[snip]
> How does one search through accumulated mutt mail for
> messages containing a particular word in the message body?

I've been happy with notmuch. It maintains a database that
speeds up searching over all your old emails, and allows
slightly complicated requests like requiring X in the email
body and Y on the subject line and Z in the recipient list.
In the configuration that I think is the default, the F8 key
in the mutt index display switches to a notmuch search.

On my system, the notmuch database occupies 1.2 gigabytes of storage,
and is updated daily by a cron job. The update takes well under a
minute. My maildir directory contains about 8 gigabytes of mail.

--
To email me, substitute nowhere->runbox, invalid->com.

Re: keyword search of old messages

<N3e8I636238beT2713@kulungile.erack.de>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=128&group=comp.mail.mutt#128

 copy link   Newsgroups: comp.mail.mutt
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: erack+nu...@posteo.de (Eike Rathke)
Newsgroups: comp.mail.mutt
Subject: Re: keyword search of old messages
Date: 2 Nov 2022 09:32:27 GMT
Organization: possibly
Lines: 24
Message-ID: <N3e8I636238beT2713@kulungile.erack.de>
References: <tjpf3l$isnr$1@dont-email.me>
<20221031225714.980840205987082@firedrake.org>
<tjpo3r$ji62$1@dont-email.me>
X-Trace: individual.net FZFFJSHGmCP1PRuHOgNo7g+0T+0zTCFG+dugnFd7oXL3BKU3E=
Cancel-Lock: sha1:OzSW0CjtYMPy7yNqreIuAn4wdFI=
X-Accept-Language: de,en
X-PGP-Hash: SHA256
X-PGP-Key: 0x6A6CD5B765632D3A
X-PGP-Sig: GnuPG-v2 From,Newsgroups,Subject,Message-ID
iQIzBAEBCAAdFiEEImXX86ewlcw5GGMLamzVt2VjLToFAmNiOL4ACgkQamzVt2Vj
LTraOg/+Nv3o0MKEd8xHl0ZPHbPGvJU5LjQow7PEEg11OqwQL6mxyKVQQtPh/8f9
VlFZcCCx07ZN+TUVVN/zlAkSOu3AIfDjOyglpB943HEn6PkskPk/Jw1RRafBobIq
m2yGOGeVlVAkGQYA7/Y7SWBIKNXhOot37ixntjLlQQKxCzcPQs8vumcwIIihzXKt
03hd9ah7Qz5gTK+ieb01bAqs4MqrXjWFIM2KPJ/sDhFiL2VBTXCYZzUZaO1COFj5
ZJZ+qXNymJ0Vro9ZdIg9ZD6OY/xTqTN0AFy/2IjinexJqXR7OivJ07ommdnjT8Sj
QutPPln65LMWE7ZdvIkmpUwOT7PSne7mdsVYf4ke1scZYrYimJ5YPu+A94HemU5t
ARlQOb0Kmrw8ulaArKHz5rJ8fDWQVG2AOyKoDGa1b7fWHFsWEgMoHVKVlICt4gWd
9Ais6HjgVjiE7Nyd/UEabDpX3ZvvuNxkpGsI931Q4kjbSKyQ3MqMTdfzbt5QnFGh
UqAhNynWRc/FHRa2pRCqVOczQ6Bwq4FP2OVHhDBCJIY3nGNTxqSEQH0gGCyDyEA3
/YMkKI1n6mCK+TEL8U4V8Hp00reIM57QyyL7tZkBRmh6lnwbzRK4mfmVekBcJPFE
2HniwCCpm1HKzVU1MdB8E2fzloSoSjq3FYa4j5HfLXpRktgolq4= =OV3i
User-Agent: slrn/1.0.3 (Linux)
 by: Eike Rathke - Wed, 2 Nov 2022 09:32 UTC

* bob prohaska, 2022-11-01 00:09 UTC:
> Roger Bell_West <roger+cmm202210@nospam.firedrake.org> wrote:
>> Within what mutt recognises as a mailbox, ~b [regex] .
>
> That seems to do the trick. Took me a while to recognize
> the tilda as the escape key 8-\

It's not. ~b is the pattern operator for
~b EXPR messages which contain EXPR in the message body.
man muttrc

You can use that in any expression and operation that understands
patterns, limit filters, hooks, ...

<Esc>b is a macro key binding of
M <search>~b
search in message bodies. See mutt help with ? when in index.

Eike

--
OpenPGP/GnuPG encrypted mail preferred in all private communication.
GPG key 0x6A6CD5B765632D3A - 2265 D7F3 A7B0 95CC 3918 630B 6A6C D5B7 6563 2D3A
Use LibreOffice! https://www.libreoffice.org/

1
server_pubkey.txt

rocksolid light 0.9.7
clearnet tor