group request membership mail with too long list of "To:"
Summary
when a user requests group membership, an email is sent to all masters (see also #24086 (moved)) and owners of the group,
with their emails in the To:
field.
depending on your workflow there might be many users in this set, resulting in overly excessive email headers.
Steps to reproduce
Create a group with 10 owner and 10 master user. As a third user request access.
What is the current bug behavior?
each owner (and each master) gets an email with 20 recipients in the To
field.
What is the expected correct behavior?
trim down the To
field to a single entry and send emails via Bcc
.
Output of checks
this is on a GitLab-CE instance {"version":"10.3.4","revision":"28c6ff43848"}
.
i don't have admin access to the instance in question, so i cannot give much more info.
Possible fixes
using Bcc
to send emails.
also, if #24086 (moved) gets fixed the list might be considerably shorter (but not in all cases; e.g. we have a group policy that adds all core developers as owner
and the rest as master
)