summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2018-10-04 16:04:27 -0400
committerLuke Smith <luke@lukesmith.xyz>2018-10-04 16:04:27 -0400
commitbaba4c6a74f663efc662e3ffd1facba1989008c0 (patch)
tree3d509bd2e2332bdee59295537a173ad0de8d2397
parenta56dcc8fa66f2aac48ccd9fab4ce8199ca71d48d (diff)
cron test temporarily removed
-rwxr-xr-xmutt-wizard.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/mutt-wizard.sh b/mutt-wizard.sh
index 12dfb4c..a7376b1 100755
--- a/mutt-wizard.sh
+++ b/mutt-wizard.sh
@@ -13,7 +13,6 @@ createMailboxes() { \
grep "^ " | sed -e "s/\//./g;s/(.*//g;s/^ //g" > "$tmpdir"/lognew
while read box; do mkdir -p "$HOME/.mail/$1/$box"; done <"$tmpdir"/lognew ;}
-chooseSync() { (cat /var/run/crond.pid && testSync) || dialog --msgbox "No cronjob manager detected. Please install one and return to enable automatic mailsyncing" 10 60 ;}
testSync() { (crontab -l | grep mailsync.sh && removeSync) || addSync ;}
addSync() { min=$(dialog --inputbox "How many minutes should be between mail syncs?" 8 60 3>&1 1>&2 2>&3 3>&-)
@@ -263,7 +262,7 @@ case $choice in
$(grep ~/.offlineimaprc -e "^accounts =" | sed 's/accounts =//g')
" 6 60;;
1) chooseAdd;;
-2) chooseSync;;
+2) testSync;;
3) detectWarning && chooseDetect;;
4) inventory && for i in $userchoices; do changePassword $i ; done;;
5) inventory && for i in $userchoices; do removeAccount $i ; done;;