Package hudson.plugins.emailext
Class EmailRecipientUtils
java.lang.Object
hudson.plugins.emailext.EmailRecipientUtils
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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) static Set<jakarta.mail.internet.InternetAddress>
convertRecipientString
(String recipientList, EnvVars envVars) static Set<jakarta.mail.internet.InternetAddress>
convertRecipientString
(String recipientList, EnvVars envVars, int type) static String
getRecipientList
(ExtendedEmailPublisherContext context, String recipients) static String
getUserConfiguredEmail
(User user) static boolean
isAllowedDomain
(String userName, TaskListener listener) static boolean
isExcludedRecipient
(User user, TaskListener listener) static boolean
isExcludedRecipient
(String userName, TaskListener listener) validateFormRecipientList
(String recipientList)
-
Field Details
-
TO
public static final int TO- See Also:
-
CC
public static final int CC- See Also:
-
BCC
public static final int BCC- See Also:
-
-
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
-
validateFormRecipientList
-
isAllowedDomain
-
isExcludedRecipient
-
isExcludedRecipient
-
addAddressesFromRecipientList
-
getRecipientList
public static String getRecipientList(ExtendedEmailPublisherContext context, String recipients) throws jakarta.mail.MessagingException - Throws:
jakarta.mail.MessagingException
-