Skip to content

[watcher] Message-ID reused in emails generated with foreach parameter #52513

@immon

Description

@immon

Elasticsearch version (bin/elasticsearch --version): reported in 7.5

Description of the problem including expected versus actual behavior:

When Watcher's email action is run multiple times thanks to foreach parameter, then all generated email messages use the same Message-ID header.

RFC2392 states that Message-ID should be unique:
Both message-id and content-id are required to be globally unique. That is, no two different messages will ever have the same Message-ID addr-spec;

A similar issue was fixed in the past #30112 by adding action_id to Message-ID. With foreach it's not enough since we have one action but generate multiple email messages.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions