summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcron/gate_news5
1 files changed, 3 insertions, 2 deletions
diff --git a/cron/gate_news b/cron/gate_news
index 4263e37ab..8d5cfa315 100755
--- a/cron/gate_news
+++ b/cron/gate_news
@@ -260,8 +260,9 @@ def poll_newsgroup(mlist, conn, first, last):
lines.append('')
msg = Message.OutgoingMessage(string.join(lines, '\n'))
msg.fromusenet = 1
- if not found_to:
- msg['To'] = mlist.GetListEmail()
+ if found_to:
+ msg['X-Originally-To'] = msg['To']
+ msg['To'] = mlist.GetListEmail()
# the list must be locked during posting
lockflag = mlist.Locked()
try: