mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-11-21 23:12:40 +00:00
feat(mail(web)): Templates folder for pre-defined drafts
To create a template, the user needs to: - define a mailbox as the Templates folder; - move a draft to this special folder. Fixes #4320 Fixes #5363
This commit is contained in:
1 parent
02b0a41567
commit
c986422a3d
25 files changed
+230
-9
No files matched your search
@@ -134,8 +134,10 @@ String.prototype.formatted = function() {
|
||||
return newString;
|
||||
};
|
||||
|
||||
String.prototype.isValidEmail = function() {
|
||||
var emailRE = /^([\w\!\#$\%\&\'\*\+\-\/\=\?\^\`{\|\}\~]+\.)*[\w\!\#$\%\&\'\*\+\-\/\=\?\^\`{\|\}\~]+@((((([a-z0-9]{1}[a-z0-9\-]{0,62}[a-z0-9]{1})|[a-z])\.)+[a-z]{2,})|(\d{1,3}\.){3}\d{1,3}(\:\d{1,5})?)$/i;
|
||||
String.prototype.isValidEmail = function(strict) {
|
||||
var emailRE = strict ?
|
||||
/^([\w\!\#$\%\&\'\*\+\-\/\=\?\^\`{\|\}\~]+\.)*[\w\!\#$\%\&\'\*\+\-\/\=\?\^\`{\|\}\~]+@((((([a-z0-9]{1}[a-z0-9\-]{0,62}[a-z0-9]{1})|[a-z])\.)+[a-z]{2,})|(\d{1,3}\.){3}\d{1,3}(\:\d{1,5})?)$/i : /([\w\!\#$\%\&\'\*\+\-\/\=\?\^\`{\|\}\~]+\.)*[\w\!\#$\%\&\'\*\+\-\/\=\?\^\`{\|\}\~]+@((((([a-z0-9]{1}[a-z0-9\-]{0,62}[a-z0-9]{1})|[a-z])\.)+[a-z]{2,})|(\d{1,3}\.){3}\d{1,3}(\:\d{1,5})?)/i;
|
||||
|
||||
return emailRE.test(this);
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user