changeset 5129:6fd215462090

add a Auto-Submitted: auto-generated header to generated mails
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 06 Sep 2009 14:25:38 +0200
parents fcdee4a8809c
children 287faf79876f
files MoinMoin/mail/sendmail.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/mail/sendmail.py	Sun Sep 06 14:10:56 2009 +0200
+++ b/MoinMoin/mail/sendmail.py	Sun Sep 06 14:25:38 2009 +0200
@@ -106,6 +106,8 @@
     msg['Date'] = formatdate()
     msg['Message-ID'] = make_msgid()
     msg['Subject'] = Header(subject, charset)
+    # See RFC 3834 section 5:
+    msg['Auto-Submitted'] = 'auto-generated'
 
     if cfg.mail_sendmail:
         # Set the BCC.  This will be stripped later by sendmail.