Files

185 lines
3.9 KiB
JSON

{
"messages": [
{
"id": 0,
"root": 0,
"container": null,
"source": "raw",
"text_body": [
1,
2
],
"html_body": [
1,
2
],
"attachments": [],
"has_attachments": false
}
],
"parts": [
{
"id": 0,
"message": 0,
"parent": null,
"kind": "multipart",
"children": [
1,
2
],
"encoding": "none",
"flags": [],
"roles": [],
"role": "container",
"offset_header": 0,
"offset_body": 224,
"offset_end": 690,
"headers": [
{
"name": "From",
"value": {
"address": [
{
"mailbox": {
"name": "Nathaniel Borenstein",
"address": "nsb@bellcore.com"
}
}
]
},
"offset_field": 0,
"offset_start": 5,
"offset_end": 46
},
{
"name": "To",
"value": {
"address": [
{
"mailbox": {
"name": "Ned Freed",
"address": "ned@innosoft.com"
}
}
]
},
"offset_field": 46,
"offset_start": 49,
"offset_end": 79
},
{
"name": "Date",
"value": {
"date_time": {
"year": 1993,
"month": 3,
"day": 21,
"hour": 23,
"minute": 56,
"second": 48,
"tz_before_gmt": true,
"tz_hour": 8,
"tz_minute": 0
}
},
"offset_field": 79,
"offset_start": 84,
"offset_end": 123
},
{
"name": "Subject",
"value": {
"text": "Sample message"
},
"offset_field": 123,
"offset_start": 131,
"offset_end": 147
},
{
"name": "MIME-Version",
"value": {
"text": "1.0"
},
"offset_field": 147,
"offset_start": 160,
"offset_end": 165
},
{
"name": "Content-type",
"value": {
"content_type": {
"type": "multipart",
"subtype": "mixed",
"attributes": [
[
"boundary",
"simple boundary"
]
]
}
},
"offset_field": 165,
"offset_start": 178,
"offset_end": 223
}
]
},
{
"id": 1,
"message": 0,
"parent": 0,
"kind": "text",
"encoding": "none",
"flags": [],
"roles": [
"text_body",
"html_body"
],
"role": "text_body",
"offset_header": 400,
"offset_body": 401,
"offset_end": 480,
"headers": [],
"text": "This is implicitly typed plain US-ASCII text.\nIt does NOT end with a linebreak.",
"decode_problems": []
},
{
"id": 2,
"message": 0,
"parent": 0,
"kind": "text",
"encoding": "none",
"flags": [],
"roles": [
"text_body",
"html_body"
],
"role": "text_body",
"offset_header": 499,
"offset_body": 543,
"offset_end": 619,
"headers": [
{
"name": "Content-type",
"value": {
"content_type": {
"type": "text",
"subtype": "plain",
"attributes": [
[
"charset",
"us-ascii"
]
]
}
},
"offset_field": 499,
"offset_start": 512,
"offset_end": 542
}
],
"text": "This is explicitly typed plain US-ASCII text.\nIt DOES end with a linebreak.\n",
"decode_problems": []
}
]
}