Class EmailRecipientUtils

java.lang.Object
hudson.plugins.emailext.EmailRecipientUtils

public class EmailRecipientUtils extends Object
  • Field Details

  • Constructor Details

    • EmailRecipientUtils

      public EmailRecipientUtils()
  • Method Details

    • convertRecipientString

      public static Set<jakarta.mail.internet.InternetAddress> convertRecipientString(String recipientList, EnvVars envVars) throws jakarta.mail.internet.AddressException, UnsupportedEncodingException
      Throws:
      jakarta.mail.internet.AddressException
      UnsupportedEncodingException
    • convertRecipientString

      public static Set<jakarta.mail.internet.InternetAddress> convertRecipientString(String recipientList, EnvVars envVars, int type) throws jakarta.mail.internet.AddressException, UnsupportedEncodingException
      Throws:
      jakarta.mail.internet.AddressException
      UnsupportedEncodingException
    • getUserConfiguredEmail

      public static String getUserConfiguredEmail(User user)
    • validateFormRecipientList

      public FormValidation validateFormRecipientList(String recipientList)
    • isAllowedDomain

      public static boolean isAllowedDomain(String userName, TaskListener listener)
    • isExcludedRecipient

      public static boolean isExcludedRecipient(String userName, TaskListener listener)
    • isExcludedRecipient

      public static boolean isExcludedRecipient(User user, TaskListener listener)
    • addAddressesFromRecipientList

      public static void addAddressesFromRecipientList(Set<jakarta.mail.internet.InternetAddress> to, Set<jakarta.mail.internet.InternetAddress> cc, Set<jakarta.mail.internet.InternetAddress> bcc, String recipientList, EnvVars envVars, TaskListener listener)
    • getRecipientList

      public static String getRecipientList(ExtendedEmailPublisherContext context, String recipients) throws jakarta.mail.MessagingException
      Throws:
      jakarta.mail.MessagingException