mirror of
https://github.com/stalwartlabs/mail-parser.git
synced 2026-11-29 08:01:21 +00:00
660 lines
18 KiB
JSON
660 lines
18 KiB
JSON
{
|
|
"messages": [
|
|
{
|
|
"id": 0,
|
|
"root": 0,
|
|
"container": null,
|
|
"source": "raw",
|
|
"text_body": [
|
|
1
|
|
],
|
|
"html_body": [
|
|
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": 2181,
|
|
"offset_end": 3740,
|
|
"headers": [
|
|
{
|
|
"name": "Return-Path",
|
|
"value": {
|
|
"text_list": [
|
|
"calpas2007@yahoo.fr"
|
|
]
|
|
},
|
|
"offset_field": 0,
|
|
"offset_start": 12,
|
|
"offset_end": 35
|
|
},
|
|
{
|
|
"name": "Message-ID",
|
|
"value": {
|
|
"text_list": [
|
|
"325993.29502.qm@web28416.mail.ukl.yahoo.com"
|
|
]
|
|
},
|
|
"offset_field": 35,
|
|
"offset_start": 46,
|
|
"offset_end": 93
|
|
},
|
|
{
|
|
"name": "Received",
|
|
"value": {
|
|
"received": {
|
|
"from": {
|
|
"name": "nm2-vm1.bullet.mail.ukl.yahoo.com"
|
|
},
|
|
"from_ip": "217.146.183.227",
|
|
"from_iprev": "nm2-vm1.bullet.mail.ukl.yahoo.com",
|
|
"by": {
|
|
"name": "lists.maptools.org"
|
|
},
|
|
"for": "shapelib@lists.maptools.org",
|
|
"with": "SMTP",
|
|
"tls_version": null,
|
|
"tls_cipher": null,
|
|
"id": "BC0C186A2A",
|
|
"ident": null,
|
|
"helo": null,
|
|
"helo_cmd": null,
|
|
"via": null,
|
|
"date": {
|
|
"year": 2011,
|
|
"month": 3,
|
|
"day": 9,
|
|
"hour": 6,
|
|
"minute": 19,
|
|
"second": 47,
|
|
"tz_before_gmt": true,
|
|
"tz_hour": 5,
|
|
"tz_minute": 0
|
|
}
|
|
}
|
|
},
|
|
"offset_field": 93,
|
|
"offset_start": 102,
|
|
"offset_end": 328
|
|
},
|
|
{
|
|
"name": "Received",
|
|
"value": {
|
|
"received": {
|
|
"from": {
|
|
"ip": "217.146.183.184"
|
|
},
|
|
"from_ip": null,
|
|
"from_iprev": null,
|
|
"by": {
|
|
"name": "nm2.bullet.mail.ukl.yahoo.com"
|
|
},
|
|
"for": null,
|
|
"with": null,
|
|
"tls_version": null,
|
|
"tls_cipher": null,
|
|
"id": null,
|
|
"ident": null,
|
|
"helo": null,
|
|
"helo_cmd": null,
|
|
"via": null,
|
|
"date": {
|
|
"year": 2011,
|
|
"month": 3,
|
|
"day": 9,
|
|
"hour": 11,
|
|
"minute": 19,
|
|
"second": 46,
|
|
"tz_before_gmt": false,
|
|
"tz_hour": 0,
|
|
"tz_minute": 0
|
|
}
|
|
}
|
|
},
|
|
"offset_field": 328,
|
|
"offset_start": 337,
|
|
"offset_end": 434
|
|
},
|
|
{
|
|
"name": "Received",
|
|
"value": {
|
|
"received": {
|
|
"from": {
|
|
"ip": "217.146.183.162"
|
|
},
|
|
"from_ip": null,
|
|
"from_iprev": null,
|
|
"by": {
|
|
"name": "tm15.bullet.mail.ukl.yahoo.com"
|
|
},
|
|
"for": null,
|
|
"with": null,
|
|
"tls_version": null,
|
|
"tls_cipher": null,
|
|
"id": null,
|
|
"ident": null,
|
|
"helo": null,
|
|
"helo_cmd": null,
|
|
"via": null,
|
|
"date": {
|
|
"year": 2011,
|
|
"month": 3,
|
|
"day": 9,
|
|
"hour": 11,
|
|
"minute": 19,
|
|
"second": 46,
|
|
"tz_before_gmt": false,
|
|
"tz_hour": 0,
|
|
"tz_minute": 0
|
|
}
|
|
}
|
|
},
|
|
"offset_field": 434,
|
|
"offset_start": 443,
|
|
"offset_end": 541
|
|
},
|
|
{
|
|
"name": "Received",
|
|
"value": {
|
|
"received": {
|
|
"from": {
|
|
"ip": "127.0.0.1"
|
|
},
|
|
"from_ip": null,
|
|
"from_iprev": null,
|
|
"by": {
|
|
"name": "omp1003.mail.ukl.yahoo.com"
|
|
},
|
|
"for": null,
|
|
"with": null,
|
|
"tls_version": null,
|
|
"tls_cipher": null,
|
|
"id": null,
|
|
"ident": null,
|
|
"helo": null,
|
|
"helo_cmd": null,
|
|
"via": null,
|
|
"date": {
|
|
"year": 2011,
|
|
"month": 3,
|
|
"day": 9,
|
|
"hour": 11,
|
|
"minute": 19,
|
|
"second": 46,
|
|
"tz_before_gmt": false,
|
|
"tz_hour": 0,
|
|
"tz_minute": 0
|
|
}
|
|
}
|
|
},
|
|
"offset_field": 541,
|
|
"offset_start": 550,
|
|
"offset_end": 638
|
|
},
|
|
{
|
|
"name": "Received",
|
|
"value": {
|
|
"received": {
|
|
"from": null,
|
|
"from_ip": null,
|
|
"from_iprev": null,
|
|
"by": null,
|
|
"for": null,
|
|
"with": null,
|
|
"tls_version": null,
|
|
"tls_cipher": null,
|
|
"id": null,
|
|
"ident": null,
|
|
"helo": null,
|
|
"helo_cmd": null,
|
|
"via": null,
|
|
"date": {
|
|
"year": 2011,
|
|
"month": 3,
|
|
"day": 9,
|
|
"hour": 11,
|
|
"minute": 19,
|
|
"second": 46,
|
|
"tz_before_gmt": false,
|
|
"tz_hour": 0,
|
|
"tz_minute": 0
|
|
}
|
|
}
|
|
},
|
|
"offset_field": 638,
|
|
"offset_start": 647,
|
|
"offset_end": 710
|
|
},
|
|
{
|
|
"name": "Received",
|
|
"value": {
|
|
"received": {
|
|
"from": {
|
|
"ip": "93.48.39.139"
|
|
},
|
|
"from_ip": null,
|
|
"from_iprev": null,
|
|
"by": {
|
|
"name": "web28416.mail.ukl.yahoo.com"
|
|
},
|
|
"for": null,
|
|
"with": null,
|
|
"tls_version": null,
|
|
"tls_cipher": null,
|
|
"id": null,
|
|
"ident": null,
|
|
"helo": null,
|
|
"helo_cmd": null,
|
|
"via": "HTTP",
|
|
"date": {
|
|
"year": 2011,
|
|
"month": 3,
|
|
"day": 9,
|
|
"hour": 11,
|
|
"minute": 19,
|
|
"second": 45,
|
|
"tz_before_gmt": true,
|
|
"tz_hour": 0,
|
|
"tz_minute": 0
|
|
}
|
|
}
|
|
},
|
|
"offset_field": 710,
|
|
"offset_start": 719,
|
|
"offset_end": 812
|
|
},
|
|
{
|
|
"name": "X-YMail-OSG",
|
|
"value": {
|
|
"text": "xF6vL5gVM1nJDIpUac8HXQgtzEKILWMleuWXpnKhS4zjeWk\n\tAzOMT9R5FsxhNIfJowfwIoeDe4kCWtluFsT5_o6NqzymePDH8x1m9dBMI_r.\n\tyNT1aac5Z.dK2GS8Nsuks7LrwYx0Y0SV45wWRzmK8ExyNKvPh.VzTeJQBn6T\n\tmEWJDI82qsbKIqLwl7PQPf79.DT_AthBEa72VUqZ5bOIjxyd9xP36T9KbbBv z8rA-"
|
|
},
|
|
"offset_field": 812,
|
|
"offset_start": 824,
|
|
"offset_end": 1065
|
|
},
|
|
{
|
|
"name": "X-Yahoo-Newman-Property",
|
|
"value": {
|
|
"text": "ymail-5"
|
|
},
|
|
"offset_field": 1065,
|
|
"offset_start": 1089,
|
|
"offset_end": 1098
|
|
},
|
|
{
|
|
"name": "X-Yahoo-Newman-Id",
|
|
"value": {
|
|
"text": "895263.62503.bm@omp1003.mail.ukl.yahoo.com"
|
|
},
|
|
"offset_field": 1098,
|
|
"offset_start": 1116,
|
|
"offset_end": 1160
|
|
},
|
|
{
|
|
"name": "X-Mailer",
|
|
"value": {
|
|
"text": "YahooMailRC/559 YahooMailWebService/0.8.109.292656"
|
|
},
|
|
"offset_field": 1160,
|
|
"offset_start": 1169,
|
|
"offset_end": 1221
|
|
},
|
|
{
|
|
"name": "Date",
|
|
"value": {
|
|
"date_time": {
|
|
"year": 2011,
|
|
"month": 3,
|
|
"day": 9,
|
|
"hour": 11,
|
|
"minute": 19,
|
|
"second": 45,
|
|
"tz_before_gmt": false,
|
|
"tz_hour": 0,
|
|
"tz_minute": 0
|
|
}
|
|
},
|
|
"offset_field": 1221,
|
|
"offset_start": 1226,
|
|
"offset_end": 1264
|
|
},
|
|
{
|
|
"name": "From",
|
|
"value": {
|
|
"address": [
|
|
{
|
|
"mailbox": {
|
|
"name": "calpas calpas",
|
|
"address": "calpas2007@yahoo.fr"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"offset_field": 1264,
|
|
"offset_start": 1269,
|
|
"offset_end": 1306
|
|
},
|
|
{
|
|
"name": "To",
|
|
"value": {
|
|
"address": [
|
|
{
|
|
"mailbox": {
|
|
"name": null,
|
|
"address": "shapelib@lists.maptools.org"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"offset_field": 1306,
|
|
"offset_start": 1309,
|
|
"offset_end": 1338
|
|
},
|
|
{
|
|
"name": "MIME-Version",
|
|
"value": {
|
|
"text": "1.0"
|
|
},
|
|
"offset_field": 1338,
|
|
"offset_start": 1351,
|
|
"offset_end": 1356
|
|
},
|
|
{
|
|
"name": "Content-Type",
|
|
"value": {
|
|
"content_type": {
|
|
"type": "multipart",
|
|
"subtype": "alternative",
|
|
"attributes": [
|
|
[
|
|
"boundary",
|
|
"0-1188948659-1299669585=:29502"
|
|
]
|
|
]
|
|
}
|
|
},
|
|
"offset_field": 1356,
|
|
"offset_start": 1369,
|
|
"offset_end": 1435
|
|
},
|
|
{
|
|
"name": "Subject",
|
|
"value": {
|
|
"text": "[Shapelib] need some help"
|
|
},
|
|
"offset_field": 1435,
|
|
"offset_start": 1443,
|
|
"offset_end": 1470
|
|
},
|
|
{
|
|
"name": "X-BeenThere",
|
|
"value": {
|
|
"text": "shapelib@lists.maptools.org"
|
|
},
|
|
"offset_field": 1470,
|
|
"offset_start": 1482,
|
|
"offset_end": 1511
|
|
},
|
|
{
|
|
"name": "X-Mailman-Version",
|
|
"value": {
|
|
"text": "2.1.9"
|
|
},
|
|
"offset_field": 1511,
|
|
"offset_start": 1529,
|
|
"offset_end": 1536
|
|
},
|
|
{
|
|
"name": "Precedence",
|
|
"value": {
|
|
"text": "list"
|
|
},
|
|
"offset_field": 1536,
|
|
"offset_start": 1547,
|
|
"offset_end": 1553
|
|
},
|
|
{
|
|
"name": "Reply-To",
|
|
"value": {
|
|
"address": [
|
|
{
|
|
"mailbox": {
|
|
"name": "Shapelib Development",
|
|
"address": "shapelib@lists.maptools.org"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"offset_field": 1553,
|
|
"offset_start": 1562,
|
|
"offset_end": 1614
|
|
},
|
|
{
|
|
"name": "List-Id",
|
|
"value": {
|
|
"address": [
|
|
{
|
|
"mailbox": {
|
|
"name": "Shapelib Development",
|
|
"address": "shapelib.lists.maptools.org"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"offset_field": 1614,
|
|
"offset_start": 1622,
|
|
"offset_end": 1674
|
|
},
|
|
{
|
|
"name": "List-Unsubscribe",
|
|
"value": {
|
|
"address": [
|
|
{
|
|
"mailbox": {
|
|
"name": null,
|
|
"address": "http://lists.maptools.org/mailman/listinfo/shapelib"
|
|
}
|
|
},
|
|
{
|
|
"mailbox": {
|
|
"name": null,
|
|
"address": "mailto:shapelib-request@lists.maptools.org?subject=unsubscribe"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"offset_field": 1674,
|
|
"offset_start": 1691,
|
|
"offset_end": 1813
|
|
},
|
|
{
|
|
"name": "List-Archive",
|
|
"value": {
|
|
"address": [
|
|
{
|
|
"mailbox": {
|
|
"name": null,
|
|
"address": "http://lists.maptools.org/pipermail/shapelib"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"offset_field": 1813,
|
|
"offset_start": 1826,
|
|
"offset_end": 1874
|
|
},
|
|
{
|
|
"name": "List-Post",
|
|
"value": {
|
|
"address": [
|
|
{
|
|
"mailbox": {
|
|
"name": null,
|
|
"address": "mailto:shapelib@lists.maptools.org"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"offset_field": 1874,
|
|
"offset_start": 1884,
|
|
"offset_end": 1922
|
|
},
|
|
{
|
|
"name": "List-Help",
|
|
"value": {
|
|
"address": [
|
|
{
|
|
"mailbox": {
|
|
"name": null,
|
|
"address": "mailto:shapelib-request@lists.maptools.org?subject=help"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"offset_field": 1922,
|
|
"offset_start": 1932,
|
|
"offset_end": 1991
|
|
},
|
|
{
|
|
"name": "List-Subscribe",
|
|
"value": {
|
|
"address": [
|
|
{
|
|
"mailbox": {
|
|
"name": null,
|
|
"address": "http://lists.maptools.org/mailman/listinfo/shapelib"
|
|
}
|
|
},
|
|
{
|
|
"mailbox": {
|
|
"name": null,
|
|
"address": "mailto:shapelib-request@lists.maptools.org?subject=subscribe"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"offset_field": 1991,
|
|
"offset_start": 2006,
|
|
"offset_end": 2126
|
|
},
|
|
{
|
|
"name": "X-List-Received-Date",
|
|
"value": {
|
|
"text": "Wed, 09 Mar 2011 11:20:10 -0000"
|
|
},
|
|
"offset_field": 2126,
|
|
"offset_start": 2147,
|
|
"offset_end": 2180
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": 1,
|
|
"message": 0,
|
|
"parent": 0,
|
|
"kind": "text",
|
|
"encoding": "quoted-printable",
|
|
"flags": [],
|
|
"roles": [
|
|
"text_body"
|
|
],
|
|
"role": "text_body",
|
|
"offset_header": 2214,
|
|
"offset_body": 2299,
|
|
"offset_end": 2819,
|
|
"headers": [
|
|
{
|
|
"name": "Content-Type",
|
|
"value": {
|
|
"content_type": {
|
|
"type": "text",
|
|
"subtype": "plain",
|
|
"attributes": [
|
|
[
|
|
"charset",
|
|
"utf-8"
|
|
]
|
|
]
|
|
}
|
|
},
|
|
"offset_field": 2214,
|
|
"offset_start": 2227,
|
|
"offset_end": 2254
|
|
},
|
|
{
|
|
"name": "Content-Transfer-Encoding",
|
|
"value": {
|
|
"text": "quoted-printable"
|
|
},
|
|
"offset_field": 2254,
|
|
"offset_start": 2280,
|
|
"offset_end": 2298
|
|
}
|
|
],
|
|
"text": "Dear all,\n\nI am writting my first C application to access the shapefile and retrieve some \ndata. I'm trying to use the shapelib to achieve that unfortunately I'm keeping \non having the following errors: \n\n /home/geotema/valatest/src/readshapetest.c:19: undefined reference to \n`SHPOpen'\n /home/geotema/valatest/src/readshapetest.c:21: undefined reference to \n`SHPGetInfo'\n\nI cannot figure out what is missing. could anyone help me to sort out this \nissue???\n\nCheers\n\n\n",
|
|
"decode_problems": []
|
|
},
|
|
{
|
|
"id": 2,
|
|
"message": 0,
|
|
"parent": 0,
|
|
"kind": "html",
|
|
"encoding": "quoted-printable",
|
|
"flags": [],
|
|
"roles": [
|
|
"html_body"
|
|
],
|
|
"role": "html_body",
|
|
"offset_header": 2853,
|
|
"offset_body": 2937,
|
|
"offset_end": 3704,
|
|
"headers": [
|
|
{
|
|
"name": "Content-Type",
|
|
"value": {
|
|
"content_type": {
|
|
"type": "text",
|
|
"subtype": "html",
|
|
"attributes": [
|
|
[
|
|
"charset",
|
|
"utf-8"
|
|
]
|
|
]
|
|
}
|
|
},
|
|
"offset_field": 2853,
|
|
"offset_start": 2866,
|
|
"offset_end": 2892
|
|
},
|
|
{
|
|
"name": "Content-Transfer-Encoding",
|
|
"value": {
|
|
"text": "quoted-printable"
|
|
},
|
|
"offset_field": 2892,
|
|
"offset_start": 2918,
|
|
"offset_end": 2936
|
|
}
|
|
],
|
|
"text": "<html><head><style type=\"text/css\"><!-- DIV {margin:0px;} --></style></head><body><div style=\"font-family:times new roman,new york,times,serif;font-size:12pt\"><div>Dear all,<br><br>I am writting my first C application to access the shapefile and retrieve some data. I'm trying to use the shapelib to achieve that unfortunately I'm keeping on having the following errors: <br> /home/geotema/valatest/src/readshapetest.c:19: undefined reference to `SHPOpen'<br> /home/geotema/valatest/src/readshapetest.c:21: undefined reference to `SHPGetInfo'<br><br>I cannot figure out what is missing. could anyone help me to sort out this issue???<br><br>Cheers<br><br></div>\n</div><br>\n\n\n\n\n </body></html>",
|
|
"decode_problems": []
|
|
}
|
|
]
|
|
} |