Browse Source

fix cronjob removed on purge (#269)

tags/v3.1
mkomo 5 years ago
committed by Luke Smith
parent
commit
856eea6d71
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      bin/mw

+ 1
- 0
bin/mw View File

@@ -293,6 +293,7 @@ asktype() { while : ; do

purge() { confirm "delete all account data" || exit
rm -rf "$mbsyncrc" "$accdir" "$HOME/.config/msmtp" "$cachedir"
crontab -l | sed '/mailsync/d' | crontab - >/dev/null
echo "All configs and account settings have been purged."
sed -ibu "/\# mw-autogenerated/d" "$muttrc" ; rm -f "$muttrc"bu
}


Loading…
Cancel
Save