summaryrefslogtreecommitdiff
path: root/.config/neomutt/gmail_main
diff options
context:
space:
mode:
Diffstat (limited to '.config/neomutt/gmail_main')
-rw-r--r--.config/neomutt/gmail_main21
1 files changed, 15 insertions, 6 deletions
diff --git a/.config/neomutt/gmail_main b/.config/neomutt/gmail_main
index 96e8980..071943a 100644
--- a/.config/neomutt/gmail_main
+++ b/.config/neomutt/gmail_main
@@ -1,3 +1,10 @@
+# Unset to properly repopulate the variables
+unset smtp_pass
+unset smtp_url
+unset smtp_user
+unset from
+unset hostname
+
# Receive options
set imap_pass="`pass show gmail/work/mutt`"
set imap_user="`pass show gmail/work/name`"@gmail.com
@@ -7,15 +14,17 @@ set record="+[Gmail]/Sent Mail"
set postponed="+[Gmail]/Drafts"
mailboxes =INBOX =[Gmail]/Sent\ Mail =[Gmail]/Drafts =[Gmail]/Spam =[Gmail]/Trash
+set edit_headers=yes
+set ssl_force_tls=yes
+set ssl_starttls
+
# Show lable in mailbox
mailboxes =gsoc # lable name
mailboxes "imaps://`pass show gmail/work/name`@imap.gmail.com/gsoc"
-# store message header locally
-set header_cache=~/.cache/neomutt
-
-# store messages locally to speed things up
-set message_cachedir="~/.cache/neomutt"
+set header_cache = "$XDG_CACHE_HOME/neomutt/headers/"
+set message_cachedir = "$XDG_CACHE_HOME/neomutt/bodies/"
+set certificate_file = "$XDG_CACHE_HOME/neomutt/certificates/"
# specify where to save and/or look for postponded messages
set postponed=+[Gmail]/Drafts
@@ -34,7 +43,7 @@ unset record
## Send options
set smtp_url=smtps://`pass show gmail/work/name`:`pass show gmail/work/mutt`@smtp.gmail.com
-set from=`pass show gmail/work/name`@gmail.com
+set from=`pass show gmail/work/name`
set hostname="gmail.com"
set realname='listout'
set use_from=yes