瀏覽代碼

delete account fix

tags/v3.1
Luke Smith 5 年之前
父節點
當前提交
7e189bd263
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: 4C50B54A911F6252
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      mw

+ 1
- 1
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…
取消
儲存