[releng] Send mail via noreply gnome org, land a Date header



commit 181ffb15bb942639dfe0bfd73c6a06c4cd754a5a
Author: Andrea Veri <averi redhat com>
Date:   Wed Sep 7 16:45:28 2022 +0200

    Send mail via noreply gnome org, land a Date header

 tools/schedule/automail.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/tools/schedule/automail.py b/tools/schedule/automail.py
index c951854..3b4f03e 100755
--- a/tools/schedule/automail.py
+++ b/tools/schedule/automail.py
@@ -6,6 +6,7 @@ import smtplib
 from email.mime.text import MIMEText
 import io
 import textwrap
+import email.utils
 
 cat_task = set(('release', 'tarball'))
 
@@ -50,9 +51,10 @@ def mail_events(events):
     contents.seek(0)
     mime = MIMEText(contents.read())
     mime['Subject'] = subject
-    mime['From'] = 'Release Team <noreply gnome org>'
+    mime['From'] = 'GNOME Release Team <noreply gnome org>'
+    mime['Date'] = email.utils.formatdate()
     mime['To'] = mail
-    s.sendmail('accounts gnome org', [mail], mime.as_string())
+    s.sendmail('noreply gnome org', [mail], mime.as_string())
 
 
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]