WARNING: This repository is severely outdated and a bit messy. It started using Spacemacs, but shifted towards Doom Emacs, without much explanation or separation. I’ll archive it as it is now and make a clean version for just Doom Emacs here: https://github.com/or/ormail
- isync
$ brew install isync- notmuch
$ brew install notmuch- Growl and GrowlNotify
- xbar v2.0-32 beta at time of writing (before that it was called BitBar and I used v2.0 beta 10)
- psutil
pip install psutilSymlink the files in xbar-plugins into ~/Library/Application
Support/xbar/plugins and start xbar.
- Doom Emacs: symlink
lib/spacemailinto your doom directory and add(load! "spacemail/spacemail")to yourconfig.el - Spacemacs: add
lib/spacemail/packages.el
- use the
UseKeychainsetting, see mbsync man page for details - more secure than the GPG method below
pinentry-macfor GPG to ask for the password when decrypting~/.authinfo.gpg
$ brew install pinentry-mac- anyone with access to your system while you are logged in will be able to run
gpg -d ~/.authinfo.gpgto retrieve the password
Previously I used offlineimap, but isync is faster and allows the more secure Keychain access. However, offlineimap can still be used like before, see the git history to see what changes might be necessary.
- Backup your mail directory
- Delete your mail directory
- Set up mbsync with the same mail directory
- Run mbsync, which fetches all mails again
- Run notmuch-poll, everything should work as expected afterwards, files previously archived will have the offlineimap naming scheme, but notmuch isn’t fussy about that
If you want to archive all email that is older than 30 days, then you can
add this to ~/.spacemailrc:
[general] archive = true
Archiving will move old emails to a local folder, so mbsync will delete them on the server on the next sync.