delete account fix
This commit is contained in:
parent
10f2847675
commit
7e189bd263
2
mw
2
mw
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user