summaryrefslogtreecommitdiff
path: root/mw
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2019-04-16 11:09:50 -0400
committerLuke Smith <luke@lukesmith.xyz>2019-04-16 11:09:50 -0400
commit401cbbd0024aa1a015a502c1f91e1bd34446e00c (patch)
tree6017188e89edfff753ae25d422934b4f89ceb333 /mw
parentd1e7f448df511feea45f3d38640ecc043576c987 (diff)
delete must match exact
Diffstat (limited to 'mw')
-rwxr-xr-xmw4
1 files changed, 2 insertions, 2 deletions
diff --git a/mw b/mw
index 1fa282a..766feb7 100755
--- a/mw
+++ b/mw
@@ -273,11 +273,11 @@ 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 "/IMAPAccount $title$/,/# End profile/d" "$mbsyncrc"
rm -rf "${accdir:?}/${title:?}" "$creddir/$title.gpg" "$accdir/$title.muttrc"
sed -i "/$title.muttrc/d" "$muttdir/personal.muttrc"
sed -i "/account $title/,/^\(\s*$\|account\)/d" "$HOME/.config/msmtp/config"
- confirm "delete the local mail repository as well?" && rm -rf "${maildir:?}/${title:?}"
+ #confirm "delete the local mail repository as well?" && rm -rf "${maildir:?}/${title:?}"
}
choosecron() { ! pgrep crond >/dev/null && echo "No cron manager running. Install/enable one and then select this option again." && return 1