mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-06 00:45:09 +00:00
See ChangeLog
Monotone-Parent: 247bc51241f490e20ac9abc386e95d4198cefbaf Monotone-Revision: 8bbf9c70304e5cb8320d6acb300955b814d1ff0c Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2012-07-24T15:17:38
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2012-07-24 Francis Lachapelle <flachapelle@inverse.ca>
|
||||
|
||||
* UI/WebServerResources/UIxPreferences.js (savePreferences):
|
||||
validate the email address of the sender mail and reply-to fields.
|
||||
|
||||
2012-07-23 Jean Raby <jraby@inverse.ca>
|
||||
* debian*/sogo.logrotate:
|
||||
drop distro specific log rotate scripts
|
||||
|
||||
@@ -167,6 +167,9 @@
|
||||
"Signature" = "Signature";
|
||||
"Please enter your signature below:" = "Please enter your signature below:";
|
||||
|
||||
"Please specify a valid sender address." = "Please specify a valid sender address.";
|
||||
"Please specify a valid reply-to address." = "Please specify a valid reply-to address.";
|
||||
|
||||
/* Additional Parameters */
|
||||
"Additional Parameters" = "Additional Parameters";
|
||||
|
||||
|
||||
@@ -17,6 +17,16 @@ function savePreferences(sender) {
|
||||
serializeContactsCategories();
|
||||
}
|
||||
|
||||
if (mailCustomFromEnabled && !emailRE.test($("email").value)) {
|
||||
showAlertDialog(_("Please specify a valid sender address."));
|
||||
sendForm = false;
|
||||
}
|
||||
|
||||
if (!emailRE.test($("replyTo").value)) {
|
||||
showAlertDialog(_("Please specify a valid reply-to address."));
|
||||
sendForm = false;
|
||||
}
|
||||
|
||||
if ($("dayStartTime")) {
|
||||
var start = $("dayStartTime");
|
||||
var selectedStart = parseInt(start.options[start.selectedIndex].value);
|
||||
@@ -63,10 +73,10 @@ function savePreferences(sender) {
|
||||
$("sieveFilters").setValue(Object.toJSON(jsonFilters));
|
||||
}
|
||||
|
||||
saveMailAccounts();
|
||||
|
||||
if (sendForm)
|
||||
if (sendForm) {
|
||||
saveMailAccounts();
|
||||
$("mainForm").submit();
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user