Faster message body searching

Jean Louis bugs at gnu.support
Sat Aug 21 05:43:55 UTC 2021


* Chinmaya Nagpal <chinmaya1011 at gmail.com> [2021-08-20 23:20]:
> Is there any way to make it faster to do ~b limits in maildir mailboxes? 
> I don't really use notmuch for much other than message body searching so 
> I'm considering if I should get rid of it entirely. 

If you don't know who is the correspondent and you wish to find
message by body search then either you would use indexer like notmuch,
and I am using "mu" indexer https://github.com/djcb/mu/ as I find it
better; or maybe you could use simple `grep' to locate the message,
which would be probably slower with larger number of Maildirs.

In order to limit searches in bodies to specific conversant my Maildir
setup is such that all emails related to specific email address are
automatically saved to corresponding Maildir folder:

~/Maildir/user at example.com is Maildir directory containing all emails
to and from user at example.com

~/Maildir/other-user at other-example.com is Maildir directory containing all emails
to and from other-user at other-example.com

That way if I wish to search with ~b narrowed and related to specific
email address then the search goes much faster. 

Otherwise I have to use indexer to locate those messages which I do
not know to which conversant they belong.

-- 
Jean

Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns

In support of Richard M. Stallman
https://stallmansupport.org/


More information about the Mutt-users mailing list