From 2e53a67ad67f86a80f036b768a06ffd2b5dc05ff Mon Sep 17 00:00:00 2001
From: Pawel
Date: Wed, 3 Dec 2025 14:42:16 +0000
Subject: [PATCH] Stop automatic replies to emails
---
lib/GADS/Email.pm | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/lib/GADS/Email.pm b/lib/GADS/Email.pm
index 9c27121c8..f8cd1f531 100644
--- a/lib/GADS/Email.pm
+++ b/lib/GADS/Email.pm
@@ -84,10 +84,11 @@ sub send
my $content_type = @parts > 1 ? 'multipart/alternative' : $parts[0]->type;
my $msg = Mail::Message->build(
- Subject => $subject,
- From => $self->email_from,
- 'Content-Type' => $content_type,
- attach => \@parts,
+ Subject => $subject,
+ From => $self->email_from,
+ 'Content-Type' => $content_type,
+ 'X-Auto-Response-Suppress' => 'All',
+ attach => \@parts,
);
$msg->head->add('Reply-to' => $reply_to) if $reply_to;