Skip to content

Commit

Permalink
XWIKI-20109: Notification headers for autoreplies
Browse files Browse the repository at this point in the history
    Added common headers to notification emails to prevent autoresponses from various emails autoreply

(cherry picked from commit a9b3cde)

Co-Authored-By: Simon Urli <[email protected]>
(cherry picked from commit d1b0438)
  • Loading branch information
the-glu authored and github-actions[bot] committed Jan 16, 2025
1 parent 530aee6 commit d548a40
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,8 @@ public MimeMessage next()
updateFactoryParameters(templateDocumentReference);
message = ExtendedMimeMessage.wrap(this.factory.createMessage(templateDocumentReference,
this.factoryParameters));
message.setHeader("Auto-Submitted", "auto-generated");
message.setHeader("X-Auto-Response-Suppress", "All");

List<EntityEvent> events = new ArrayList<>();
this.currentEvents.forEach(
Expand Down

0 comments on commit d548a40

Please sign in to comment.