Add Auto-Submitted field
authorAndrew Engelbrecht <sudoman@ninthfloor.org>
Tue, 19 Jul 2016 18:03:16 +0000 (14:03 -0400)
committerAndrew Engelbrecht <sudoman@ninthfloor.org>
Tue, 19 Jul 2016 18:03:16 +0000 (14:03 -0400)
Hopefully this will break response loops with user-created auto-response
systems.

edward

diff --git a/edward b/edward
index e6c74042e6620492273fccd7bdafd331736b6838..ed47182fbe4165dccffd3f37f40fd7db42ce91f6 100755 (executable)
--- a/edward
+++ b/edward
@@ -1355,6 +1355,8 @@ def generate_encrypted_mime (plaintext, email_to, email_from, email_subject,
     else:
         message_mime = plaintext_mime
 
+    message_mime['Auto-Submitted'] = 'auto-replied'
+
     message_mime['To'] = email_to
     message_mime['From'] = email_from
     message_mime['Subject'] = email_subject