aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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