From be1cd84f930f5c63cbe96427c7968448ac8cf52f Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Tue, 16 Apr 2019 11:42:30 -0400 Subject: [PATCH] offline mail possible --- mw | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/mw b/mw index 2b4ae08..324557e 100755 --- a/mw +++ b/mw @@ -93,8 +93,8 @@ mutt_profile="# vim: filetype=neomuttrc set realname = \"$realname\" set from = \"$fulladdr\" set sendmail = \"/usr/bin/msmtp -a $title\" -set folder = \"imaps://$imap:$iport\" -set imap_user = $login +set folder = \"imaps://$fulladdr@$imap:$iport\" +set imap_user = \"$login\" set header_cache = $accdir/$title/cache/headers set message_cachedir = $accdir/$title/cache/bodies set certificate_file = $accdir/$title/certificates @@ -172,10 +172,8 @@ EOF echo "$mbsync_profile" >> "$mbsyncrc" echo "macro index,pager i$idnum 'source $accdir/$title.muttrc!;'" >> "$muttdir/personal.muttrc" ! grep "^source.*.muttrc" "$muttdir/personal.muttrc" >/dev/null && echo "source $accdir/$title.muttrc" >> "$muttdir/personal.muttrc" - if [ "$accounttype" = "offline" ]; then - trysync && finalize - sed -i "/IMAPAccount $title$/,/# End profile/d" "$mbsyncrc" - fi + trysync && finalize + [ "$accounttype" = "offline" ] && sed -i "/IMAPAccount $title$/,/# End profile/d" "$mbsyncrc" } getpass() { \