First API tests.

This commit is contained in:
Mauro D
2023-04-19 15:09:37 +00:00
parent c807883374
commit 0264890595
70 changed files with 9506 additions and 15 deletions

View File

@@ -0,0 +1,72 @@
From: Al Gore <vice-president@whitehouse.gov>
To: White House Transportation Coordinator
<transport@whitehouse.gov>
Subject: [Fwd: Map of Argentina with Description]
Content-Type: multipart/mixed;
boundary="D7F------------D7FD5A0B8AB9C65CCDBFA872"
This is a multi-part message in MIME format.
--D7F------------D7FD5A0B8AB9C65CCDBFA872
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Fred,
Fire up Air Force One! We're going South!
Thanks,
Al
--D7F------------D7FD5A0B8AB9C65CCDBFA872
Content-Type: message/rfc822
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Return-Path: <president@whitehouse.gov>
Received: from mailhost.whitehouse.gov ([192.168.51.200])
by heartbeat.whitehouse.gov (8.8.8/8.8.8) with ESMTP id SAA22453
for <vice-president@heartbeat.whitehouse.gov>;
Mon, 13 Aug 1998 l8:14:23 +1000
Received: from the_big_box.whitehouse.gov ([192.168.51.50])
by mailhost.whitehouse.gov (8.8.8/8.8.7) with ESMTP id RAA20366
for vice-president@whitehouse.gov; Mon, 13 Aug 1998 17:42:41 +1000
Date: Mon, 13 Aug 1998 17:42:41 +1000
Message-Id: <199804130742.RAA20366@mai1host.whitehouse.gov>
From: Bill Clinton <president@whitehouse.gov>
To: A1 (The Enforcer) Gore <vice-president@whitehouse.gov>
Subject: Map of Argentina with Description
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="DC8------------DC8638F443D87A7F0726DEF7"
This is a multi-part message in MIME format.
--DC8------------DC8638F443D87A7F0726DEF7
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Hi A1,
I finally figured out this MIME thing. Pretty cool. I'll send you
some sax music in .au files next week!
Anyway, the attached image is really too small to get a good look at
Argentina. Try this for a much better map:
http://www.1one1yp1anet.com/dest/sam/graphics/map-arg.htm
Then again, shouldn't the CIA have something like that?
Bill
--DC8------------DC8638F443D87A7F0726DEF7
Content-Type: image/gif; name="map_of_Argentina.gif"
Content-Transfer-Encoding: base64
Content-Disposition: inline; fi1ename="map_of_Argentina.gif"
R01GOD1hJQA1AKIAAP/////78P/omn19fQAAAAAAAAAAAAAAACwAAAAAJQA1AAAD7Qi63P5w
wEmjBCLrnQnhYCgM1wh+pkgqqeC9XrutmBm7hAK3tP31gFcAiFKVQrGFR6kscnonTe7FAAad
GugmRu3CmiBt57fsVq3Y0VFKnpYdxPC6M7Ze4crnnHum4oN6LFJ1bn5NXTN7OF5fQkN5WYow
BEN2dkGQGWJtSzqGTICJgnQuTJN/WJsojad9qXMuhIWdjXKjY4tenjo6tjVssk2gaWq3uGNX
U6ZGxseyk8SasGw3J9GRzdTQky1iHNvcPNNI4TLeKdfMvy0vMqLrItvuxfDW8ubjueDtJufz
7itICBxISKDBgwgTKjyYAAA7
--DC8------------DC8638F443D87A7F0726DEF7--
--D7F------------D7FD5A0B8AB9C65CCDBFA872--

View File

