detect script readded
This commit is contained in:
		| @@ -234,14 +234,15 @@ wipe () { rm $HOME/.offlineimaprc | |||||||
| while : ; | while : ; | ||||||
| 	do | 	do | ||||||
| choice=$(dialog --title "Luke's mutt/offlineIMAP wizard" --nocancel \ | 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." \ | 	0 "List all email accounts configured." \ | ||||||
| 	1 "Add an email account." \ | 	1 "Add an email account." \ | ||||||
| 	2 "Enable/disable autosync." \ | 	2 "Enable/disable autosync." \ | ||||||
| 	3 "Change an account's password." \ | 	3 "Redetect mailboxes." \ | ||||||
| 	4 "Remove an email account." \ | 	4 "Change an account's password." \ | ||||||
| 	5 "Remove all email accounts." \ | 	5 "Remove an email account." \ | ||||||
| 	6 "Exit this wizard." \ | 	6 "Remove all email accounts." \ | ||||||
|  | 	7 "Exit this wizard." \ | ||||||
| 	 3>&1 1>&2 2>&3 3>&1 ) | 	 3>&1 1>&2 2>&3 3>&1 ) | ||||||
|  |  | ||||||
| case $choice in | case $choice in | ||||||
| @@ -250,9 +251,10 @@ $(grep ~/.offlineimaprc -e "^accounts =" | sed 's/accounts =//g') | |||||||
| " 6 60;; | " 6 60;; | ||||||
| 1) chooseAdd;; | 1) chooseAdd;; | ||||||
| 2) chooseSync;; | 2) chooseSync;; | ||||||
| 3) inventory && for i in $userchoices; do changePassword $i ; done;; | 3) detectWarning && chooseDetect;; | ||||||
| 4) inventory && for i in $userchoices; do removeAccount $i ; done;; | 4) inventory && for i in $userchoices; do changePassword $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) ;; | 5) inventory && for i in $userchoices; do removeAccount $i ; done;; | ||||||
| 6) clear && break ;; | 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 | esac | ||||||
| done | done | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user