diff options
author | Luke Smith <luke@lukesmith.xyz> | 2020-12-24 20:40:17 -0500 |
---|---|---|
committer | Luke Smith <luke@lukesmith.xyz> | 2020-12-24 20:40:17 -0500 |
commit | 30c4647c98e2e04b86ef6189bf7974b1a3bc20bd (patch) | |
tree | d53225f72f040e5e043f98d042660384f2a57c44 | |
parent | 456d02d1ee0ab196ac256b91c9ac86a01f3c0bb6 (diff) |
don't readd same account. fix #558
-rwxr-xr-x | bin/mw | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -164,6 +164,8 @@ askinfo() { \ echo "\`$fulladdr\` is not a valid email address. Please retype the address:" read -r fulladdr done + grep -q "Channel\s*$fulladdr$" "$mbsyncrc" && + { echo "$fulladdr has already been added" && exit 1 ;} { [ -z "$imap" ] || [ -z "$smtp" ] ;} && parsedomains [ -z "$imap" ] && echo "Give your email server's IMAP address (excluding the port number):" && read -r imap |