elementary / elementary/mail

"Reply All" formats recipient list improperly (requires manually editing the list to send email)

Open
#992 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Vala
Stars
215
Forks
50
Avg merge
3h 11m
Merged PRs (30d)
1

Description

### What Happened?

Everytime I use the "reply all" function in Mail, the recipient list will be formatted in a way that people's names are separated from their email addresses with a comma. Thus, I need to manually fix the recipient list before being able to send the message, otherwise Mail interprets those separate names as invalid email addresses.

## More context
This happens when I am using my work email. This account includes a global directory in which every address is associated with a person in the format "Last name(s), First and Middle names".

To give a more concrete example since I cannot attach a screenshot without exposing any email addresses, let's assume I receive an email from Person 1, and Persons 2 and 3 were also copied in the email. Then, when I select "reply all", I get the following as recipients of my message (please note the quotes and commas, that is exactly what I get and it makes a difference):
`"Person 1 Last name, Person 1 First and Middle name(s)" , Person 2 Last name(s), person2@email.com, Person 3 Last name(s), person3@email.com`

In this situation, I cannot send the email without manually deleting "Person 2 Last name(s)" and "Person 3 Last name(s)" in the "to" field, because otherwise the app just assumes that those names are invalid email addresses (given that they are separated from their respective email addresses by a comma).

I assume the global directory thing with users being identified in the "Last name, First name" format might be part of the problem, but I do not have another account I can test this with.

P.S.: This is my first time ever submitting an issue report to a project, so please let me know if I am forgetting anything important.

### Steps to Reproduce

1 - Receive an email addressed at multiple people
2 - Hit "reply all"
3 - The "to" field will display the first recipient just fine, but every consecutive recipient will be separated into two recipients following the format `lastname, email@email.com`

### Expected Behavior

All email addresses are properly formatted in the "to" field, either by only including the actual email addresses, or by including them in the same format as the first recipient (with "" and <>).

### OS Version

7.x (Horus)

### Software Version

Latest release (I have run all updates)

### Log Output

_No response_

### Hardware Info

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.