summaryrefslogtreecommitdiff
path: root/mw
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2019-04-19 19:02:50 -0400
committerLuke Smith <luke@lukesmith.xyz>2019-04-19 19:02:50 -0400
commit7e189bd2632ae88ddd1a6b98bcd860e8152a72a9 (patch)
tree35a363685bb622d9935c165ef5e22b7a15c8eec7 /mw
parent10f2847675a3d6e1904926b71056a9bd7465920f (diff)
delete account fix
Diffstat (limited to 'mw')
-rwxr-xr-xmw2
1 files changed, 1 insertions, 1 deletions
diff --git a/mw b/mw
index 4e95baf..7da1c01 100755
--- a/mw
+++ b/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"