diff options
author | Luke Smith <luke@lukesmith.xyz> | 2019-04-19 18:19:28 -0400 |
---|---|---|
committer | Luke Smith <luke@lukesmith.xyz> | 2019-04-19 18:19:28 -0400 |
commit | 36eaa070752647f54d6db49e43bcec979cdb6521 (patch) | |
tree | 015c2dafcf3b8605a8e7bcbe4e95f0f9e3befc89 /mw | |
parent | 6f9b638288842608e864f0b72c5b13db31eeb7dd (diff) |
ignore IMAPAccount in profile
Diffstat (limited to 'mw')
-rwxr-xr-x | mw | 10 |
1 files changed, 3 insertions, 7 deletions
@@ -26,17 +26,14 @@ port $sport from $login user $login passwordeval \"pass mutt-wizard-$title\"" -mbsync_profile="IMAPAccount $title +mbsync_profile="IMAPStore $title-remote Host $imap -User $login Port $iport +User $login PassCmd \"pass mutt-wizard-$title\" SSLType IMAPS CertificateFile /etc/ssl/certs/ca-certificates.crt -IMAPStore $title-remote -Account $title - MaildirStore $title-local Subfolders Verbatim Path ~/.local/share/mail/$title/ @@ -47,7 +44,6 @@ Expunge Both Master :$title-remote: Slave :$title-local: Patterns * !\"[Gmail]/All Mail\" - Create Both SyncState * # End profile" @@ -169,7 +165,7 @@ EOF echo "macro index,pager i$idnum '<sync-mailbox><enter-command>source $accdir/$title.muttrc<enter><change-folder>!<enter>;<check-stats>'" >> "$muttdir/personal.muttrc" ! grep "^source.*.muttrc" "$muttdir/personal.muttrc" >/dev/null && echo "source $accdir/$title.muttrc" >> "$muttdir/personal.muttrc" trysync && finalize - [ "$accounttype" = "offline" ] || sed -i "/IMAPAccount $title$/,/# End profile/d" "$mbsyncrc" + [ "$accounttype" = "offline" ] || sed -i "/IMAPStore $title$/,/# End profile/d" "$mbsyncrc" } getpass() { pass rm -f "mutt-wizard-$title" 2>/dev/null ; pass insert "mutt-wizard-$title" ;} |