Closed
Description
Is your feature request related to a problem? Please describe.
I've seen mails where the recipients address is not in the "To" or any other field of the email header, only in the "X-Original-To". As an example, the notification mails I receive from github. May be it occurs when a mail was sent only using bcc?
Describe the solution you'd like
I'd like to have the X-Original-To available like this:
$email->x_original_to
Describe alternatives you've considered
May be I've overseen something, but the only way I could find was to parse the headersRaw like so:
if (preg_match('/(X-Original-To:\s)(\S*@\S*)/', $email->headersRaw, $matches))
$xoriginalto = $matches[2];