Skip to content

Instantly share code, notes, and snippets.

@til
Created March 23, 2014 15:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save til/9724904 to your computer and use it in GitHub Desktop.
Save til/9724904 to your computer and use it in GitHub Desktop.
notmuch for emacs-berlin

notmuch

notmuch is a search engine and emacs frontend for locally stored email. The name implies that it is efficient:

“You have 200k emails? That’s not much!”

Features

Fast local search

Based on tagging

No mail gets ever deleted

Append-only makes synchronization setup simpler

Maybe talk about my setup with the notmuch-rsync script.

Great in combination with org

The following links work from org files on my local computer:

Notmuch search: tag:inbox

Email from Arne Brasseur: {emacsberlin} Location for Thu

Notmuch search: emacsberlin

To store a link, in search results or message show buffer: “C-c l”

To insert that link into an org buffer: “C-c C-l”

Useful for example to create TODO or WAITING items linked to emails

Show some common usage

  • Message show
  • Compose
  • PGP
  • attachments

The warm fuzzy feeling of owning your mail

Installation

To use it, first install the standalone software, e.g. from an operating system package or from source. This will give you the ‘notmuch’ commandline program. It can be configured and used independently from emacs.

Make sure you have org and melpa package archives

(add-to-list 'package-archives '("org" . "http://orgmode.org/elpa/") t)
(add-to-list 'package-archives '("melpa" . "http://melpa.milkbox.net/packages/") t)

M-x list-packages and install the packages notmuch and org-plus-contrib.

Add to init.el:

(require 'notmuch)
(require 'org-notmuch)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment