summaryrefslogtreecommitdiff
path: root/.config/neomutt/gmail_main
diff options
context:
space:
mode:
authorlistout <listout@protonmail.com>2021-10-22 10:40:18 +0530
committerlistout <listout@protonmail.com>2021-10-22 10:40:18 +0530
commitfdcdd85d15f1176ee612e2c76bed2860f952d780 (patch)
treee5d1ade38c8ed422bb8ee9cfb35bd49743461ce3 /.config/neomutt/gmail_main
parentd4abb51bc9dfacf3fe049c2d0f8a1228851651ae (diff)
using pass for password management in mutt
Diffstat (limited to '.config/neomutt/gmail_main')
-rw-r--r--.config/neomutt/gmail_main23
1 files changed, 12 insertions, 11 deletions
diff --git a/.config/neomutt/gmail_main b/.config/neomutt/gmail_main
index 5447d8d..9ddeec2 100644
--- a/.config/neomutt/gmail_main
+++ b/.config/neomutt/gmail_main
@@ -1,12 +1,11 @@
-# vim: set ft=muttrc:
-source "gpg -dq $HOME/Nextcloud/keepass_database/mutt_pass.gpg |"
-
-## Receive options
-set imap_pass=$my_pass
-set imap_user=$my_userName@gmail.com
-set folder=imaps://$my_userName@imap.gmail.com/
+# Receive options
+set imap_pass="`pass show gmail/main/mutt_pass`"
+set imap_user="`pass show gmail/main/name`"@gmail.com
+set folder=imaps://`pass show gmail/main/name`@imap.gmail.com/
set spoolfile=+INBOX
-mailboxes imaps://imap.gmail.com/INBOX
+set record="+[Gmail]/Sent Mail"
+set postponed="+[Gmail]/Drafts"
+mailboxes =INBOX =[Gmail]/Sent\ Mail =[Gmail]/Drafts =[Gmail]/Spam =[Gmail]/Trash
# store message header locally
set header_cache=~/.cache/neomutt
@@ -30,9 +29,11 @@ set mail_check=120
unset record
## Send options
-set smtp_url=smtps://$my_userName:$my_pass@smtp.gmail.com
-set from=$my_userName@gmail.com
+set smtp_url=smtps://`pass show gmail/main/name`:`pass show gmail/main/mutt_pass`@smtp.gmail.com
+set from=`pass show gmail/main/name`@gmail.com
set hostname="gmail.com"
## Hook
-account-hook $folder "set imap_user=$my_userName@gmail.com imap_pass=$my_pass"
+account-hook $folder "set imap_user=`pass show gmail/main/name`@gmail.com imap_pass=`pass show gmail/main/mutt_pass`"
+
+# vim: set ft=muttrc: