Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate recipients in the "To" and "Cc" fields #8912

Closed
Krotyara86 opened this issue Feb 8, 2023 · 7 comments
Closed

Duplicate recipients in the "To" and "Cc" fields #8912

Krotyara86 opened this issue Feb 8, 2023 · 7 comments

Comments

@Krotyara86
Copy link

Hello.
After updating to version 1.6.1, when clicking "Reply to all" in the "Sent Items" folder, the recipients are duplicated in the "Cc" field.

@alecpl
Copy link
Member

alecpl commented Feb 19, 2023

We'll need more details.

Does it happen with all plugins disabled? Precise steps to reproduce the issue, please. What are the email headers and what is the result?

@Krotyara86
Copy link
Author

All plugins are disabled.

  1. Open the Sent folder.
  2. I choose any message, I click Reply to all.
  3. The message reply window opens, with the same recipient in the Cc field as in the To field.

In a sent message, the To and Cc headers are filled in the same way.

@alecpl
Copy link
Member

alecpl commented Feb 26, 2023

I'm unable to reproduce. What the sent message has in To and Cc? Which address is in your identities?

@johndoh
Copy link
Contributor

johndoh commented Feb 26, 2023

I think its this line https://github.com/roundcube/roundcubemail/blob/master/program/include/rcmail_sendmail.php#L1129

*) Message is in your Sent box
*) Message is from your default identity to a an external address
*) message is To a single recipient
*) hit Reply All

If the message has To and Cc recipients you get both the To and Cc recipients in the Cc box on the compose screen.

It only happens with messages in the Sent folder

@Krotyara86
Copy link
Author

Yes, that's right. There can only be multiple recipients, and they will all appear in the Cc field.

If you comment out the specified "if" block, then the problem does not appear.

Which address is in your identities?

For example test@test.com

What the sent message has in To and Cc?

Initially, the message contains only the recipient in the To field, for example test2@domain.net

When I click Reply All, in the message creation window, in the To and Cc fields the address test2@domain.net

@alecpl
Copy link
Member

alecpl commented Feb 26, 2023

Ok, this is caused by the cleanup in 825bcf5. We have to bring back $message->recipients. It was making sure there are no duplicates.

@alecpl
Copy link
Member

alecpl commented Feb 26, 2023

Fixed.

@alecpl alecpl closed this as completed Feb 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants