E-mails friendly names are atomized.

This issue is archived. You can view it, but you can't modify it. Learn more

      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.

       

            Assignee:
            Alex Earl
            Reporter:
            Andrzej Jarzynka
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: