summaryrefslogtreecommitdiff
path: root/bin/mw
diff options
context:
space:
mode:
authormkomo <mkomodromos01@gmail.com>2019-08-12 21:13:06 +0300
committerLuke Smith <luke@lukesmith.xyz>2019-08-12 14:13:06 -0400
commit856eea6d71a0a32cb9bea4ab704dc41f7619c18f (patch)
tree0a1c4b9b9278b6cb91467373e4f7f248b2344e80 /bin/mw
parenta244df88ef87b13166ad6643a699fe17485804e7 (diff)
fix cronjob removed on purge (#269)
Diffstat (limited to 'bin/mw')
-rwxr-xr-xbin/mw1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/mw b/bin/mw
index 2499318..8712bf0 100755
--- a/bin/mw
+++ b/bin/mw
@@ -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
}