(feat) now possible to specify which domains you can forward your mails to

This commit is contained in:
Ludovic Marcotte
2019-08-15 12:48:53 -04:00
parent f7f9cb29e0
commit 04f91b8948
8 changed files with 39 additions and 3 deletions

View File

@@ -347,6 +347,12 @@
Dialog.alert(l('Error'), l("You are not allowed to forward your messages to an internal email address."));
sendForm = false;
}
else if ($window.forwardConstraints == 2 &&
$window.forwardConstraintsDomains.length > 0 &&
$window.forwardConstraintsDomains.indexOf(domain) < 0) {
Dialog.alert(l('Error'), l("You are not allowed to forward your messages to this domain:") + " " + domain);
sendForm = false;
}
}
}