aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2014-07-30 23:40:08 +0200
committerJohannes Löthberg <johannes@kyriasis.com>2014-07-31 00:28:49 +0200
commitbc662bee6a3eb1f243c89d67b91369fee293c2da (patch)
treef5f531e73e2e45933fda7069ab0cf9d9fb6a9153
parentd68445303bbb1713c755a16fb5636c50fd2d5497 (diff)
downloaddotfiles-bc662bee6a3eb1f243c89d67b91369fee293c2da.tar.xz
add goobookrc
-rw-r--r--goobookrc11
-rw-r--r--mutt/muttrc4
2 files changed, 13 insertions, 2 deletions
diff --git a/goobookrc b/goobookrc
new file mode 100644
index 0000000..c7ee71c
--- /dev/null
+++ b/goobookrc
@@ -0,0 +1,11 @@
+[DEFAULT]
+# If not given here, email and password is taken from .netrc using
+# machine google.com
+email: demizide@gmail.com
+;password: top secret
+# or if you want to get the password from a commmand:
+passwordeval: pass show goobook/demizide@gmail.com
+# The following are optional, defaults are shown
+cache_filename: ~/.cache/goobook
+;cache_expiry_hours: 24
+;filter_groupless_contacts: yes
diff --git a/mutt/muttrc b/mutt/muttrc
index 62e18c8..33b2741 100644
--- a/mutt/muttrc
+++ b/mutt/muttrc
@@ -35,8 +35,8 @@ set mbox = "+archives"
set postponed = "+Drafts"
mailboxes +Inbox +Sent +Drafts +Trash +archives +arch-dev-public +aur-general +arch-bugs +Spam +Ham
-set query_command="goobook query '%s'"
-macro index,pager A "<pipe-message>goobook add<return>" "add the sender address to Google contacts"
+set query_command='goobook -c "$XDG_CONFIG_HOME/goobookrc" query "%s"'
+macro index,pager A "<pipe-message>goobook -c \"$XDG_CONFIG_HOME/goobookrc\" add<return>" "add the sender address to Google contacts"
bind editor <Tab> complete-query
# Sync email