mail icon indicating copy to clipboard operation
mail copied to clipboard

Writing am mail to a contact group should only use the preferred Mail-Address

Open MicKress opened this issue 2 years ago • 3 comments

Is your feature request related to a problem? Please describe.

Writing a mail to a contact group (using the NC mail client): all Mailaddresses of the contacts belonging to a contact group are taken.

Describe the solution you'd like

Only the preferred mail address of the contacts should be used. (like a distribution list)

Describe alternatives you've considered

No response

Additional context

No response

MicKress avatar Nov 17 '23 17:11 MicKress

Hi,

which mail app are you using?

With contact groups, we usually reference a feature in contacts.

Are you talking about the contact groups in contacts or a group in Nextcloud (that's usually something defined by an admin or via ldap).

For contact groups, I could not reproduce the described behavior.

kesselb avatar Nov 20 '23 16:11 kesselb

Hi, I'm using Nextcloud Mail App 3.45 and i'm talking about Contact groups, not user groups. It concerns contacts with several mail addresses.

There are two different ways: right-click in a contact group -> send e-Mail to contact group -> an external mail client is opened, only the preferred mail address (TYPE=pref in case of several mail addresses) is used. A user belonging to that contact group who has 4 mail addresses receives one mail on the preferred account.

If I write a mail using the Nextcloud Mail App (e.g. when I'm using a terminal), I can choose the contact group for "To", "Cc" or "Bcc". In this case all mail addresses of a contact are taken. A user belonging to that contact group who has for example 4 Mail addresses, receives mails on all 4 accounts.

Best regards Michael

MicKress avatar Dec 01 '23 10:12 MicKress

Thanks again @MicKress and sorry that it took almost a year to follow-up on this one 🙈

I can confirm the bug report.

All email addresses from a contact are added as recipient here:

https://github.com/nextcloud/mail/blob/6938fc9e52c49949c5f99e8c1e4edc80db0837fc/lib/Service/Group/ContactsGroupService.php#L94-L102

It was briefly discussed when implementing the feature https://github.com/nextcloud/mail/pull/2414 and I see how using all email addresses can be useful, but would also prefer to only use the first one.

In the long-run, we hopefully implement https://github.com/nextcloud/mail/issues/2723 to have more control about the recipients of a contact-group.

cc @ChristophWurst I've added the "1. to develop" label for now and wanted to touch base with you since you previously decided to proceed with using all email addresses and also to clarify the status as it was assigned to me and as To do on our board.

kesselb avatar Jun 06 '25 15:06 kesselb