Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-69681

E-mails friendly names are atomized.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • email-ext-plugin
    • None

      Dear email-ext-plugin team,

       

      I think there's a bug in plugin's code here:

      EmailRecipientUtils.java

       

      To send message only to one recipient using friendly names it's necessary to add comma at the end of the address.

      Without this 'workaround' address is splitted into chunks as 'space' is treated as separator.

      Adding recipients from project recipient list
      Analyzing: Name,Surname<n.Surname@mymail.com>
      Looking for: Name
          starting at: 0
          firstFoundIdx: 0
          firstFoundIdx-substring: Name,Surname<n.Surname@mymail.com>
          => found type: 0
      Looking for: Surname <n.Surname@mymail.com>
          starting at: 8
          firstFoundIdx: 8
          firstFoundIdx-substring: Surname<n.Surname@mymail.com>
          => found type: 0
      Analyzing: Name,Surname<n.Surname@mymail.com>
      Looking for: Name
          starting at: 0
          firstFoundIdx: 0
          firstFoundIdx-substring: Name,Surname<n.Surname@mymail.com>
          => found type: 0
      Looking for: Surname <n.Surname@mymail.com>
          starting at: 8
          firstFoundIdx: 8
          firstFoundIdx-substring: Surname<n.Surname@mymail.com>
          => found type: 0
      Analyzing: Name,Surname<n.Surname@mymail.com>
      Looking for: Name
          starting at: 0
          firstFoundIdx: 0
          firstFoundIdx-substring: Name,Surname<n.Surname@mymail.com>
          => found type: 0
      Looking for: Surname <n.Surname@mymail.com>
          starting at: 8
          firstFoundIdx: 8
          firstFoundIdx-substring: Surname<n.Surname@mymail.com>
          => found type: 0
      Adding recipients from trigger recipient list 

      and following log shows the situation with the comma after the e-mail address:

      Analyzing: Name Surname <n.Surname@mymail.com>,
      Looking for: Name Surname <n.Surname@mymail.com>
          starting at: 0
          firstFoundIdx: 0
          firstFoundIdx-substring: Name Surname <n.Surname@mymail.com>,
          => found type: 0
      Analyzing: Name Surname <n.Surname@mymail.com>,
      Looking for: Name Surname <n.Surname@mymail.com>
          starting at: 0
          firstFoundIdx: 0
          firstFoundIdx-substring: Name Surname <n.Surname@mymail.com>,
          => found type: 0
      Analyzing: Name Surname <n.Surname@mymail.com>,
      Looking for: Name Surname <n.Surname@mymail.com>
          starting at: 0
          firstFoundIdx: 0
          firstFoundIdx-substring: Name Surname <n.Surname@mymail.com>,
          => found type: 0
      Adding recipients from trigger recipient list 

      I've created a pull requested.

       

            slide_o_mix Alex Earl
            jarzyn Andrzej Jarzynka
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: