Mutt
Mutt is the mail client for linux that I use.
Mutt Query Tools
I've written a few tools that will query a file for addresses matching a text. These tools do the same thing in different languages.
The programs can be used in mutt by putting:
set query_command = "~/bin/mutt_query '%s'"
in the .muttrc file, where ~/bin/ is the directory where file is stored.
- In OCaml: mutt_query.ml.
- In lua: mutt_query.lua.
To get the an e-mail address from a message, I use another tool, named mutt_add.pl.
macro index "a" "|~/bin/mutt_add.pl\n"
macro pager "a" "|~/bin/mutt_add.pl\n"
It has a few dependencies: IO::Prompt and Mail::Message. These modules can
be found on CPAN.
This program will add the email address from the email to the file called
~/doc/addresses.added. The other program, mutt_query.pl will look in this
file to complete the address.