summaryrefslogtreecommitdiff
path: root/cron
diff options
context:
space:
mode:
authorbwarsaw2000-02-09 19:51:36 +0000
committerbwarsaw2000-02-09 19:51:36 +0000
commit1d904503e0bdbc787904f332055b5cc7dfeab374 (patch)
tree1fd580567e062cde7a27f33fdf7de11eb29412b5 /cron
parent176e4a7f87ac11e76f5cbeb9d072c0025a0893fc (diff)
downloadmailman-1d904503e0bdbc787904f332055b5cc7dfeab374.tar.gz
mailman-1d904503e0bdbc787904f332055b5cc7dfeab374.tar.zst
mailman-1d904503e0bdbc787904f332055b5cc7dfeab374.zip
poll_newsgroup(): If a To: header is found in the original message, it
is moved to X-Originally-To:. In all cases, To: is set to the list's email address. This resolves PR#172.
Diffstat (limited to 'cron')
-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: