cjsmall
2022-10-10 19:50:40 UTC
I'm using munpack -t to extract all the parts of a MIME email. It saves the
unnamed text and HTML content as part1 and part2 respectively. However,
the html is betting badly mangled since all sequences beginning with an
equal sign followed by a double quote (=") into what I think are Unicode
characters. Below I'll use the ASCII representation of these characters
that you see if you pipe them through the less pager.
Given:
<div dir="auto">
<div class="gmail_quote" dir="auto">
<img src="cid:1838ef09576531465341"
The results:
dir<FA>uto">
<div class<FF>mail_quote">
<img src<FC>id:1838ef09576531465341"
This breaks everything. I see no options to munpack to address this.
Mutt has no such problem saving the HTML attachment. Is there some
way to get munpack to behave? Otherwise, what is the best way to
extract the HTML attachment from the command line?
unnamed text and HTML content as part1 and part2 respectively. However,
the html is betting badly mangled since all sequences beginning with an
equal sign followed by a double quote (=") into what I think are Unicode
characters. Below I'll use the ASCII representation of these characters
that you see if you pipe them through the less pager.
Given:
<div dir="auto">
<div class="gmail_quote" dir="auto">
<img src="cid:1838ef09576531465341"
The results:
dir<FA>uto">
<div class<FF>mail_quote">
<img src<FC>id:1838ef09576531465341"
This breaks everything. I see no options to munpack to address this.
Mutt has no such problem saving the HTML attachment. Is there some
way to get munpack to behave? Otherwise, what is the best way to
extract the HTML attachment from the command line?