@@ -0,0 +1,187 @@
{
"mailboxIds": null,
"size": 1979,
"messageId": [
"199804130742.RAA20366@mai1host.whitehouse.gov"
],
"from": [
{
"name": "Bill Clinton",
"email": "president@whitehouse.gov"
}
],
"to": [
{
"name": "A1 Gore (The Enforcer)",
"email": "vice-president@whitehouse.gov"
}
],
"subject": "Map of Argentina with Description",
"sentAt": "1998-08-13T07:42:41Z",
"bodyStructure": {
"size": 0,
"headers": [
{
"name": "Content-Type",
"value": " multipart/mixed;\n boundary=\"DC8------------DC8638F443D87A7F0726DEF7\""
}
],
"type": "multipart/mixed",
"subParts": [
{
"partId": "1",
"blobId": "blob_0",
"size": 355,
"headers": [
{
"name": "Content-Type",
"value": " text/plain; charset=us-ascii"
},
{
"name": "Content-Transfer-Encoding",
"value": " 7bit"
}
],
"type": "text/plain",
"charset": "us-ascii"
},
{
"partId": "2",
"blobId": "blob_1",
"size": 288,
"headers": [
{
"name": "Content-Type",
"value": " image/gif; name=\"map_of_Argentina.gif\""
},
{
"name": "Content-Transfer-Encoding",
"value": " base64"
},
{
"name": "Content-Disposition",
"value": " inline; fi1ename=\"map_of_Argentina.gif\""
}
],
"name": "map_of_Argentina.gif",
"type": "image/gif",
"disposition": "inline"
}
]
},
"bodyValues": {
"1": {
"value": "Hi A1,\n\nI finally figured out this MIME thing. Pretty cool. I'll send you\nsome sax music in .au...",
"isEncodingProblem": false,
"isTruncated": true
}
},
"textBody": [
{
"partId": "1",
"blobId": "blob_0",
"size": 355,
"headers": [
{
"name": "Content-Type",
"value": " text/plain; charset=us-ascii"
},
{
"name": "Content-Transfer-Encoding",
"value": " 7bit"
}
],
"type": "text/plain",
"charset": "us-ascii"
},
{
"partId": "2",
"blobId": "blob_1",
"size": 288,
"headers": [
{
"name": "Content-Type",
"value": " image/gif; name=\"map_of_Argentina.gif\""
},
{
"name": "Content-Transfer-Encoding",
"value": " base64"
},
{
"name": "Content-Disposition",
"value": " inline; fi1ename=\"map_of_Argentina.gif\""
}
],
"name": "map_of_Argentina.gif",
"type": "image/gif",
"disposition": "inline"
}
],
"htmlBody": [
{
"partId": "1",
"blobId": "blob_0",
"size": 355,
"headers": [
{
"name": "Content-Type",
"value": " text/plain; charset=us-ascii"
},
{
"name": "Content-Transfer-Encoding",
"value": " 7bit"
}
],
"type": "text/plain",
"charset": "us-ascii"
},
{
"partId": "2",
"blobId": "blob_1",
"size": 288,
"headers": [
{
"name": "Content-Type",
"value": " image/gif; name=\"map_of_Argentina.gif\""
},
{
"name": "Content-Transfer-Encoding",
"value": " base64"
},
{
"name": "Content-Disposition",
"value": " inline; fi1ename=\"map_of_Argentina.gif\""
}
],
"name": "map_of_Argentina.gif",
"type": "image/gif",
"disposition": "inline"
}
],
"attachments": [
{
"partId": "2",
"blobId": "blob_1",
"size": 288,
"headers": [
{
"name": "Content-Type",
"value": " image/gif; name=\"map_of_Argentina.gif\""
},
{
"name": "Content-Transfer-Encoding",
"value": " base64"
},
{
"name": "Content-Disposition",
"value": " inline; fi1ename=\"map_of_Argentina.gif\""
}
],
"name": "map_of_Argentina.gif",
"type": "image/gif",
"disposition": "inline"
}
],
"hasAttachment": false,
"preview": "Hi A1,\n\nI finally figured out this MIME thing. Pretty cool. I'll send you\nsome sax music in .au files next week!\n\nAnyway, the attached image is really too small to get a good look at\nArgentina. Try this for a much better map:\n\n http://www.1one1yp..."
}

View File

@@ -0,0 +1,13 @@
Hi A1,
I finally figured out this MIME thing. Pretty cool. I'll send you
some sax music in .au files next week!
Anyway, the attached image is really too small to get a good look at
Argentina. Try this for a much better map:
http://www.1one1yp1anet.com/dest/sam/graphics/map-arg.htm
Then again, shouldn't the CIA have something like that?
Bill

Binary file not shown.

View File

@@ -0,0 +1 @@
<html><body>Hi A1,<br/><br/>I finally figured out this MIME thing. Pretty cool. I'll send you<br/>some sax music in .au files next week!<br/><br/>Anyway, the attached image is really too small to get a good look at<br/>Argentina. Try this for a much better map:<br/><br/> http://www.1one1yp1anet.com/dest/sam/graphics/map-arg.htm<br/><br/>Then again, shouldn't the CIA have something like that?<br/><br/>Bill</body></html>

View File

