Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-17295

Add API and script service to find out if email addresses should be obfuscated or not

    XMLWordPrintable

Details

    • New Feature
    • Resolution: Fixed
    • Major
    • 12.4-rc-1
    • 11.10
    • Mail
    • None
    • Unit
    • Unknown

    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

          Activity

            People

              vmassol Vincent Massol
              vmassol Vincent Massol
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: