Go to TogaWare.com Home Page. GNU/Linux Desktop Survival Guide
by Graham Williams
Duck Duck Go

Mairix: Searching Maildir and mbox archives


Mairix is an email indexing tool that works with standard GNU/Linux mbox and Maildir formats. The model is that the mairix command is run to update the index and it can then be searched to generate a mailbox containing the results of the search. Visit the mailbox (Maildir/Search in the example below) to review the found messages.

  $ wajig install mairix
  $ emacs ~/.mairixrc
  base=/home/kayon/Maildir
  database=/home/kayon/.mairix_database
  mfolder=Search
  maildir=... 
  $ mairix           This creates or updates the index database
  $ mairix f:Fred    This creates "Search" Maildir with the results

Examples of searches that can be performed include:

  mairix d:7jun-8jun                  Any messages on these dates
  mairix pulling                      Header or body containing the word
  mairix a:daphne                     To/Cc/From contains daphne

Then load it up into mutt:

  $ mutt -f Maildir/Search


Copyright © 1995-2018 Togaware Pty Ltd
Support further development through the purchase of the PDF version of the book.
Brought to you by Togaware and the author of the open source software Rattle and wajig.
Also the author of Data Mining with Rattle and Essentials of Data Science.