Changes between Version 4 and Version 5 of UseCases/SearchingMail


Ignore:
Timestamp:
Oct 31, 2013 6:51:03 PM (4 years ago)
Author:
MichaelRay
Comment:

wikiml. minor style fixes.

Legend:

Unmodified
Added
Removed
Modified
  • UseCases/SearchingMail

    v4 v5  
    1111When you perform a lookup, it creates copies or symbolic links to the directory specified by mfolder, depending on whether you've configured it to ouput in Maildir, mbox, MH or raw format. (the former is the default)
    1212
     13{{{
    1314 ~/.mairixrc
    1415 base=~/.maildir
     
    2223 maildir=.system*
    2324 maildir=.Sent
     25}}}
    2426
    2527It's important that the directory in which the results are going to be saved is excluded from being indexed.
     
    2931It's very annoying to have mairix complain about the existance of a lockfile when no mairix process is running. Thus, here's ashort script that removes it.
    3032
     33{{{
    3134~/bin/mairix
    3235 DB=~/.mairixdb
    3336 trap 'rm "$DB.lock"' 1 2 3 15
    3437 /usr/bin/mairix "$@"
     38}}}
    3539
    3640mairix syntax description: https://github.com/rc0/mairix
    3741
    3842== nmzmail ==
     43
    3944[http://www.ecademix.com/JohannesHofmann/nmzmail.html nmzmail] is a tool to use the [http://www.namazu.org/index.html.en namazu2] search engine from within the mutt mail reader to search mail stored in maildir folders.
    4045
     
    4348Here's a script to index your mailboxes that allows you to exclude some of them.
    4449
     50{{{
    4551~/bin/nmzmail-index.sh
    4652 #!/bin/bash
     
    6470 
    6571 nmzmail -i "${ARGS[@]}"
     72}}}
    6673
    6774namazu syntax description: http://search.namazu.org/
     
    7885At first, you will need to index all your Maildirs; assuming they are all stored recursively under a single directory, you can do that with
    7986
     87{{{
    8088 mu-index -m PATH
     89}}}
    8190
    8291If the dir is ~/Maildir or some other common place (e.g. defined in $MAILDIR), you can avoid passing -m.
    8392
    84 Then, you can periodically update the index via cron or any other mean. I personally do that with the following cron entry on my laptop:
     93Then, you can periodically update the index via cron or any other mean. You can do that with the following cron entry:
    8594
     95{{{
    8696 31  */2 *  *   *     on_ac_power && mu-index -q
     97}}}
    8798
    8899With about 20'000 mails it is quite fast and finishes in a few seconds.
     
    91102
    92103== mutt configuration ==
     104
     105{{{
    93106~/.mutt/macros
    94107
     
    107120 macro index <F8> "<shell-escape>rm -rf ~/.mu/results; mu-find -o l -l ~/.mu/results " "mu-find"             
    108121 macro index <F9> "<change-folder-readonly>~/.mu/results\n" "display mu-find results"                         
     122}}}
    109123
    110 Of course, macros can be written to immediately change to the folder with the results, though I don't find this very convenient.
     124Of course, macros can be written to immediately change to the folder with the results, though YMMV.