From 7b2afad6f2a92760432f96812bc1723edcabfcb4 Mon Sep 17 00:00:00 2001 From: Gabriel Ebner Date: Mon, 29 Apr 2013 21:51:45 +0200 Subject: [PATCH] address autocompletion. --- notmuch-address | 3 +++ notmuch-config.el | 3 +++ 2 files changed, 6 insertions(+) create mode 100755 notmuch-address diff --git a/notmuch-address b/notmuch-address new file mode 100755 index 0000000..7a8eeeb --- /dev/null +++ b/notmuch-address @@ -0,0 +1,3 @@ +#!/bin/sh +which lbdbq >/dev/null || exit +lbdbq "$1" | sed '1d;s/\(.*\)\t(null).*/\1/;s/\(.*\)\t\(.*\)\t.*/\2 <\1>/' diff --git a/notmuch-config.el b/notmuch-config.el index 57af1f0..7bcc3d3 100644 --- a/notmuch-config.el +++ b/notmuch-config.el @@ -18,3 +18,6 @@ mail-envelope-from 'header message-sendmail-f-is-evil nil message-sendmail-envelope-from 'header) + +(setq notmuch-address-command "~/etc/notmuch-address") +(notmuch-address-message-insinuate)