Prevent using localhost on auxiliary IMAP accounts

This commit is contained in:
Francis Lachapelle committed 2016-12-05 16:12:16 -05:00
1 parent 68ddcd7045
commit c663f7ab4c
4 files changed
+10 -1

No files matched your search

@@ -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";