How can I suppress subsequent pipelines emails in Gitlab CI in case of a series of failed jobs?

[This is a duplicate of, where I’ll also post the solution if one exists/materializes]

I’ve got a pipeline that logs in and logs out off a web-application every 5 minutes to ensure that the apps backend works, the database is up… There occurred a problem that wasn’t even related to the app directly, and my boss was bombarded with email-notifications.

Is it possible to limit the emails that notify of a series of broken pipelines to only one, the first, and suppress all subsequent emails until the pipeline has been fixed?

It seems that the editor for “Pipelines emails” has limited functionality and doesn’t support this directly. However, this option exists with Jenkins CI, and I’m wondering if someone figured out a solution or a workaround to achieve this in Gitlab CI.

For details, please see the feature proposal: