From dc63532258cdf7f2964df23c7e6e8649729259cd Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Wed, 6 Jul 2016 14:20:00 -0400 Subject: Revamped mutt aliases to also use lbdb --- .lbdbrc | 4 ++++ .muttrc | 3 ++- bin/lbdb-fetchaddr-wrapper | 7 +++++++ gpg/.mutt/alias.rc.gpg | Bin 3741 -> 3771 bytes packages-install | 1 + 5 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 .lbdbrc create mode 100755 bin/lbdb-fetchaddr-wrapper 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 '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 "abook" "launch abook" # macro index,pager A "abook --add-email-quiet" 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 Binary files a/gpg/.mutt/alias.rc.gpg and b/gpg/.mutt/alias.rc.gpg 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 \ -- cgit v1.2.3