~armaan/dotfiles

0fdef8a1db7a37cd6b46dc50dd22227933ee094d — Armaan Bhojwani 3 months ago 6fc5dcd
mutt, mbsync: switch to using bitwarden
2 files changed, 15 insertions(+), 4 deletions(-)

M .config/mbsync/mbsyncrc
M .config/mutt/muttrc
M .config/mbsync/mbsyncrc => .config/mbsync/mbsyncrc +2 -2
@@ 5,7 5,7 @@ SyncState *
IMAPStore personal-remote
Host imap.mailbox.org
User me@armaanb.net
PassCmd "pash show login.mailbox.org/me@armaanb.net | head -n 1"
PassCmd "printf %s $personal"

MaildirStore personal-local
Path ~/mail/personal/


@@ 24,7 24,7 @@ IMAPStore school-remote
SSLType IMAPS
Host imap.gmail.com
User abhojwani22@nobles.edu
PassCmd "pash show gmail-otp/abhojwani22@nobles.edu | head -n 1"
PassCmd "printf %s $school"

MaildirStore school-local
Path ~/mail/school/

M .config/mutt/muttrc => .config/mutt/muttrc +13 -2
@@ 12,8 12,8 @@ set help = no
set status_format = "[%f] %n/%m unread %> %P"
set wait_key = no

set my_personal_smtp_pass = `pash show login.mailbox.org/me@armaanb.net`
set my_school_smtp_pass = `pash show gmail-otp/abhojwani22@nobles.edu`
set my_personal_smtp_pass=`printf %s $personal`
set my_school_smtp_pass=`printf %s $school`

folder-hook "personal" "source ~/.config/mutt/muttrc.personal
folder-hook "school"   "source ~/.config/mutt/muttrc.school"


@@ 21,3 21,14 @@ source "~/.config/mutt/muttrc.personal"

macro index Z "!mbsync -a -c ~/.config/mbsync/mbsyncrc<enter>" "Update with mbsync"
macro index,pager A "<save-message>=Archive<enter>" "Archive Message"

bind pager j next-line
bind pager k previous-line
bind pager l next-undeleted
bind pager h previous-undeleted
bind attach,index,pager \CD next-page
bind attach,index,pager \CU previous-page
bind pager g top
bind pager G bottom
bind attach,index g first-entry
bind attach,index G last-entry