dotfiles/mail
Marty Oehme be688572f5
mail: Add contacts lookup script
Added `mail-searchcontacts` script, which uses notmuch to search for all
contacts of the mail database.

Can be invoked without any arguments to list *all* contacts of the
dataase in descending order of message count.
Otherwise, it will filter known contacts, first by prioritizing the
'from:' field, and otherwise by searching through the whole database for
the keywords passed in.

It will also re-format the results so that the list consists of
tab-delineated 'mail name' rows. If there is no name, the row will only
contain the bare e-mail address. This format is best accepted by aerc,
for which the script is written.

aerc uses the contacts script for its address completion in editing
e-mail headers.

Renamed `checkmail` to `mail-check` to fit the naming scheme of
`mail-[action]` for mail scripts, to better be able to group them in the
shell.
2020-09-23 17:55:06 +02:00
..
.config mail: Add contacts lookup script 2020-09-23 17:55:06 +02:00
.local/bin mail: Add contacts lookup script 2020-09-23 17:55:06 +02:00
README.md mail: Initial commit 2020-09-23 17:55:05 +02:00

e-mail module

aerc - terminal mail client isync - mirror your Imapped mail directory locally with two way synchronization notmuch - index and search your mail

The current mail setup uses mbsync (from the isync project) to locally mirror the GMail imap folder. It, as of now, needs to be manually run by invoking mbsync gmail -- which expects your username and password to reside in a pass accessible file called misc/aerc-gmail-app-password. In other words --- this is very specific to my setup and if transferring the options, please customize to your needs.

Then, notmuch can be run on the local maildir to generate and indexed full-text search engine. Right now, notmuch can only be used through its cli, it is not yet connected to aerc.

aerc picks up the maildir created by mbsync in ~/documents/mail and works on it. mbsync syncs any changes made back to the remote imap directory.