From 401cbbd0024aa1a015a502c1f91e1bd34446e00c Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Tue, 16 Apr 2019 11:09:50 -0400 Subject: [PATCH] delete must match exact --- bin/muttimage | 4 ++-- mw | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/muttimage b/bin/muttimage index b67de83..ca46d4d 100755 --- a/bin/muttimage +++ b/bin/muttimage @@ -1,8 +1,8 @@ #! /bin/sh - + #### Determine size of Terminal height=`stty size | awk 'BEGIN {FS = " "} {print $1;}'` width=`stty size | awk 'BEGIN {FS = " "} {print $2;}'` - + ### Display Image / offset with mutt bar echo -e "2;3;\n0;1;210;20;$((width*7-250));$((height*14-100));0;0;0;0;$1\n4;\n3;" | /usr/lib/w3m/w3mimgdisplay & 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