zbateson / mail-mime-parser

An email parser written in PHP
https://mail-mime-parser.org/
BSD 2-Clause "Simplified" License
442 stars 56 forks source link

ReceivedHeader no value in By #162

Closed mariuszkrzaczkowski closed 1 year ago

mariuszkrzaczkowski commented 3 years ago
Received: from xcv.gurbuzsrc.com ([69.81.93.69])
    by mail.yetiforce.com with esmtp (Exim 4.94)
    (envelope-from <xxcv@gurbuzsrc.com>)
    id 1kfCyx-0002Zp-BY
    for vbc@yetiforce.com; Wed, 18 Nov 2020 03:14:03 +0100
FromName: xcv.gurbuzsrc.com
FromHostname: 
FromAddress: 69.81.93.69
ByName: 
ByHostname: 
ByAddress: 
with: esmtp
getComments: Exim 4.94 | envelope-from 

how to fix it ?

zbateson commented 3 years ago

Hmmm, from what I can tell from my comments 'getByName' should return mail.yetiforce.com, and at first glance this looks like a bug. I'll have to investigate further, thanks for reporting.

zbateson commented 1 year ago

Sorry for the delay, not sure if something was fixed since the 2.0 release, but this seems to be working now (added a test to confirm)