Browse Source

don't readd same account. fix #558

tags/v3.1
Luke Smith 4 years ago
parent
commit
30c4647c98
No known key found for this signature in database GPG Key ID: 4C50B54A911F6252
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      bin/mw

+ 2
- 0
bin/mw View File

@@ -164,6 +164,8 @@ askinfo() { \
echo "\`$fulladdr\` is not a valid email address. Please retype the address:" echo "\`$fulladdr\` is not a valid email address. Please retype the address:"
read -r fulladdr read -r fulladdr
done done
grep -q "Channel\s*$fulladdr$" "$mbsyncrc" &&
{ echo "$fulladdr has already been added" && exit 1 ;}
{ [ -z "$imap" ] || [ -z "$smtp" ] ;} && parsedomains { [ -z "$imap" ] || [ -z "$smtp" ] ;} && parsedomains
[ -z "$imap" ] && echo "Give your email server's IMAP address (excluding the port number):" && [ -z "$imap" ] && echo "Give your email server's IMAP address (excluding the port number):" &&
read -r imap read -r imap


Loading…
Cancel
Save