mirror of
https://github.com/stalwartlabs/mail-parser.git
synced 2026-11-29 16:01:27 +00:00
108 lines
2.0 KiB
Plaintext
108 lines
2.0 KiB
Plaintext
Subject: Hide and seek
|
|
MIME-Version: 1.0
|
|
Content-Type: multipart/mixed; boundary=1
|
|
|
|
--1
|
|
Content-Type: multipart/signed; protocol="signature/plain"; migalc="pen+paper"; boundary=2
|
|
X-Signature-Type: penmanship
|
|
|
|
--2
|
|
Content-Type: multipart/alternative; boundary=3
|
|
|
|
--3
|
|
Content-Type: text/html; charset=us-ascii
|
|
|
|
<html><head><title>Search me</title></head><body><p>Don't find me here</p></body></html>
|
|
|
|
--3
|
|
Content-Type: text/plain
|
|
Content-Transfer-Encoding: binary
|
|
|
|
Search me, and Find me here
|
|
--3--
|
|
|
|
--2
|
|
Content-Type: signature/plain; charset=us-ascii
|
|
|
|
Signed by undersigned
|
|
--2--
|
|
|
|
--1--
|
|
---- EXPECTED STRUCTURE ----
|
|
{
|
|
"header": {
|
|
"mime_version": "1.0",
|
|
"subject": "Hide and seek",
|
|
"content_type": {
|
|
"c_type": "multipart",
|
|
"c_subtype": "mixed",
|
|
"attributes": {
|
|
"boundary": "1"
|
|
}
|
|
}
|
|
},
|
|
"html_body": [
|
|
{
|
|
"header": {
|
|
"content_type": {
|
|
"c_type": "text",
|
|
"c_subtype": "html",
|
|
"attributes": {
|
|
"charset": "us-ascii"
|
|
}
|
|
}
|
|
},
|
|
"contents": "<html><head><title>Search me</title></head><body><p>Don't find me here</p></body></html>\n"
|
|
}
|
|
],
|
|
"text_body": [
|
|
{
|
|
"header": {
|
|
"content_transfer_encoding": "binary",
|
|
"content_type": {
|
|
"c_type": "text",
|
|
"c_subtype": "plain"
|
|
}
|
|
},
|
|
"contents": "Search me, and Find me here"
|
|
}
|
|
],
|
|
"attachments": [
|
|
{
|
|
"Binary": {
|
|
"header": {
|
|
"content_type": {
|
|
"c_type": "signature",
|
|
"c_subtype": "plain",
|
|
"attributes": {
|
|
"charset": "us-ascii"
|
|
}
|
|
}
|
|
},
|
|
"contents": [
|
|
83,
|
|
105,
|
|
103,
|
|
110,
|
|
101,
|
|
100,
|
|
32,
|
|
98,
|
|
121,
|
|
32,
|
|
117,
|
|
110,
|
|
100,
|
|
101,
|
|
114,
|
|
115,
|
|
105,
|
|
103,
|
|
110,
|
|
101,
|
|
100
|
|
]
|
|
}
|
|
}
|
|
]
|
|
} |