Skip to content

Commit 708e2cd

Browse files
committed
update
1 parent 723e9cc commit 708e2cd

11 files changed

Lines changed: 21 additions & 21 deletions

File tree

Mailman/ListAdmin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ def __handlepost(self, record, value, comment, preserve, forward, addr):
481481
# Stick the message back in the incoming queue for further
482482
# processing.
483483
inq = get_switchboard(mm_cfg.INQUEUE_DIR)
484-
inq.enqueue(msg, _metadata=msgdata)
484+
inq.enqueue(msg, msgdata=msgdata)
485485
elif value == mm_cfg.REJECT:
486486
# Rejected
487487
rejection = 'Refused'

Mailman/MTA/Manual.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,4 +136,4 @@ def remove(mlist, cgi=False):
136136
sfp.getvalue(), mm_cfg.DEFAULT_SERVER_LANGUAGE)
137137
msg['Date'] = email.utils.formatdate(localtime=1)
138138
outq = get_switchboard(mm_cfg.OUTQUEUE_DIR)
139-
outq.enqueue(msg, recips=[siteowner], nodecorate=1)
139+
outq.enqueue(msg, msgdata={'recips': [siteowner], 'nodecorate': 1})

Mailman/Post.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def inject(listname, msg, recips=None, qdir=None):
3333
}
3434
if recips:
3535
kws['recips'] = recips
36-
queue.enqueue(msg, **kws)
36+
queue.enqueue(msg, msgdata=kws)
3737

3838

3939

Mailman/Queue/NewsRunner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def _oneloop(self):
128128
except Exception as e:
129129
mailman_log('error', 'NewsRunner error: %s', str(e))
130130
# Put the message back in the queue
131-
self._switchboard.enqueue(msg)
131+
self._switchboard.enqueue(msg, msgdata={})
132132
return 1
133133

134134
def _dispose(self, mlist, msg, msgdata):

scripts/bounces

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def main():
5454
# is a good example; if the limit is hit, the proc is SIGKILL'd giving us
5555
# no chance to save the message.
5656
bounceq = get_switchboard(mm_cfg.BOUNCEQUEUE_DIR)
57-
bounceq.enqueue(sys.stdin.read(), listname=listname, _plaintext=1)
57+
bounceq.enqueue(sys.stdin.read(), msgdata={'listname': listname, '_plaintext': 1})
5858

5959

6060

scripts/confirm

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,7 @@ def main():
5454
# is a good example; if the limit is hit, the proc is SIGKILL'd giving us
5555
# no chance to save the message.
5656
cmdq = get_switchboard(mm_cfg.CMDQUEUE_DIR)
57-
cmdq.enqueue(sys.stdin.read(), listname=listname, toconfirm=1,
58-
_plaintext=1)
57+
cmdq.enqueue(sys.stdin.read(), msgdata={'listname': listname, 'toconfirm': 1, '_plaintext': 1})
5958

6059

6160

scripts/join

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def main():
5454
# is a good example; if the limit is hit, the proc is SIGKILL'd giving us
5555
# no chance to save the message.
5656
cmdq = get_switchboard(mm_cfg.CMDQUEUE_DIR)
57-
cmdq.enqueue(sys.stdin.read(), listname=listname, tojoin=1, _plaintext=1)
57+
cmdq.enqueue(sys.stdin.read(), msgdata={'listname': listname, 'tojoin': 1, '_plaintext': 1})
5858

5959

6060

scripts/leave

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ from Mailman.Logging.Utils import LogStdErr
3737
LogStdErr('error', 'leave')
3838

3939

40-
4140
def main():
4241
try:
4342
listname = sys.argv[1]
@@ -54,9 +53,8 @@ def main():
5453
# is a good example; if the limit is hit, the proc is SIGKILL'd giving us
5554
# no chance to save the message.
5655
cmdq = get_switchboard(mm_cfg.CMDQUEUE_DIR)
57-
cmdq.enqueue(sys.stdin.read(), listname=listname, toleave=1, _plaintext=1)
56+
cmdq.enqueue(sys.stdin.read(), msgdata={'listname': listname, 'toleave': 1, '_plaintext': 1})
5857

5958

60-
6159
if __name__ == '__main__':
6260
main()

scripts/owner

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,13 @@ def main():
5656
# the purpose of delivering to the list owners.
5757
inq = get_switchboard(mm_cfg.INQUEUE_DIR)
5858
inq.enqueue(sys.stdin.read(),
59-
listname=listname,
60-
_plaintext=1,
61-
envsender=Utils.get_site_email(extra='bounces'),
62-
pipeline=mm_cfg.OWNER_PIPELINE,
63-
toowner=1)
59+
msgdata={
60+
'listname': listname,
61+
'_plaintext': 1,
62+
'envsender': Utils.get_site_email(extra='bounces'),
63+
'pipeline': mm_cfg.OWNER_PIPELINE,
64+
'toowner': 1
65+
})
6466

6567

6668

scripts/post

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,9 @@ def main():
7373
# no chance to save the message.
7474
inq = get_switchboard(mm_cfg.INQUEUE_DIR)
7575
qfile = inq.enqueue(msgtext,
76-
listname=listname,
77-
tolist=1, _plaintext=1)
76+
msgdata={'listname': listname,
77+
'tolist': 1,
78+
'_plaintext': 1})
7879
# Log the queue file information
7980
mailman_log('post', 'message queued to %s, qfile: %s, full path: %s',
8081
mm_cfg.INQUEUE_DIR, qfile, os.path.join(mm_cfg.INQUEUE_DIR, qfile))

0 commit comments

Comments
 (0)