summaryrefslogtreecommitdiff
path: root/mw
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2019-02-22 07:40:14 -0500
committerLuke Smith <luke@lukesmith.xyz>2019-02-22 07:40:14 -0500
commit02e418e923714f06d4013b7a4ea04eed173104d6 (patch)
treef6c1539ed5e308a3850a86171b7329f883e31f3a /mw
parent6a59424facf157f5b88eec3989a3b046a79181ce (diff)
new opts
Diffstat (limited to 'mw')
-rwxr-xr-xmw11
1 files changed, 8 insertions, 3 deletions
diff --git a/mw b/mw
index 10e1810..4af2f5b 100755
--- a/mw
+++ b/mw
@@ -273,14 +273,19 @@ main() { \
\033[31m1 Add an email account\033[0m
2 Autodetect mailboxes
3 Change an account's password
- 4 Change GPG key pair used for encryption
+ 4 Remove an account
+ 5 Change GPG key pair used for encryption
+ 6 Delete all account data
0 Exit
Input a number to continue or press ctrl-c.\\n"
read -r choice
case "$choice" in
1) addaccount ;;
- 2) pick delete yes && finalize "$title" ;;
- 4) askgpg ;;
+ 2) pick finalize && finalize "$title" ;;
+ 2) break ;;
+ 4) pick delete yes && delete "$title" ;;
+ 5) askgpg ;;
+ 6) printf "Are you \033[31;1mreally\033[0m sure you want to delete all email accounts?\\n" && read -r input && echo "$input" | grep -i "y\(es\)*" >/dev/null && wipe && printf "Account data purged." ;;
0) break ;;
*) printf "Invalid input.\\n"
esac