aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Kavanagh <rak@debian.org>2016-07-06 14:20:00 -0400
committerRyan Kavanagh <rak@debian.org>2016-07-06 14:20:00 -0400
commitdc63532258cdf7f2964df23c7e6e8649729259cd (patch)
tree7542a1ed54d7a04352a5e9da3705ea68574d1a25
parentMore cleanup (diff)
Revamped mutt aliases to also use lbdb
-rw-r--r--.lbdbrc4
-rw-r--r--.muttrc3
-rwxr-xr-xbin/lbdb-fetchaddr-wrapper7
-rw-r--r--gpg/.mutt/alias.rc.gpgbin3741 -> 3771 bytes
-rw-r--r--packages-install1
5 files changed, 14 insertions, 1 deletions
diff --git a/.lbdbrc b/.lbdbrc
new file mode 100644
index 0000000..6b0e865
--- /dev/null
+++ b/.lbdbrc
@@ -0,0 +1,4 @@
+KEEP_DUPES="yes"
+METHODS="m_finger m_inmail m_gpg m_muttalias"
+M_FINGER_HOSTS="andrew.cmu.edu cs.cmu.edu"
+MUTTALIAS_FILES="~/.mutt/aliases.rc"
diff --git a/.muttrc b/.muttrc
index 273f927..9c1ef83 100644
--- a/.muttrc
+++ b/.muttrc
@@ -24,7 +24,7 @@ set pager_stop = yes
# Display HTML mail only if there's no text/plain
alternative_order text/plain text/html *
auto_view text/html
-set display_filter="~/bin/mutt-autoalias"
+set display_filter="~/bin/lbdb-fetchaddr-wrapper"
set timeout=15
set mail_check=60
@@ -70,6 +70,7 @@ macro index \cxw '<enter-command>set index_format="%4C %{%m%d} %-16.16F %-15.15B
set mark_old=yes
+set query_command="lbdbq %s"
# set query_command = "abook --mutt-query '%s'"
# macro generic,index,pager \ca "<shell-escape>abook<return>" "launch abook"
# macro index,pager A "<pipe-message>abook --add-email-quiet<return>"
diff --git a/bin/lbdb-fetchaddr-wrapper b/bin/lbdb-fetchaddr-wrapper
new file mode 100755
index 0000000..214228d
--- /dev/null
+++ b/bin/lbdb-fetchaddr-wrapper
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+MSG=$(cat /dev/stdin)
+
+echo "$MSG" | lbdb-fetchaddr;
+
+echo "$MSG"
diff --git a/gpg/.mutt/alias.rc.gpg b/gpg/.mutt/alias.rc.gpg
index 16d5adf..4b8019d 100644
--- a/gpg/.mutt/alias.rc.gpg
+++ b/gpg/.mutt/alias.rc.gpg
Binary files differ
diff --git a/packages-install b/packages-install
index 8357b96..8ac9a7d 100644
--- a/packages-install
+++ b/packages-install
@@ -19,6 +19,7 @@ apt-get install \
imapfilter \
keychain \
latex-mk \
+ lbdb \
libmail-box-perl \
lintex \
mailcheck \