cjsmall
2021-01-12 01:29:07 UTC
I'm running mutt 1.13.2 on an Xubuntu 20.04 system.
I have problems with certain base64-encoded emails. I've noticed that they often originate on MacOS machines. This one I'm discussing appears to have been generated in MacOutlook. From the header:
user-agent: Microsoft-MacOutlook/16.44.20121301
When I try to view the message in mutt, I just see the raw encoded body. When I press v and look at the attachments, mutt doesn't see any. this is what's reported on the attachment screen:
I 1 <no description> [text/plain, 7bits, 2.7M]
Something is ill-formed. When I save the entire email and run munpack on it, the eleven embed images are unpacked, but the text and html sections are not. Here is what munpack reports:
munpack: warning: Premature EOF
tempdesc.txt: File exists
image001.png (image/png)
image002.png (image/png)
munpack: warning: Premature EOF
image003.png (image/png)
image004.png (image/png)
image005.png (image/png)
image006.png (image/png)
munpack: warning: Premature EOF
image007.png (image/png)
munpack: warning: Premature EOF
image008.png (image/png)
image009.png (image/png)
image010.png (image/png)
image011.jpg (image/jpeg)
munpack: warning: Premature EOF
I'm no expert in mail format so I could use some help determining what's going on. Below is a representation of the email. I have replaced big sections with [[comments]] but left the Content-Type: blocks for examination. When you see a [[base64 comment] sitting directly above the --014_* closing line or with a blank line between, this is just how it appears in the message body. I suspect the missing blank lines are what's responsible for the "Premature EOF" warnings above.
Any ideas what's wrong with the message and why mutt and munpack cannot see the first two blocks? If I knew what was wrong, I might be able to sent my messages through a pre-delivery filter and fix it. Thanks for any insights.
Message:
[[Normal Email Header]]
--_014_38F8AFA1CFE745588061C7E41F3F7246fantiniusacom_
Content-Type: multipart/alternative;
boundary="_000_38F8AFA1CFE745588061C7E41F3F7246fantiniusacom_"
--_000_38F8AFA1CFE745588061C7E41F3F7246fantiniusacom_
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
[[Base64 encoded text]]
--_000_38F8AFA1CFE745588061C7E41F3F7246fantiniusacom_
Content-Type: text/html; charset="utf-8"
Content-ID: <***@eurprd04.prod.outlook.com>
Content-Transfer-Encoding: base64
[[Base64 encoded html]]
--_000_38F8AFA1CFE745588061C7E41F3F7246fantiniusacom_--
--_014_38F8AFA1CFE745588061C7E41F3F7246fantiniusacom_
Content-Type: image/png; name="image001.png"
Content-Description: image001.png
Content-Disposition: inline; filename="image001.png"; size=5563;
creation-date="Mon, 11 Jan 2021 20:01:50 GMT";
modification-date="Mon, 11 Jan 2021 20:01:50 GMT"
Content-ID: <***@01D6E82A.AFD83160>
Content-Transfer-Encoding: base64
[[Base64 encoded image]]
--_014_38F8AFA1CFE745588061C7E41F3F7246fantiniusacom_
Content-Type: image/png; name="image002.png"
Content-Description: image002.png
Content-Disposition: inline; filename="image002.png"; size=1883;
creation-date="Mon, 11 Jan 2021 20:01:51 GMT";
modification-date="Mon, 11 Jan 2021 20:01:51 GMT"
Content-ID: <***@01D6E82A.AFD83160>
Content-Transfer-Encoding: base64
[[Base64 encoded image]]
--_014_38F8AFA1CFE745588061C7E41F3F7246fantiniusacom_
Content-Type: image/png; name="image003.png"
Content-Description: image003.png
Content-Disposition: inline; filename="image003.png"; size=1824;
creation-date="Mon, 11 Jan 2021 20:01:51 GMT";
modification-date="Mon, 11 Jan 2021 20:01:51 GMT"
Content-ID: <***@01D6E82A.AFD83160>
Content-Transfer-Encoding: base64
[[Base64 encoded image]]
--_014_38F8AFA1CFE745588061C7E41F3F7246fantiniusacom_
Content-Type: image/png; name="image004.png"
Content-Description: image004.png
Content-Disposition: inline; filename="image004.png"; size=2070;
creation-date="Mon, 11 Jan 2021 20:01:51 GMT";
modification-date="Mon, 11 Jan 2021 20:01:51 GMT"
Content-ID: <***@01D6E82A.AFD83160>
Content-Transfer-Encoding: base64
[[Base64 encoded image]]
--_014_38F8AFA1CFE745588061C7E41F3F7246fantiniusacom_
Content-Type: image/png; name="image005.png"
Content-Description: image005.png
Content-Disposition: inline; filename="image005.png"; size=1671;
creation-date="Mon, 11 Jan 2021 20:01:51 GMT";
modification-date="Mon, 11 Jan 2021 20:01:51 GMT"
Content-ID: <***@01D6E82A.AFD83160>
Content-Transfer-Encoding: base64
[[Base64 encoded image]]
--_014_38F8AFA1CFE745588061C7E41F3F7246fantiniusacom_
Content-Type: image/png; name="image006.png"
Content-Description: image006.png
Content-Disposition: inline; filename="image006.png"; size=5570;
creation-date="Mon, 11 Jan 2021 20:01:51 GMT";
modification-date="Mon, 11 Jan 2021 20:01:51 GMT"
Content-ID: <***@01D6E82A.AFD83160>
Content-Transfer-Encoding: base64
[[Base64 encoded image]]
--_014_38F8AFA1CFE745588061C7E41F3F7246fantiniusacom_
Content-Type: image/png; name="image007.png"
Content-Description: image007.png
Content-Disposition: inline; filename="image007.png"; size=1892;
creation-date="Mon, 11 Jan 2021 20:01:51 GMT";
modification-date="Mon, 11 Jan 2021 20:01:51 GMT"
Content-ID: <***@01D6E82A.AFD83160>
Content-Transfer-Encoding: base64
[[Base64 encoded image]]
--_014_38F8AFA1CFE745588061C7E41F3F7246fantiniusacom_
Content-Type: image/png; name="image008.png"
Content-Description: image008.png
Content-Disposition: inline; filename="image008.png"; size=1833;
creation-date="Mon, 11 Jan 2021 20:01:51 GMT";
modification-date="Mon, 11 Jan 2021 20:01:51 GMT"
Content-ID: <***@01D6E82A.AFD83160>
Content-Transfer-Encoding: base64
[[Base64 encoded image]]
--_014_38F8AFA1CFE745588061C7E41F3F7246fantiniusacom_
Content-Type: image/png; name="image009.png"
Content-Description: image009.png
Content-Disposition: inline; filename="image009.png"; size=2079;
creation-date="Mon, 11 Jan 2021 20:01:51 GMT";
modification-date="Mon, 11 Jan 2021 20:01:51 GMT"
Content-ID: <***@01D6E82A.AFD83160>
Content-Transfer-Encoding: base64
[[Base64 encoded image]]
--_014_38F8AFA1CFE745588061C7E41F3F7246fantiniusacom_
Content-Type: image/png; name="image010.png"
Content-Description: image010.png
Content-Disposition: inline; filename="image010.png"; size=1680;
creation-date="Mon, 11 Jan 2021 20:01:51 GMT";
modification-date="Mon, 11 Jan 2021 20:01:51 GMT"
Content-ID: <***@01D6E82A.AFD83160>
Content-Transfer-Encoding: base64
[[Base64 encoded image]]
--_014_38F8AFA1CFE745588061C7E41F3F7246fantiniusacom_
Content-Type: image/jpeg; name="image011.jpg"
Content-Description: image011.jpg
Content-Disposition: inline; filename="image011.jpg"; size=2067743;
creation-date="Mon, 11 Jan 2021 20:01:51 GMT";
modification-date="Mon, 11 Jan 2021 20:01:52 GMT"
Content-ID: <***@01D6E82A.AFD83160>
Content-Transfer-Encoding: base64
[[Base64 encoded image]]
--_014_38F8AFA1CFE745588061C7E41F3F7246fantiniusacom_--
I have problems with certain base64-encoded emails. I've noticed that they often originate on MacOS machines. This one I'm discussing appears to have been generated in MacOutlook. From the header:
user-agent: Microsoft-MacOutlook/16.44.20121301
When I try to view the message in mutt, I just see the raw encoded body. When I press v and look at the attachments, mutt doesn't see any. this is what's reported on the attachment screen:
I 1 <no description> [text/plain, 7bits, 2.7M]
Something is ill-formed. When I save the entire email and run munpack on it, the eleven embed images are unpacked, but the text and html sections are not. Here is what munpack reports:
munpack: warning: Premature EOF
tempdesc.txt: File exists
image001.png (image/png)
image002.png (image/png)
munpack: warning: Premature EOF
image003.png (image/png)
image004.png (image/png)
image005.png (image/png)
image006.png (image/png)
munpack: warning: Premature EOF
image007.png (image/png)
munpack: warning: Premature EOF
image008.png (image/png)
image009.png (image/png)
image010.png (image/png)
image011.jpg (image/jpeg)
munpack: warning: Premature EOF
I'm no expert in mail format so I could use some help determining what's going on. Below is a representation of the email. I have replaced big sections with [[comments]] but left the Content-Type: blocks for examination. When you see a [[base64 comment] sitting directly above the --014_* closing line or with a blank line between, this is just how it appears in the message body. I suspect the missing blank lines are what's responsible for the "Premature EOF" warnings above.
Any ideas what's wrong with the message and why mutt and munpack cannot see the first two blocks? If I knew what was wrong, I might be able to sent my messages through a pre-delivery filter and fix it. Thanks for any insights.
Message:
[[Normal Email Header]]
--_014_38F8AFA1CFE745588061C7E41F3F7246fantiniusacom_
Content-Type: multipart/alternative;
boundary="_000_38F8AFA1CFE745588061C7E41F3F7246fantiniusacom_"
--_000_38F8AFA1CFE745588061C7E41F3F7246fantiniusacom_
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
[[Base64 encoded text]]
--_000_38F8AFA1CFE745588061C7E41F3F7246fantiniusacom_
Content-Type: text/html; charset="utf-8"
Content-ID: <***@eurprd04.prod.outlook.com>
Content-Transfer-Encoding: base64
[[Base64 encoded html]]
--_000_38F8AFA1CFE745588061C7E41F3F7246fantiniusacom_--
--_014_38F8AFA1CFE745588061C7E41F3F7246fantiniusacom_
Content-Type: image/png; name="image001.png"
Content-Description: image001.png
Content-Disposition: inline; filename="image001.png"; size=5563;
creation-date="Mon, 11 Jan 2021 20:01:50 GMT";
modification-date="Mon, 11 Jan 2021 20:01:50 GMT"
Content-ID: <***@01D6E82A.AFD83160>
Content-Transfer-Encoding: base64
[[Base64 encoded image]]
--_014_38F8AFA1CFE745588061C7E41F3F7246fantiniusacom_
Content-Type: image/png; name="image002.png"
Content-Description: image002.png
Content-Disposition: inline; filename="image002.png"; size=1883;
creation-date="Mon, 11 Jan 2021 20:01:51 GMT";
modification-date="Mon, 11 Jan 2021 20:01:51 GMT"
Content-ID: <***@01D6E82A.AFD83160>
Content-Transfer-Encoding: base64
[[Base64 encoded image]]
--_014_38F8AFA1CFE745588061C7E41F3F7246fantiniusacom_
Content-Type: image/png; name="image003.png"
Content-Description: image003.png
Content-Disposition: inline; filename="image003.png"; size=1824;
creation-date="Mon, 11 Jan 2021 20:01:51 GMT";
modification-date="Mon, 11 Jan 2021 20:01:51 GMT"
Content-ID: <***@01D6E82A.AFD83160>
Content-Transfer-Encoding: base64
[[Base64 encoded image]]
--_014_38F8AFA1CFE745588061C7E41F3F7246fantiniusacom_
Content-Type: image/png; name="image004.png"
Content-Description: image004.png
Content-Disposition: inline; filename="image004.png"; size=2070;
creation-date="Mon, 11 Jan 2021 20:01:51 GMT";
modification-date="Mon, 11 Jan 2021 20:01:51 GMT"
Content-ID: <***@01D6E82A.AFD83160>
Content-Transfer-Encoding: base64
[[Base64 encoded image]]
--_014_38F8AFA1CFE745588061C7E41F3F7246fantiniusacom_
Content-Type: image/png; name="image005.png"
Content-Description: image005.png
Content-Disposition: inline; filename="image005.png"; size=1671;
creation-date="Mon, 11 Jan 2021 20:01:51 GMT";
modification-date="Mon, 11 Jan 2021 20:01:51 GMT"
Content-ID: <***@01D6E82A.AFD83160>
Content-Transfer-Encoding: base64
[[Base64 encoded image]]
--_014_38F8AFA1CFE745588061C7E41F3F7246fantiniusacom_
Content-Type: image/png; name="image006.png"
Content-Description: image006.png
Content-Disposition: inline; filename="image006.png"; size=5570;
creation-date="Mon, 11 Jan 2021 20:01:51 GMT";
modification-date="Mon, 11 Jan 2021 20:01:51 GMT"
Content-ID: <***@01D6E82A.AFD83160>
Content-Transfer-Encoding: base64
[[Base64 encoded image]]
--_014_38F8AFA1CFE745588061C7E41F3F7246fantiniusacom_
Content-Type: image/png; name="image007.png"
Content-Description: image007.png
Content-Disposition: inline; filename="image007.png"; size=1892;
creation-date="Mon, 11 Jan 2021 20:01:51 GMT";
modification-date="Mon, 11 Jan 2021 20:01:51 GMT"
Content-ID: <***@01D6E82A.AFD83160>
Content-Transfer-Encoding: base64
[[Base64 encoded image]]
--_014_38F8AFA1CFE745588061C7E41F3F7246fantiniusacom_
Content-Type: image/png; name="image008.png"
Content-Description: image008.png
Content-Disposition: inline; filename="image008.png"; size=1833;
creation-date="Mon, 11 Jan 2021 20:01:51 GMT";
modification-date="Mon, 11 Jan 2021 20:01:51 GMT"
Content-ID: <***@01D6E82A.AFD83160>
Content-Transfer-Encoding: base64
[[Base64 encoded image]]
--_014_38F8AFA1CFE745588061C7E41F3F7246fantiniusacom_
Content-Type: image/png; name="image009.png"
Content-Description: image009.png
Content-Disposition: inline; filename="image009.png"; size=2079;
creation-date="Mon, 11 Jan 2021 20:01:51 GMT";
modification-date="Mon, 11 Jan 2021 20:01:51 GMT"
Content-ID: <***@01D6E82A.AFD83160>
Content-Transfer-Encoding: base64
[[Base64 encoded image]]
--_014_38F8AFA1CFE745588061C7E41F3F7246fantiniusacom_
Content-Type: image/png; name="image010.png"
Content-Description: image010.png
Content-Disposition: inline; filename="image010.png"; size=1680;
creation-date="Mon, 11 Jan 2021 20:01:51 GMT";
modification-date="Mon, 11 Jan 2021 20:01:51 GMT"
Content-ID: <***@01D6E82A.AFD83160>
Content-Transfer-Encoding: base64
[[Base64 encoded image]]
--_014_38F8AFA1CFE745588061C7E41F3F7246fantiniusacom_
Content-Type: image/jpeg; name="image011.jpg"
Content-Description: image011.jpg
Content-Disposition: inline; filename="image011.jpg"; size=2067743;
creation-date="Mon, 11 Jan 2021 20:01:51 GMT";
modification-date="Mon, 11 Jan 2021 20:01:52 GMT"
Content-ID: <***@01D6E82A.AFD83160>
Content-Transfer-Encoding: base64
[[Base64 encoded image]]
--_014_38F8AFA1CFE745588061C7E41F3F7246fantiniusacom_--