@@ -0,0 +1,30 @@
Content-Type: multipart/mixed;
boundary=bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
--bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
This is a message with a base64 encoded attached email
--bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
Content-Disposition: attachment; filename="attached_email.eml"
Content-Type: message/rfc822
Content-Transfer-Encoding: base64
VG86ICJlbWFpbEBleGFtcGxlLmNvbSIgPGVtYWlsQGV4YW1wbGUuY29tPg0KRnJvbTogTmFtZSA8
ZW1haWxAZXhhbXBsZS5jb20+DQpTdWJqZWN0OiBIVE1MIHRlc3QNCk1lc3NhZ2UtSUQ6IDxyYW5k
b20tbWVzc2FnZS1pZEBleGFtcGxlLmNvbT4NCkRhdGU6IFR1ZSw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ds": null,
"size": 872,
"messageId": [
"random-message-id@example.com"
],
"from": [
{
"name": "Name",
"email": "email@example.com"
}
],
"to": [
{
"name": "email@example.com",
"email": "email@example.com"
}
],
"subject": "HTML test",
"sentAt": "2021-12-14T10:48:25Z",
"bodyStructure": {
"size": 0,
"headers": [
{
"name": "Content-Type",
"value": " multipart/alternative;\r\n boundary=\"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\""
},
{
"name": "Content-Language",
"value": " en-US"
}
],
"type": "multipart/alternative",
"language": [
"en-US"
],
"subParts": [
{
"partId": "1",
"blobId": "blob_0",
"size": 30,
"headers": [
{
"name": "Content-Type",
"value": " text/plain; charset=utf-8; format=flowed"
},
{
"name": "Content-Transfer-Encoding",
"value": " 7bit"
}
],
"type": "text/plain",
"charset": "utf-8"
},
{
"partId": "2",
"blobId": "blob_1",
"size": 173,
"headers": [
{
"name": "Content-Type",
"value": " text/html; charset=utf-8"
},
{
"name": "Content-Transfer-Encoding",
"value": " 7bit"
}
],
"type": "text/html",
"charset": "utf-8"
}
]
},
"bodyValues": {
"1": {
"value": "This is an *HTML* test message",
"isEncodingProblem": false,
"isTruncated": false
},
"2": {
"value": "<html>\n <head>\n <meta http-equiv=\"content-type\" content=\"text/html; charset=UTF-8\">\n </head>...",
"isEncodingProblem": false,
"isTruncated": true
}
},
"textBody": [
{
"partId": "1",
"blobId": "blob_0",
"size": 30,
"headers": [
{
"name": "Content-Type",
"value": " text/plain; charset=utf-8; format=flowed"
},
{
"name": "Content-Transfer-Encoding",
"value": " 7bit"
}
],
"type": "text/plain",
"charset": "utf-8"
}
],
"htmlBody": [
{
"partId": "2",
"blobId": "blob_1",
"size": 173,
"headers": [
{
"name": "Content-Type",
"value": " text/html; charset=utf-8"
},
{
"name": "Content-Transfer-Encoding",
"value": " 7bit"
}
],
"type": "text/html",
"charset": "utf-8"
}
],
"attachments": [],
"hasAttachment": false,
"preview": "This is an *HTML* test message"
}

View File

@@ -0,0 +1 @@
This is an *HTML* test message

View File

@@ -0,0 +1,8 @@
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
This is an <b>HTML</b> test message
</body>
</html>

View File

