Skip to content

Add mail headers to simplify filtering#30

Open
sgallagher wants to merge 2 commits into
fedora-eln:mainfrom
sgallagher:email_headers
Open

Add mail headers to simplify filtering#30
sgallagher wants to merge 2 commits into
fedora-eln:mainfrom
sgallagher:email_headers

Conversation

@sgallagher

@sgallagher sgallagher commented Jun 8, 2026

Copy link
Copy Markdown
Member

Add headers argument to send_email()

This will enable us to add metadata that can be used for filtering the
emails received on the automation mailing list.

Signed-off-by: Stephen Gallagher sgallagh@redhat.com

email: Add custom header listing packages

Include a custom header "elnbuildsync-packages" that contains a
comma-separated list of all packages that failed in a batch. This will
make it easier for packagers to filter the automation mailing list.

Fixes: #3

Signed-off-by: Stephen Gallagher sgallagh@redhat.com

Remove accidental repetition in the image name

Signed-off-by: Stephen Gallagher sgallagh@redhat.com

@sgallagher sgallagher requested a review from bhoy-troy June 8, 2026 13:15
body="The ELNBuildSync build failed for the following requests: "
+ "\n".join(all_failures),
headers={
"elnbuildsync-packages": ", ".join(packages),

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FTR I was going to ask if this header should be "X-" prefixed, but discovered that syntax was deprecated by RFC6648. Perhaps this should be project-namespaced, however.

This will enable us to add metadata that can be used for filtering the
emails received on the automation mailing list.

Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
Include a custom header "elnbuildsync-packages" that contains a
comma-separated list of all packages that failed in a batch. This will
make it easier for packagers to filter the automation mailing list.

Fixes: fedora-eln#3

Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Failed build emails should include email headers to make filtering simpler

3 participants