summaryrefslogtreecommitdiff
path: root/mutt-wizard.sh
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2018-03-18 22:43:50 -0700
committerLuke Smith <luke@lukesmith.xyz>2018-03-18 22:43:50 -0700
commitf7ce15afaa18816a3fb460b11dff81087fbb82f6 (patch)
tree666a223ec42c0321d389f90c7d3c443791f9709f /mutt-wizard.sh
parent7f5d077b72166b7fec7f5c0880c246daeae4b672 (diff)
detect script readded
Diffstat (limited to 'mutt-wizard.sh')
-rwxr-xr-xmutt-wizard.sh20
1 files changed, 11 insertions, 9 deletions
diff --git a/mutt-wizard.sh b/mutt-wizard.sh
index 295470c..f8c8482 100755
--- a/mutt-wizard.sh
+++ b/mutt-wizard.sh
@@ -234,14 +234,15 @@ wipe () { rm $HOME/.offlineimaprc
while : ;
do
choice=$(dialog --title "Luke's mutt/offlineIMAP wizard" --nocancel \
- --menu "What would you like to do?" 14 45 7 \
+ --menu "What would you like to do?" 15 45 8 \
0 "List all email accounts configured." \
1 "Add an email account." \
2 "Enable/disable autosync." \
- 3 "Change an account's password." \
- 4 "Remove an email account." \
- 5 "Remove all email accounts." \
- 6 "Exit this wizard." \
+ 3 "Redetect mailboxes." \
+ 4 "Change an account's password." \
+ 5 "Remove an email account." \
+ 6 "Remove all email accounts." \
+ 7 "Exit this wizard." \
3>&1 1>&2 2>&3 3>&1 )
case $choice in
@@ -250,9 +251,10 @@ $(grep ~/.offlineimaprc -e "^accounts =" | sed 's/accounts =//g')
" 6 60;;
1) chooseAdd;;
2) chooseSync;;
-3) inventory && for i in $userchoices; do changePassword $i ; done;;
-4) inventory && for i in $userchoices; do removeAccount $i ; done;;
-5) (dialog --defaultno --title "Wipe all custom neomutt/offlineIMAP settings?" --yesno "Would you like to wipe all of the mutt/offlineIMAP settings generated by the system?" 6 60 && wipe) ;;
-6) clear && break ;;
+3) detectWarning && chooseDetect;;
+4) inventory && for i in $userchoices; do changePassword $i ; done;;
+5) inventory && for i in $userchoices; do removeAccount $i ; done;;
+6) (dialog --defaultno --title "Wipe all custom neomutt/offlineIMAP settings?" --yesno "Would you like to wipe all of the mutt/offlineIMAP settings generated by the system?" 6 60 && wipe) ;;
+7) clear && break ;;
esac
done