summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbwarsaw2000-09-19 05:41:24 +0000
committerbwarsaw2000-09-19 05:41:24 +0000
commitefb48a01d45572e3d7242829f4114f115a319a31 (patch)
tree6042a47eaea29cbc8d6e074163adcc986050faf9
parent54a9e0cfb6afce75453e7e692055ec9264e79b20 (diff)
downloadmailman-efb48a01d45572e3d7242829f4114f115a319a31.tar.gz
mailman-efb48a01d45572e3d7242829f4114f115a319a31.tar.zst
mailman-efb48a01d45572e3d7242829f4114f115a319a31.zip
-rw-r--r--Mailman/Handlers/ToUsenet.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Mailman/Handlers/ToUsenet.py b/Mailman/Handlers/ToUsenet.py
index 47de36d91..ec84849c6 100644
--- a/Mailman/Handlers/ToUsenet.py
+++ b/Mailman/Handlers/ToUsenet.py
@@ -18,6 +18,7 @@
import sys
import os
+import time
import string
import re
import socket
@@ -103,9 +104,8 @@ def do_child(mlist, msg):
# Note: Need to be sure 2 messages aren't ever sent to the same
# list in the same process, since message ID's need to be unique.
# Could make the ID be mm.listname.postnum instead if that happens
- if msg.getheader('Message-ID') is None:
- msg.headers.append('Message-ID: <mm.%s.%s@%s>\n' %
- (time.time(), os.getpid(), mlist.host_name))
+ msg['Message-ID'] = '<mailman.%s.%s@%s>\n' % (
+ time.time(), os.getpid(), mlist.host_name)
if msg.getheader('Lines') is None:
msg.headers.append('Lines: %s\n' %
len(string.split(msg.body,"\n")))