summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbwarsaw2002-01-06 06:20:47 +0000
committerbwarsaw2002-01-06 06:20:47 +0000
commit19d20e812ae3335c4e1fd10e28f10a513807912c (patch)
treec43ce7f5dd6966297336d50fca3c73811cda2003
parentf699202b0ea0316516f0d9472efbc1e3c5002c29 (diff)
downloadmailman-19d20e812ae3335c4e1fd10e28f10a513807912c.tar.gz
mailman-19d20e812ae3335c4e1fd10e28f10a513807912c.tar.zst
mailman-19d20e812ae3335c4e1fd10e28f10a513807912c.zip
HoldSubscription(), HoldUnsubscription(): Add MIME-Version: and
Content-Type: headers to the admin message we send out.
-rw-r--r--Mailman/ListAdmin.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Mailman/ListAdmin.py b/Mailman/ListAdmin.py
index 8752844a3..17b23a570 100644
--- a/Mailman/ListAdmin.py
+++ b/Mailman/ListAdmin.py
@@ -353,6 +353,9 @@ class ListAdmin:
# to avoid any useless bounce processing.
owneraddr = self.GetOwnerEmail()
msg = Message.UserNotification(owneraddr, owneraddr, subject, text)
+ msg['MIME-Version'] = '1.0'
+ msg.add_header('Content-Type', 'text/plain',
+ charset=Utils.GetCharSet(self.preferred_language))
msg.send(self, **{'tomoderators': 1})
def __handlesubscription(self, record, value, comment):
@@ -403,6 +406,9 @@ class ListAdmin:
# to avoid any useless bounce processing.
owneraddr = self.GetOwnerEmail()
msg = Message.UserNotification(owneraddr, owneraddr, subject, text)
+ msg['MIME-Version'] = '1.0'
+ msg.add_header('Content-Type', 'text/plain',
+ charset=Utils.GetCharSet(mlist.preferred_language))
msg.send(self, **{'tomoderators': 1})
def __handleunsubscription(self, record, value, comment):