Browse Source

delete account fix

tags/v3.1
Luke Smith 5 years ago
parent
commit
7e189bd263
No known key found for this signature in database GPG Key ID: 4C50B54A911F6252
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      mw

+ 1
- 1
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"


Loading…
Cancel
Save