Class GeneralMailScriptService

  • All Implemented Interfaces:
    org.xwiki.script.service.ScriptService

    @Component
    @Named("mail.general")
    @Singleton
    public class GeneralMailScriptService
    extends Object
    implements org.xwiki.script.service.ScriptService
    Access general mail APIs from scripts.
    Since:
    12.4RC1
    Version:
    $Id: e5565fa9cfc8a123fcd90f53aba11479a2edbe6d $
    • Constructor Detail

      • GeneralMailScriptService

        public GeneralMailScriptService()
    • Method Detail

      • shouldObfuscate

        public boolean shouldObfuscate()
        Returns:
        true when email addresses must be obfuscated and false otherwise. Defaults to false.
      • obfuscate

        public String obfuscate​(javax.mail.internet.InternetAddress emailAddress)
        Parameters:
        emailAddress - the email address to obfuscate
        Returns:
        the obfuscated email address (e.g. j...@doe.com for john@doe.com)