Details
-
New Feature
-
Resolution: Fixed
-
Major
-
11.10
-
None
Description
For ex this forces UI code to do the following currently (and incidentally exposing internal implementation details):
#set ($mailConfigDoc = $xwiki.getDocument('Mail.MailConfig')) #set ($generalMailConfigObject = $mailConfigDoc.getObject('Mail.GeneralMailConfigClass')) #set ($obfuscate = $generalMailConfigObject.getValue('obfuscate')) #if ("$!obfuscate" == '') ## We handle backward compatibility by also looking in the XWikiPreferences xobject #set ($obfuscate = $xwiki.getXWikiPreferenceAsInt('obfuscateEmailAddresses', 0)) #end
Attachments
Issue Links
- relates to
-
XWIKI-17299 Deprecate $services.mailsender and $services.mailstorage in favor of $services.mail.sender and $services.mail.storage
- Closed
-
XWIKI-17312 Add API to obfuscate email addresses
- Closed
-
XWIKI-17305 Be able to turn on Email obfuscation for the whole farm at once
- Open