[GH-ISSUE #1422] 🌟 [EPIC] Comprehensive review of to/cc/bcc when reply/reply-to-all/forward in all possible contexts #651

Open
opened 2026-02-25 21:35:35 +03:00 by kerem · 9 comments
Owner

Originally created by @marclaporte on GitHub (Jan 10, 2025).
Original GitHub issue: https://github.com/cypht-org/cypht/issues/1422

Originally assigned to: @IrAlfred on GitHub.

Sometimes, I click forward or reply to all and the list of emails in to or cc is not what I expected.

Related:

We could then write tests and code it.

Thanks!

Originally created by @marclaporte on GitHub (Jan 10, 2025). Original GitHub issue: https://github.com/cypht-org/cypht/issues/1422 Originally assigned to: @IrAlfred on GitHub. Sometimes, I click forward or reply to all and the list of emails in to or cc is not what I expected. Related: - https://github.com/cypht-org/cypht/issues/384#issuecomment-1182483833 - https://github.com/cypht-org/cypht/pull/608 - https://github.com/cypht-org/cypht/issues/706 Does anyone know of a comprehensive list of how it should be done? Maybe @nekohayo or @dumblob ? We could then write tests and code it. Thanks!
Author
Owner

@marclaporte commented on GitHub (Jan 24, 2025):

An example of an issue:

I have an email b@example.org which is delivered/forwarded to account d@example.org (b@example.org is not a real mail account and thus, can't send emails)

Say I receive a message:

From: a@example.com
To: b@example.org
reply-to: c@example.com

A cypht reply replies to c@example.com (This is OK)

A cypht "reply to all" generates:
to: a@example.com, c@example.com
cc: b@example.org
from: d@example.org

Problems:
1- I am replying to a@example.com and c@example.com but the email sender specifically asked to use the "reply to" (c@example.com)
2- I am CCing b@example.org which is myself, so will be redirected to d@example.org

<!-- gh-comment-id:2611372503 --> @marclaporte commented on GitHub (Jan 24, 2025): An example of an issue: I have an email b@example.org which is delivered/forwarded to account d@example.org (b@example.org is not a real mail account and thus, can't send emails) Say I receive a message: From: a@example.com To: b@example.org reply-to: c@example.com A cypht reply replies to c@example.com (This is OK) A cypht "reply to all" generates: to: a@example.com, c@example.com cc: b@example.org from: d@example.org Problems: 1- I am replying to a@example.com and c@example.com but the email sender specifically asked to use the "reply to" (c@example.com) 2- I am CCing b@example.org which is myself, so will be redirected to d@example.org
Author
Owner

@marclaporte commented on GitHub (Apr 18, 2025):

@nekohayo @dumblob

@IrAlfred identified over 20 permutations:
https://github.com/cypht-org/cypht/wiki/Comprehensive-review-of-to-cc-bcc-when-reply-reply%E2%80%90to%E2%80%90all-forward-in-all-possible-contexts

<!-- gh-comment-id:2814959740 --> @marclaporte commented on GitHub (Apr 18, 2025): @nekohayo @dumblob @IrAlfred identified over 20 permutations: https://github.com/cypht-org/cypht/wiki/Comprehensive-review-of-to-cc-bcc-when-reply-reply%E2%80%90to%E2%80%90all-forward-in-all-possible-contexts
Author
Owner

@marclaporte commented on GitHub (Jun 3, 2025):

@IrAlfred

I love what you did at https://github.com/cypht-org/cypht/wiki/Comprehensive-review-of-to-cc-bcc-when-reply-reply%E2%80%90to%E2%80%90all-forward-in-all-possible-contexts

Can you imagine a way to add tests so we can be sure bugs don't come back after we fix them all?

<!-- gh-comment-id:2936545199 --> @marclaporte commented on GitHub (Jun 3, 2025): @IrAlfred I love what you did at https://github.com/cypht-org/cypht/wiki/Comprehensive-review-of-to-cc-bcc-when-reply-reply%E2%80%90to%E2%80%90all-forward-in-all-possible-contexts Can you imagine a way to add tests so we can be sure bugs don't come back after we fix them all?
Author
Owner

@marclaporte commented on GitHub (Jul 1, 2025):

@IrAlfred I received an email today and there was no "to". So I was in BCC along with many others.

<!-- gh-comment-id:3024774779 --> @marclaporte commented on GitHub (Jul 1, 2025): @IrAlfred I received an email today and there was no "to". So I was in BCC along with many others.
Author
Owner

@IrAlfred commented on GitHub (Jul 2, 2025):

@IrAlfred I received an email today and there was no "to". So I was in BCC along with many others.

Yes, that seems to be the current setup.

<!-- gh-comment-id:3027966910 --> @IrAlfred commented on GitHub (Jul 2, 2025): > [@IrAlfred](https://github.com/IrAlfred) I received an email today and there was no "to". So I was in BCC along with many others. Yes, that seems to be the current setup.
Author
Owner

@IrAlfred commented on GitHub (Jul 2, 2025):

On Cypht standalone master branch I'm seeing this in the email headers

To	undisclosed-recipients:;

when all the recipients are in BCC

<!-- gh-comment-id:3027982088 --> @IrAlfred commented on GitHub (Jul 2, 2025): On Cypht standalone master branch I'm seeing this in the email headers ``` To undisclosed-recipients:; ``` when all the recipients are in BCC
Author
Owner

@marclaporte commented on GitHub (Jul 2, 2025):

Great. So please add that in the scenario list so we can cover in testing,

<!-- gh-comment-id:3028159854 --> @marclaporte commented on GitHub (Jul 2, 2025): Great. So please add that in the scenario list so we can cover in testing,
Author
Owner
<!-- gh-comment-id:3227723513 --> @marclaporte commented on GitHub (Aug 27, 2025): 71 permutations so far. wow! https://github.com/cypht-org/cypht/wiki/Comprehensive-review-of-to-cc-bcc-when-reply-reply%E2%80%90to%E2%80%90all-forward-in-all-possible-contexts
Author
Owner

@marclaporte commented on GitHub (Oct 3, 2025):

Related: https://github.com/nextcloud/mail/issues/11772

<!-- gh-comment-id:3365240878 --> @marclaporte commented on GitHub (Oct 3, 2025): Related: https://github.com/nextcloud/mail/issues/11772
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/cypht#651
No description provided.