Commit graph

2 commits

Author SHA1 Message Date
Sean McGivern
eddc9e41a6 Only set Auto-Submitted header once
The emails on push feature reuses the same email object, to avoid the expensive
work of generating the email body.

This interceptor would previously set multiple values for the same header, as
that's the mail gem's default behaviour when called with the same header more
than once.

We don't want to change the emails on push service (although it's the only place
where this happens), but fixing the interceptor is just as sensible anyway.
2017-10-30 13:50:19 +00:00
Semyon Pupkov
a89e973626 Set Auto-Submitted: auto-generated header to emails
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/20305
2017-02-15 23:15:48 +05:00