unmailboxes * # 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 set folder=imaps://`pass show gmail/work/name`@imap.gmail.com/ set spoolfile=+INBOX 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" 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 # allow mutt to open a new IMAP connection autmatically unset imap_passive # keep imap connection alive by polling intermittently set imap_keepalive=300 # how often to check check for new email set mail_check=120 # gmail automatically saves sent emails, so we avoid duplicates 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 hostname="gmail.com" set realname='Brahmajit' set use_from=yes set signature="$HOME/.config/neomutt/signature" ## Hook account-hook $folder "set imap_user=`pass show gmail/work/name`@gmail.com imap_pass=`pass show gmail/work/mutt`" # vim: set ft=muttrc: