Details
-
Bug
-
Status: Closed (View Workflow)
-
Minor
-
Resolution: Not A Defect
-
Red Hat Enterprise Linux Server release 7.8 (Maipo) 64b
OpenJDK 1.8.0_252-b09
Jenkins 2.222.3
email-ext plugin 2.69
Description
When a developer email address contains a dash (ex: compound name), the email address part between dash and @ is truncated. Then, the developer did not receive mail.
Example: john.doe-die@domain.com is truncated to john.doe@domain.com
We are calling plugin from a declarative pipeline with this code:
post { emailext recipientProviders: [ [$class: 'RequesterRecipientProvider'], [$class: 'DevelopersRecipientProvider'] ], subject: '$DEFAULT_SUBJECT', body: '$DEFAULT_CONTENT', attachLog: true, compressLog: true }
email-ext uses the Mailer.Userproperty class to get the configured email for the user (https://github.com/jenkinsci/email-ext-plugin/blob/960cb17bbca6f6261cba407ac92842296a9a1be6/src/main/java/hudson/plugins/emailext/EmailRecipientUtils.java#L109), these users can be created by the SCM when requested to get the list of changes. The Mailer.Userproperty will use a MailAddressResolver internally to get the email address for the user. There are various different implementations of MailAddressResolver (one of which is in the Active Directory plugin), but the first one that responds will be the email address that is used. Is this happening for all users, or for one user? What plugins do you have installed?