From 74e6e9a529ce6fd0d198666944d61eee829f77ce Mon Sep 17 00:00:00 2001
From: neodarz <neodarz@neodarz.net>
Date: Fri, 3 Nov 2017 09:56:09 +0100
Subject: Add notmuch conf

---
 mutt/.muttrc | 21 +++++++++++++++++----
 1 file changed, 17 insertions(+), 4 deletions(-)

diff --git a/mutt/.muttrc b/mutt/.muttrc
index 1a23f62..9dfa2c3 100644
--- a/mutt/.muttrc
+++ b/mutt/.muttrc
@@ -29,15 +29,13 @@ folder-hook 'account.net.neodarz.corentin.breton' 'source ~/.mutt/account.net.ne
 # GPG commands
 source ~/.mutt/gpg.rc
 
-# Default account
-source ~/.mutt/account.net.neodarz.neodarz
-
 # Macros for switching accounts
 macro index <f2> '<sync-mailbox><refresh><enter-command>source ~/.mutt/account.net.neodarz.neodarz<enter><change-folder>!<enter>'
 macro index <f3> '<sync-mailbox><refresh><enter-command>source ~/.mutt/account.net.neodarz.corentin.breton<enter><change-folder>!<enter>'
 
 # Fetch mail shortcut
-bind index G imap-fetch-mail
+#bind index G imap-fetch-mail
+macro index,pager U '<shell-escape>offlineimap &<enter>'
 
 macro index 'c' '<change-folder>?<change-dir><home>^K=<enter>'
 macro attach W <save-entry><kill-line>/home/neodarz/attachments/
@@ -123,3 +121,18 @@ set mailcap_path="~/.mutt/mailcap"
 
 # handover mail to htmail-view (works only for multipart mails containing text/html payload)
 macro index,pager H "<pipe-message>htmail-decode<return>" "render html mail using htmail-view"
+
+# This variable specifies notmuch query type, supported types: 'threads' and
+# 'messages'.
+set nm_query_type = threads
+
+# When set, mutt will use the first virtual mailbox (see virtual-mailboxes)
+# as a spoolfile.
+set virtual_spoolfile = yes
+
+# virtual-mailboxes description notmuch-URI { description notmuch-URI ...}
+virtual-mailboxes "Inbox" "notmuch://?query=tag:inbox"
+
+# Default account
+source ~/.mutt/account.net.neodarz.neodarz
+
-- 
cgit v1.2.1