Commit fb940c1c authored by Barry Warsaw's avatar Barry Warsaw

The delivery agent requires that the message object have a .original_size

attribute.  Add this for UserNotifications.
parent 39153393
......@@ -158,6 +158,7 @@ message is sent to the user in order to verify the registered address.
>>> dump_msgdata(qdata)
_parsemsg : False
nodecorate : True
original_size : ...
recipients : [u'[email protected]']
reduced_list_headers: True
version : 3
......
......@@ -299,6 +299,7 @@ The message can be rejected, meaning it is bounced back to the sender.
_parsemsg : False
listname : [email protected]
nodecorate : True
original_size : ...
recipients : [u'[email protected]']
reduced_list_headers: True
version : 3
......@@ -404,6 +405,7 @@ moderators.
_parsemsg : False
listname : [email protected]
nodecorate : True
original_size : ...
recipients : [u'[email protected]']
reduced_list_headers: True
version : 3
......@@ -474,6 +476,7 @@ queue when the message is held.
_parsemsg : False
listname : [email protected]
nodecorate : True
original_size : ...
recipients : [u'[email protected]']
reduced_list_headers: True
tomoderators : True
......@@ -529,6 +532,7 @@ subscriber.
_parsemsg : False
listname : [email protected]
nodecorate : True
original_size : ...
recipients : [u'[email protected]']
reduced_list_headers: True
version : 3
......@@ -573,6 +577,7 @@ subscription and the fact that they may need to approve it.
_parsemsg : False
listname : [email protected]
nodecorate : True
original_size : ...
recipients : [u'[email protected]']
reduced_list_headers: True
tomoderators : True
......@@ -646,6 +651,7 @@ The welcome message is sent to the person who just subscribed.
_parsemsg : False
listname : [email protected]
nodecorate : True
original_size : ...
recipients : [u'[email protected]']
reduced_list_headers: True
verp : False
......@@ -752,6 +758,7 @@ unsubscription holds can send the list's moderators an immediate notification.
_parsemsg : False
listname : [email protected]
nodecorate : True
original_size : ...
recipients : [u'[email protected]']
reduced_list_headers: True
tomoderators : True
......@@ -810,6 +817,7 @@ and the person remains a member of the mailing list.
_parsemsg : False
listname : [email protected]
nodecorate : True
original_size : ...
recipients : [u'[email protected]']
reduced_list_headers: True
version : 3
......@@ -865,6 +873,7 @@ The goodbye message...
_parsemsg : False
listname : [email protected]
nodecorate : True
original_size : ...
recipients : [u'[email protected]']
reduced_list_headers: True
verp : False
......
......@@ -207,6 +207,7 @@ class UserNotification(Message):
recipients=self.recips,
nodecorate=True,
reduced_list_headers=True,
original_size=len(self.as_string()),
)
if mlist is not None:
enqueue_kws['listname'] = mlist.fqdn_listname
......
......@@ -49,6 +49,7 @@ response.
_parsemsg : False
listname : [email protected]
nodecorate : True
original_size : ...
recipients : [u'[email protected]']
reduced_list_headers: True
version : 3
......@@ -137,6 +138,7 @@ header is ignored.
_parsemsg : False
listname : [email protected]
nodecorate : True
original_size : ...
recipients : [u'[email protected]']
reduced_list_headers: True
version : 3
......
......@@ -58,10 +58,14 @@ And now the response is in the virgin queue.
<BLANKLINE>
- Done.
<BLANKLINE>
>>> sorted(item.msgdata.items())
[..., ('listname', u'[email protected]'), ...,
('recipients', [u'[email protected]']),
...]
>>> dump_msgdata(item.msgdata)
_parsemsg : False
listname : [email protected]
nodecorate : True
original_size : 532
recipients : [u'[email protected]']
reduced_list_headers: True
version : ...
A command in the body
......
......@@ -46,7 +46,6 @@ from mailman.utilities.mailbox import Mailbox
STARTUP_WAIT = datetime.timedelta(seconds=5)
log = logging.getLogger('mailman.debug')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment