/davemail

My email configuration, using mbsync, notmuch, msmtp, msmtpq, pgp, emacs and gnus-alias

Primary LanguagePython

Davemail

Introduction

My email setup, now under source control as it is getting rather complex!

  1. My emails come in to my FastMail account.
  2. mbsync is used to keep a local copy of my emails synchronised using IMAP. (Much more efficient and reliably than offlineimap once set up correctly. Unfortunately setting it up correctly wasn't trivial).
  3. My pre and post synchronisation scripts are run which take care of archiving emails which are in my inboxes but don't have the inbox notmuch tags any more.
  4. Those scripts also run my pre and post synchronisation hooks in Emacs, which I then use to update my modeline display etc. (See my Emacs config.)
  5. Notmuch Emacs client is then used for reading and tagging message. Gnus alias for handling my different email identities + signatures.
  6. Outgoing emails are sent using msmtp and the msmtpq script, back out via FastMail's servers.

Usage

(Not actually supposed to be used by other people...)

  • Set up my Emacs config.

  • Create password.gpg with the FastMail password.

  • Run ./syncmail to do a complete mail synchronisation every two minutes.

  • Run ./syncmail 1 to fetch incoming emails every 30 seconds.

TODO

  • Set up [imapnotify][11] to trigger mbsync when new incoming emails are received. (Beats polling.)
  • Fix up Rietveld emails:
  • Quoted text is often wrapped too eagerly.
  • No thread ID is given so messages aren't kept together.
  • Ditch webmail / mobile email completely?!