On 5/21/20 7:52 PM, Alan So wrote:
Since the CC header remains unchanged if we test using "mailman inject", we may further check whether Mailman LMTP Runner change the CC header.
You are correct. If I post your test via email rather than mailman inject
, I see the issue. I'm working on figuring out why. (Sorry for
spamming you with test Ccs.)
I'm at a loss to explain why mailman inject
doesn't show this. I have
captured the queued message and the only differences I see between the
one from the lmtp runner and the one from inject is the one from lmtp
runner has an X-MailFrom: header and
'received_time': datetime.datetime(2020, 5, 22, 3, 45, 24, 532711),
'to_list': True,
and I even tried running mailman inject
with -m to_list=True
and it
still didn't fail.
However, if I take the qfile that dumps as
> $ bin/mailman qfile 1590119124.5909426+9a002936a59e194f70187405ac624173cbf470b5.pck
> [----- start pickle -----]
> <----- start object 1 ----->
> Received: by msapiro.net (Postfix, from userid 1000)
> id 60624340253; Thu, 21 May 2020 20:45:24 -0700 (PDT)
> From: mark@msapiro.net
> To: list@example.com
> CC: "ABC DEF
> (XYZ)" <mark@msapiro.net>
> Subject: testing please ignore
> Message-ID: <something_more@example.net>
> Date: Fri, 22 May 2020 09:53:58 +0800 (HKT)
> Message-ID-Hash: NDG3FHLPO35F2Y4YXFAKFIKDXAC6FHGM
> X-Message-ID-Hash: NDG3FHLPO35F2Y4YXFAKFIKDXAC6FHGM
> X-MailFrom: mark@msapiro.net
>
> hello
>
> <----- start object 2 ----->
> { '_parsemsg': False,
> 'listid': 'list.example.com',
> 'original_size': 326,
> 'received_time': datetime.datetime(2020, 5, 22, 3, 45, 24, 532711),
> 'to_list': True,
> 'version': 3}
> [----- end pickle -----]
and put it in the 'in' queue the received message from the list does contain
CC: XYZ <ABCDEF@msapiro.net>
Thus, the issue occurs downstream of lmtp runner. It will take more investigation to determine where.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan