浏览代码

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"


正在加载...
取消
保存