lkosson / full-address-column

Thunderbird add-on to show full sender and recipient address column in message list
MIT License
39 stars 11 forks source link

No multiple email addresses in column 'Recipient (@)' #3

Closed ghost closed 3 years ago

ghost commented 3 years ago

Hello! I have a problem with multiple email addresses. The column 'Recipient (@)' lists only the first address if 'aHeader.recipients' contains more than one email addresses.

I checked the code in 'customcol.js' at const recipientColumnHandler and I solved the problem with something like that (just to give you an idea):

getAddress(aHeader) {
  const regex = /[^<]+(?=>)/g;
  let array = [...aHeader.recipients.matchAll(regex)];
  let recipientsText = array.join(', ');
  return recipientsText; 
}
lkosson commented 3 years ago

Thanks, I have updated the addon to show all recipients instead of just first one. New version should be available in a few hours, after it gets reviewed.