Skip to content

Commit 723e9cc

Browse files
committed
update
1 parent 5b723a9 commit 723e9cc

1 file changed

Lines changed: 17 additions & 7 deletions

File tree

Mailman/Message.py

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -299,12 +299,17 @@ def _enqueue(self, mlist, **_kws):
299299
# Not imported at module scope to avoid import loop
300300
from Mailman.Queue.sbcache import get_switchboard
301301
virginq = get_switchboard(mm_cfg.VIRGINQUEUE_DIR)
302+
# Create msgdata dictionary with the parameters
303+
msgdata = {
304+
'nodecorate': 1,
305+
'reduced_list_headers': 1,
306+
}
307+
# Add any additional keyword arguments to msgdata
308+
msgdata.update(_kws)
302309
# The message metadata better have a `recip' attribute
303310
virginq.enqueue(self,
304311
listname = mlist.internal_name(),
305-
nodecorate = 1,
306-
reduced_list_headers = 1,
307-
**_kws)
312+
msgdata = msgdata)
308313

309314

310315
class OwnerNotification(UserNotification):
@@ -334,10 +339,15 @@ def _enqueue(self, mlist, **_kws):
334339
# Not imported at module scope to avoid import loop
335340
from Mailman.Queue.sbcache import get_switchboard
336341
virginq = get_switchboard(mm_cfg.VIRGINQUEUE_DIR)
342+
# Create msgdata dictionary with the parameters
343+
msgdata = {
344+
'nodecorate': 1,
345+
'reduced_list_headers': 1,
346+
'envsender': self._sender,
347+
}
348+
# Add any additional keyword arguments to msgdata
349+
msgdata.update(_kws)
337350
# The message metadata better have a `recip' attribute
338351
virginq.enqueue(self,
339352
listname = mlist.internal_name(),
340-
nodecorate = 1,
341-
reduced_list_headers = 1,
342-
envsender = self._sender,
343-
**_kws)
353+
msgdata = msgdata)

0 commit comments

Comments
 (0)