in reply to Re^2: rfc822 type attachment (.msg ) file is not getting recognized.
in thread rfc822 type attachment (.msg ) file is not getting recognized.

There are weird newlines / empty lines your example post. Are these also in your input data? If so, that is likely a cause for the attachment not conforming to the MIME specification.

  • Comment on Re^3: rfc822 type attachment (.msg ) file is not getting recognized.

Replies are listed 'Best First'.
Re^4: rfc822 type attachment (.msg ) file is not getting recognized.
by Anonymous Monk on May 10, 2022 at 11:27 UTC

    Hi Corion, update:

    Upon using $parser->extract_nested_messages(0); option, code seems extracting the rfc822 attachment (.msg) file but that's not in binary format, it seems to be in base64 encoded .msg file.

    This file doesn't get open by the outlook for some reason.

    Any input on this would be appreciated!

    Thank you.

Re^4: rfc822 type attachment (.msg ) file is not getting recognized.
by Anonymous Monk on May 10, 2022 at 07:04 UTC

    Hi Corion, Thank you for the revert and pointing out the root cause.

    Yes, this is how input which is getting written in the file looks like.

    With the same format all other attached files seems to be getting recognized except this rfc-822 type.

    Apart from weird newlines/empty lines, could absence of filename in the attachment and description headers, cause this?

    Thank you.