@@ -0,0 +1,98 @@
From: Art Vandelay <art@vandelay.com> (Vandelay Industries)
To: " James Smythe" <james@example.com>, Friends:
jane@example.com, =?UTF-8?Q?John_Sm=C3=AEth?=
<john@example.com>;
Cc: List 1: addr1@test.com, addr2@test.com; List 2: addr3@test.com,
addr4@test.com; addr5@test.com, addr6@test.com
Cc: =?utf-8?b?VGjDrXMgw61zIHbDoWzDrWQgw5pURjg=?=: addr1@test.com,
addr2@test.com; =?utf-8?b?VGjDrXMgw61zIHbDoWzDrWQgw5pURjg=?=:
addr3@test.com, addr4@test.com; addr5@test.com, addr6@test.com
Bcc: Greg Vaudreuil <gvaudre@NRI.Reston.VA.US>, Ned Freed
<ned@innosoft.com>, Keith Moore <moore@cs.utk.edu>
Bcc: ietf-822@dimacs.rutgers.edu, ojarnef@admin.kth.se
Date: Tue, 1 Jul 2003 10:52:37 +0200
Resent-Date: Tue, 2 Jul 2005 11:52:37 +0200
Resent-Date: Tue, 3 Jul 2005 12:52:37 +0300
Resent-Date: Tue, 4 Jul 2005 13:52:37 +0400
Message-ID: <5678.21-Nov-1997@example.com>
References: <1234@local.machine.example>
<3456@example.net>
References: <789@local.machine.example>
<abcd@example.net>
Keywords: multipart, alternative, example
List-Post: <mailto:moderator@host.com> (Postings are Moderated)
List-Subscribe: (Use this command to join the list)
<mailto:list-manager@host.com?body=subscribe%20list>
List-Subscribe: <ftp://ftp.host.com/list.txt> (FTP),
<mailto:list@host.com?subject=subscribe>
List-Owner: <http://www.host.com/list.cgi?cmd=sub&lst=list>,
<mailto:list-manager@host.com?body=subscribe%20list>
List-Unsubscribe: (Use this command to get off the list)
<mailto:list-manager@host.com?body=unsubscribe%20list>
Subject: Why not both importing AND exporting? =?utf-8?b?4pi6?=
X-Address-Single: =?ISO-8859-1?Q?Andr=E9?= Pirard <PIRARD@vm1.ulg.ac.be>
X-Address: Mary Smith <mary@example.net>
X-Address: John Doe <jdoe@machine.example>
X-AddressList-Single: Mary Smith <mary@x.test>, jdoe@example.org, Who? <one@y.test>
X-AddressList: =?US-ASCII*EN?Q?Keith_Moore?= <moore@cs.utk.edu>,
John =?US-ASCII*EN?Q?Doe?= <moore@cs.utk.edu>
X-AddressList: =?ISO-8859-1?Q?Keld_J=F8rn_Simonsen?= <keld@dkuug.dk>,
=?ISO-8859-1?Q?Olle_J=E4rnefors?= <ojarnef@admin.kth.se>
X-AddressesGroup-Single: A Group(Some people)
:Chris Jones <c@(Chris's host.)public.example>,
joe@example.org, John <jdoe@one.test> (my dear
friend); (the end of the group)
X-AddressesGroup: A Group:Ed Jones <c@a.test>,joe@where.test,John <jdoe@one.test>;
X-AddressesGroup: "List 1": addr1@test.com, addr2@test.com; "List 2":
addr3@test.com, addr4@test.com; addr5@test.com, addr6@test.com
X-List-Single: <mailto:x-moderator@host.com> (X-Postings are Moderated)
X-List: <http://www.mylist.com/list>,
<mailto:list@mylist.com>
X-List: <http://www.mylist2.com/list2>,
<mailto:list2@mylist2.com>
X-Text-Single: =?ISO-8859-1?B?SWYgeW91IGNhbiByZWFkIHRoaXMgeW8=?=
=?ISO-8859-2?B?dSB1bmRlcnN0YW5kIHRoZSBleGFtcGxlLg==?=
X-Text: =?iso-8859-1?q?this=20is=20some=20text?=
X-Text: =?ISO-8859-1?Q?a?= =?ISO-8859-2?Q?_b?=
X-Date-Single: Tue, 5 Jul 2006 13:52:37 -0500
X-Date: Sat, 20 Nov 2021 14:22:01 -0800
X-Date: Sun, 21 Nov 2021 15:23:02 -0900
X-Id-Single: <myid@example.com> <myid2@example.com>
X-Id: <myid3@example.com>
X-Id: <myid4@example.com> <myid5@example.com>
Content-Type: multipart/mixed; boundary="festivus";
--festivus
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: base64
X-Custom-Header: 123
PGh0bWw+PHA+SSB3YXMgdGhpbmtpbmcgYWJvdXQgcXVpdHRpbmcgdGhlICZsZHF1bztle
HBvcnRpbmcmcmRxdW87IHRvIGZvY3VzIGp1c3Qgb24gdGhlICZsZHF1bztpbXBvcnRpbm
cmcmRxdW87LDwvcD48cD5idXQgdGhlbiBJIHRob3VnaHQsIHdoeSBub3QgZG8gYm90aD8
gJiN4MjYzQTs8L3A+PC9odG1sPg==
--festivus
Content-Type: message/rfc822
X-Custom-Header-2: 345
From: "Cosmo Kramer" <kramer@kramerica.com>
Subject: Exporting my book about coffee tables
Content-Type: multipart/mixed; boundary="giddyup";
--giddyup
Content-Type: text/plain; charset="utf-16"
Content-Transfer-Encoding: quoted-printable
=FF=FE=0C!5=D8"=DD5=D8)=DD5=D8-=DD =005=D8*=DD5=D8"=DD =005=D8"=
=DD5=D85=DD5=D8-=DD5=D8,=DD5=D8/=DD5=D81=DD =005=D8*=DD5=D86=DD =
=005=D8=1F=DD5=D8,=DD5=D8,=DD5=D8(=DD =005=D8-=DD5=D8)=DD5=D8"=
=DD5=D8=1E=DD5=D80=DD5=D8"=DD!=00
--giddyup
Content-Type: image/gif; name*1="about "; name*0="Book ";
name*2*=utf-8''%e2%98%95 tables.gif
Content-Transfer-Encoding: Base64
Content-Disposition: attachment
R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7
--giddyup--
--festivus--

File diff suppressed because it is too large Load Diff