mutt-wizard

fork of Luke Smiths mutt-wizard
git clone git://git.jakekoroman.com/mutt-wizard
Log | Files | Refs | README | LICENSE

commit baba4c6a74f663efc662e3ffd1facba1989008c0
parent a56dcc8fa66f2aac48ccd9fab4ce8199ca71d48d
Author: Luke Smith <luke@lukesmith.xyz>
Date:   Thu,  4 Oct 2018 16:04:27 -0400

cron test temporarily removed

Diffstat:
Mmutt-wizard.sh | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git 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;;