Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Jan 21, 2023. It is now read-only.
/ spacemail Public archive

Mail setup using offlineimap, notmuch, and spacemacs

or/spacemail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Requirements

  • isync
$ brew install isync
  • notmuch
$ brew install notmuch
pip install psutil

Installation

xbar

Symlink the files in xbar-plugins into ~/Library/Application Support/xbar/plugins and start xbar.

Emacs

  • Doom Emacs: symlink lib/spacemail into your doom directory and add (load! "spacemail/spacemail") to your config.el
  • Spacemacs: add lib/spacemail/packages.el

isync

Retrieving credentials via macOS Keychain (recommended)

  • use the UseKeychain setting, see mbsync man page for details
  • more secure than the GPG method below

Retrieving credentials via GPG (discouraged)

  • pinentry-mac for 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.gpg to retrieve the password

Alternative setup with offlineimap

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.

Migrate from offlineimap

  1. Backup your mail directory
  2. Delete your mail directory
  3. Set up mbsync with the same mail directory
  4. Run mbsync, which fetches all mails again
  5. 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

Options

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.

About

Mail setup using offlineimap, notmuch, and spacemacs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published