delete account fix

This commit is contained in:
Luke Smith 2019-04-19 19:02:50 -04:00
parent 10f2847675
commit 7e189bd263
No known key found for this signature in database
GPG Key ID: 4C50B54A911F6252

2
mw
View File

@ -236,7 +236,7 @@ pick() { numbered="$(ls $accdir/*muttrc | sed "s/.*\///;s/\..*//" | nl)"
[ -z "$title" ] && printf "Invalid response." && return 1
return 0 ;}
delete() { sed -i "/IMAPAccount $title$/,/# End profile/d" "$mbsyncrc"
delete() { sed -i "/IMAPStore $title-remote$/,/# End profile/d" "$mbsyncrc"
rm -rf "${accdir:?}/${title:?}" "$accdir/$title.muttrc"
sed -i "/$title.muttrc/d" "$muttdir/personal.muttrc"
sed -i "/account $title/,/^\(\s*$\|account\)/d" "$HOME/.config/msmtp/config"