Prevent using localhost on auxiliary IMAP accounts

This commit is contained in:
Francis Lachapelle
2016-12-05 16:12:16 -05:00
parent 68ddcd7045
commit c663f7ab4c
4 changed files with 10 additions and 1 deletions
@@ -18,6 +18,7 @@
vm.customFromIsReadonly = customFromIsReadonly;
vm.cancel = cancel;
vm.save = save;
vm.hostnameRE = accountId > 0 ? /^(?!(127\.0\.0\.1|localhost(?:\.localdomain)?)$)/ : /./;
if (!vm.account.encryption)
vm.account.encryption = "none";