address autocompletion.

This commit is contained in:
Gabriel Ebner 2013-04-29 21:51:45 +02:00
parent 441baeda38
commit 7b2afad6f2
2 changed files with 6 additions and 0 deletions

3
notmuch-address Executable file

@ -0,0 +1,3 @@
#!/bin/sh
which lbdbq >/dev/null || exit
lbdbq "$1" | sed '1d;s/\(.*\)\t(null).*/\1/;s/\(.*\)\t\(.*\)\t.*/\2 <\1>/'

@ -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)