@remit/mailbox-service 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +147 -0
- package/package.json +65 -0
- package/src/account-credentials.ts +128 -0
- package/src/adversarial-mime.e2e.test.ts +311 -0
- package/src/attribute-mapper.test.ts +78 -0
- package/src/attribute-mapper.ts +147 -0
- package/src/body-part-mapper.property.test.ts +354 -0
- package/src/body-part-mapper.ts +360 -0
- package/src/body-sync-queue.test.ts +124 -0
- package/src/body-sync-queue.ts +131 -0
- package/src/body-sync-terminal.test.ts +265 -0
- package/src/body-sync-terminal.ts +172 -0
- package/src/body-sync.ts +1202 -0
- package/src/connection-factory.ts +102 -0
- package/src/connection-test.ts +208 -0
- package/src/credentials.test.ts +181 -0
- package/src/filters/match.test.ts +181 -0
- package/src/filters/match.ts +143 -0
- package/src/filters/pipeline.ts +243 -0
- package/src/flag-push-terminal.test.ts +156 -0
- package/src/flag-push-terminal.ts +106 -0
- package/src/flag-push.test.ts +408 -0
- package/src/flag-push.ts +198 -0
- package/src/flag-queue.ts +500 -0
- package/src/heuristics/classifyByHeaders.test.ts +578 -0
- package/src/heuristics/classifyByHeaders.ts +369 -0
- package/src/heuristics/classifyPlacement.ts +96 -0
- package/src/heuristics/socialDomains.ts +23 -0
- package/src/heuristics/transactionalDomains.ts +26 -0
- package/src/imapflow-connect-retry.test.ts +108 -0
- package/src/imapflow-connection.e2e.test.ts +355 -0
- package/src/imapflow-connection.integ.test.ts +327 -0
- package/src/imapflow-connection.test.ts +161 -0
- package/src/imapflow-connection.ts +1374 -0
- package/src/index.ts +214 -0
- package/src/mailbox-cursor-rebuild.test.ts +171 -0
- package/src/mailbox-cursor-rebuild.ts +146 -0
- package/src/mailbox-cursor.test.ts +249 -0
- package/src/mailbox-cursor.ts +177 -0
- package/src/mailbox-management.test.ts +103 -0
- package/src/mailbox-management.ts +235 -0
- package/src/mailbox-queue.ts +258 -0
- package/src/mailbox-sync.test.ts +153 -0
- package/src/mailbox-sync.ts +590 -0
- package/src/message-move.ts +825 -0
- package/src/message-parser.ts +26 -0
- package/src/message-sync.ts +1021 -0
- package/src/mime-walker.test.ts +311 -0
- package/src/mime-walker.ts +305 -0
- package/src/outbox-queue.ts +294 -0
- package/src/pass-through-unit-of-work.ts +17 -0
- package/src/placement-move-terminal.test.ts +179 -0
- package/src/placement-move-terminal.ts +104 -0
- package/src/placement-move.ts +224 -0
- package/src/snippet.test.ts +213 -0
- package/src/snippet.ts +152 -0
- package/src/stale-message-reconcile.test.ts +82 -0
- package/src/stale-message-reconcile.ts +55 -0
- package/src/test-helpers/isolated-mailbox.ts +44 -0
- package/src/test-helpers/mailfuzz-connection.ts +27 -0
- package/src/test-helpers/mime-tree-generator.ts +461 -0
- package/src/text/normalizer.test.ts +223 -0
- package/src/text/normalizer.ts +140 -0
- package/src/types/mailparser-augment.d.ts +15 -0
- package/src/types/natural-porter-stemmer.d.ts +50 -0
- package/src/types/stopword.d.ts +69 -0
- package/src/types.ts +349 -0
- package/test/fixtures/mime/01-flat-text-plain.bodyparts.json +8 -0
- package/test/fixtures/mime/01-flat-text-plain.eml +10 -0
- package/test/fixtures/mime/01-flat-text-plain.expected.json +10 -0
- package/test/fixtures/mime/02-flat-text-html.bodyparts.json +8 -0
- package/test/fixtures/mime/02-flat-text-html.eml +10 -0
- package/test/fixtures/mime/02-flat-text-html.expected.json +10 -0
- package/test/fixtures/mime/03-alternative-text-html.bodyparts.json +20 -0
- package/test/fixtures/mime/03-alternative-text-html.eml +19 -0
- package/test/fixtures/mime/03-alternative-text-html.expected.json +16 -0
- package/test/fixtures/mime/04-mixed-html-pdf-attachment.bodyparts.json +22 -0
- package/test/fixtures/mime/04-mixed-html-pdf-attachment.eml +20 -0
- package/test/fixtures/mime/04-mixed-html-pdf-attachment.expected.json +16 -0
- package/test/fixtures/mime/05-mixed-html-octet-stream-pdf.bodyparts.json +22 -0
- package/test/fixtures/mime/05-mixed-html-octet-stream-pdf.eml +21 -0
- package/test/fixtures/mime/05-mixed-html-octet-stream-pdf.expected.json +16 -0
- package/test/fixtures/mime/06-related-html-cid-image.bodyparts.json +23 -0
- package/test/fixtures/mime/06-related-html-cid-image.eml +21 -0
- package/test/fixtures/mime/06-related-html-cid-image.expected.json +16 -0
- package/test/fixtures/mime/07-mixed-alternative-related-attachment.bodyparts.json +55 -0
- package/test/fixtures/mime/07-mixed-alternative-related-attachment.eml +47 -0
- package/test/fixtures/mime/07-mixed-alternative-related-attachment.expected.json +34 -0
- package/test/fixtures/mime/08-two-pdfs-same-filename.bodyparts.json +30 -0
- package/test/fixtures/mime/08-two-pdfs-same-filename.eml +26 -0
- package/test/fixtures/mime/08-two-pdfs-same-filename.expected.json +22 -0
- package/test/fixtures/mime/09-attachment-no-filename.bodyparts.json +21 -0
- package/test/fixtures/mime/09-attachment-no-filename.eml +20 -0
- package/test/fixtures/mime/09-attachment-no-filename.expected.json +16 -0
- package/test/fixtures/mime/10-calendar-invite.bodyparts.json +22 -0
- package/test/fixtures/mime/10-calendar-invite.eml +33 -0
- package/test/fixtures/mime/10-calendar-invite.expected.json +16 -0
- package/test/fixtures/mime/11-quoted-printable-text.bodyparts.json +8 -0
- package/test/fixtures/mime/11-quoted-printable-text.eml +10 -0
- package/test/fixtures/mime/11-quoted-printable-text.expected.json +10 -0
- package/test/fixtures/mime/12-base64-binary.bodyparts.json +22 -0
- package/test/fixtures/mime/12-base64-binary.eml +20 -0
- package/test/fixtures/mime/12-base64-binary.expected.json +16 -0
- package/test/fixtures/mime/13-message-rfc822-forward.bodyparts.json +22 -0
- package/test/fixtures/mime/13-message-rfc822-forward.eml +28 -0
- package/test/fixtures/mime/13-message-rfc822-forward.expected.json +16 -0
- package/test/fixtures/mime/14-deeply-nested-5-levels.bodyparts.json +38 -0
- package/test/fixtures/mime/14-deeply-nested-5-levels.eml +34 -0
- package/test/fixtures/mime/14-deeply-nested-5-levels.expected.json +10 -0
- package/test/fixtures/mime/15-empty-text-part.bodyparts.json +21 -0
- package/test/fixtures/mime/15-empty-text-part.eml +18 -0
- package/test/fixtures/mime/15-empty-text-part.expected.json +16 -0
- package/test/fixtures/mime/16-empty-non-text-part.bodyparts.json +30 -0
- package/test/fixtures/mime/16-empty-non-text-part.eml +24 -0
- package/test/fixtures/mime/16-empty-non-text-part.expected.json +22 -0
- package/test/fixtures/mime-adversarial-e2e/01-octet-stream-pdf.eml +21 -0
- package/test/fixtures/mime-adversarial-e2e/02-nested-related-cid-image.eml +31 -0
- package/test/fixtures/mime-adversarial-e2e/03-calendar-invite.eml +33 -0
- package/test/fixtures/mime-adversarial-e2e/04-forwarded-rfc822-with-attachments.eml +42 -0
- package/test/fixtures/mime-adversarial-e2e/05-tnef-winmail.eml +25 -0
- package/test/fixtures/mime-adversarial-e2e/06-8bit-non-ascii.eml +15 -0
- package/test/fixtures/mime-adversarial-e2e/07-quoted-printable-soft-breaks.eml +17 -0
- package/test/fixtures/mime-adversarial-e2e/08-alternative-empty-text.eml +18 -0
- package/tsconfig.json +8 -0
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"partPath": "0",
|
|
4
|
+
"isMultipart": true,
|
|
5
|
+
"mediaType": "MULTIPART",
|
|
6
|
+
"mediaSubtype": "mixed"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"partPath": "1",
|
|
10
|
+
"isMultipart": true,
|
|
11
|
+
"mediaType": "MULTIPART",
|
|
12
|
+
"mediaSubtype": "alternative"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"partPath": "1.1",
|
|
16
|
+
"isMultipart": false,
|
|
17
|
+
"mediaType": "TEXT",
|
|
18
|
+
"mediaSubtype": "plain"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"partPath": "1.2",
|
|
22
|
+
"isMultipart": false,
|
|
23
|
+
"mediaType": "TEXT",
|
|
24
|
+
"mediaSubtype": "html"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"partPath": "2",
|
|
28
|
+
"isMultipart": true,
|
|
29
|
+
"mediaType": "MULTIPART",
|
|
30
|
+
"mediaSubtype": "related"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"partPath": "2.1",
|
|
34
|
+
"isMultipart": false,
|
|
35
|
+
"mediaType": "TEXT",
|
|
36
|
+
"mediaSubtype": "html"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"partPath": "2.2",
|
|
40
|
+
"isMultipart": false,
|
|
41
|
+
"mediaType": "IMAGE",
|
|
42
|
+
"mediaSubtype": "png",
|
|
43
|
+
"contentId": "hero@example.org",
|
|
44
|
+
"dispositionFilename": "hero.png",
|
|
45
|
+
"disposition": "inline"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"partPath": "3",
|
|
49
|
+
"isMultipart": false,
|
|
50
|
+
"mediaType": "APPLICATION",
|
|
51
|
+
"mediaSubtype": "pdf",
|
|
52
|
+
"dispositionFilename": "report.pdf",
|
|
53
|
+
"disposition": "attachment"
|
|
54
|
+
}
|
|
55
|
+
]
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
From: alice@example.org
|
|
2
|
+
To: bob@example.org
|
|
3
|
+
Subject: Mixed/alternative/related/attachment fixture 07
|
|
4
|
+
Date: Thu, 28 May 2026 09:00:00 +0000
|
|
5
|
+
Message-Id: <fixture-07@example.org>
|
|
6
|
+
MIME-Version: 1.0
|
|
7
|
+
Content-Type: multipart/mixed; boundary="=_outer_07_="
|
|
8
|
+
|
|
9
|
+
--=_outer_07_=
|
|
10
|
+
Content-Type: multipart/alternative; boundary="=_alt_07_="
|
|
11
|
+
|
|
12
|
+
--=_alt_07_=
|
|
13
|
+
Content-Type: text/plain; charset=us-ascii
|
|
14
|
+
Content-Transfer-Encoding: 7bit
|
|
15
|
+
|
|
16
|
+
Plain alternative for fixture 07.
|
|
17
|
+
--=_alt_07_=
|
|
18
|
+
Content-Type: text/html; charset=us-ascii
|
|
19
|
+
Content-Transfer-Encoding: 7bit
|
|
20
|
+
|
|
21
|
+
<html><body><p>Html alternative for fixture 07.</p></body></html>
|
|
22
|
+
--=_alt_07_=--
|
|
23
|
+
|
|
24
|
+
--=_outer_07_=
|
|
25
|
+
Content-Type: multipart/related; boundary="=_rel_07_="; type="text/html"
|
|
26
|
+
|
|
27
|
+
--=_rel_07_=
|
|
28
|
+
Content-Type: text/html; charset=us-ascii
|
|
29
|
+
Content-Transfer-Encoding: 7bit
|
|
30
|
+
|
|
31
|
+
<html><body><p>Related html: <img src="cid:hero@example.org"></p></body></html>
|
|
32
|
+
--=_rel_07_=
|
|
33
|
+
Content-Type: image/png; name="hero.png"
|
|
34
|
+
Content-Transfer-Encoding: base64
|
|
35
|
+
Content-Disposition: inline; filename="hero.png"
|
|
36
|
+
Content-ID: <hero@example.org>
|
|
37
|
+
|
|
38
|
+
iVBORw0KGgpmaXh0dXJlMDdpbm5lcnBuZw==
|
|
39
|
+
--=_rel_07_=--
|
|
40
|
+
|
|
41
|
+
--=_outer_07_=
|
|
42
|
+
Content-Type: application/pdf; name="report.pdf"
|
|
43
|
+
Content-Transfer-Encoding: base64
|
|
44
|
+
Content-Disposition: attachment; filename="report.pdf"
|
|
45
|
+
|
|
46
|
+
JVBERi0xLjQKZml4dHVyZSAwNyBhdHRhY2htZW50CiVFT0YK
|
|
47
|
+
--=_outer_07_=--
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"pairs": [
|
|
3
|
+
{
|
|
4
|
+
"partPath": "1.1",
|
|
5
|
+
"contentType": "text/plain",
|
|
6
|
+
"contentSha256": "73d2f53c47d2e0800ecf20fc755eaa66fe07fe966b5f39b99eaa71457c6f003d",
|
|
7
|
+
"contentLength": 70
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"partPath": "1.2",
|
|
11
|
+
"contentType": "text/html",
|
|
12
|
+
"contentSha256": "1ec6301aa1799989189e5af46096890d8901d5a6cc6c0242b229a1be6dab9598",
|
|
13
|
+
"contentLength": 188
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"partPath": "2.1",
|
|
17
|
+
"contentType": "text/html",
|
|
18
|
+
"contentSha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
|
19
|
+
"contentLength": 0
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"partPath": "2.2",
|
|
23
|
+
"contentType": "image/png",
|
|
24
|
+
"contentSha256": "2d5748c3ed720a90b433f5840b2dc9f3ca82187f93c71b6f132bb6048a816f06",
|
|
25
|
+
"contentLength": 25
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"partPath": "3",
|
|
29
|
+
"contentType": "application/pdf",
|
|
30
|
+
"contentSha256": "636032d95796536ee2cbbe0db1b5bab0be628fdde66dc5ca9ebfb8c566055f26",
|
|
31
|
+
"contentLength": 36
|
|
32
|
+
}
|
|
33
|
+
]
|
|
34
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"partPath": "0",
|
|
4
|
+
"isMultipart": true,
|
|
5
|
+
"mediaType": "MULTIPART",
|
|
6
|
+
"mediaSubtype": "mixed"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"partPath": "1",
|
|
10
|
+
"isMultipart": false,
|
|
11
|
+
"mediaType": "TEXT",
|
|
12
|
+
"mediaSubtype": "plain"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"partPath": "2",
|
|
16
|
+
"isMultipart": false,
|
|
17
|
+
"mediaType": "APPLICATION",
|
|
18
|
+
"mediaSubtype": "pdf",
|
|
19
|
+
"dispositionFilename": "invoice.pdf",
|
|
20
|
+
"disposition": "attachment"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"partPath": "3",
|
|
24
|
+
"isMultipart": false,
|
|
25
|
+
"mediaType": "APPLICATION",
|
|
26
|
+
"mediaSubtype": "pdf",
|
|
27
|
+
"dispositionFilename": "invoice.pdf",
|
|
28
|
+
"disposition": "attachment"
|
|
29
|
+
}
|
|
30
|
+
]
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
From: alice@example.org
|
|
2
|
+
To: bob@example.org
|
|
3
|
+
Subject: Two PDFs same filename fixture 08
|
|
4
|
+
Date: Thu, 28 May 2026 09:00:00 +0000
|
|
5
|
+
Message-Id: <fixture-08@example.org>
|
|
6
|
+
MIME-Version: 1.0
|
|
7
|
+
Content-Type: multipart/mixed; boundary="=_boundary_08_="
|
|
8
|
+
|
|
9
|
+
--=_boundary_08_=
|
|
10
|
+
Content-Type: text/plain; charset=us-ascii
|
|
11
|
+
Content-Transfer-Encoding: 7bit
|
|
12
|
+
|
|
13
|
+
Two invoices attached, both named invoice.pdf.
|
|
14
|
+
--=_boundary_08_=
|
|
15
|
+
Content-Type: application/pdf; name="invoice.pdf"
|
|
16
|
+
Content-Transfer-Encoding: base64
|
|
17
|
+
Content-Disposition: attachment; filename="invoice.pdf"
|
|
18
|
+
|
|
19
|
+
JVBERi0xLjQKaW52b2ljZSBBCiVFT0YK
|
|
20
|
+
--=_boundary_08_=
|
|
21
|
+
Content-Type: application/pdf; name="invoice.pdf"
|
|
22
|
+
Content-Transfer-Encoding: base64
|
|
23
|
+
Content-Disposition: attachment; filename="invoice.pdf"
|
|
24
|
+
|
|
25
|
+
JVBERi0xLjQKaW52b2ljZSBCCiVFT0YK
|
|
26
|
+
--=_boundary_08_=--
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"pairs": [
|
|
3
|
+
{
|
|
4
|
+
"partPath": "1",
|
|
5
|
+
"contentType": "text/plain",
|
|
6
|
+
"contentSha256": "3e69e89d5b45b9e73ee4e9523c80e8e41b6e7f347cce8538844d2b14500549dc",
|
|
7
|
+
"contentLength": 46
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"partPath": "2",
|
|
11
|
+
"contentType": "application/pdf",
|
|
12
|
+
"contentSha256": "0d05c2ebe744a02a1c40e1e56b030f9be4259489924df20bf3f6fbab476f2a1c",
|
|
13
|
+
"contentLength": 24
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"partPath": "3",
|
|
17
|
+
"contentType": "application/pdf",
|
|
18
|
+
"contentSha256": "48ca00b9647ec2babe7d09dbef1ff41f2135a3a03f7e28605eb0c810380b74ab",
|
|
19
|
+
"contentLength": 24
|
|
20
|
+
}
|
|
21
|
+
]
|
|
22
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"partPath": "0",
|
|
4
|
+
"isMultipart": true,
|
|
5
|
+
"mediaType": "MULTIPART",
|
|
6
|
+
"mediaSubtype": "mixed"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"partPath": "1",
|
|
10
|
+
"isMultipart": false,
|
|
11
|
+
"mediaType": "TEXT",
|
|
12
|
+
"mediaSubtype": "plain"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"partPath": "2",
|
|
16
|
+
"isMultipart": false,
|
|
17
|
+
"mediaType": "APPLICATION",
|
|
18
|
+
"mediaSubtype": "octet-stream",
|
|
19
|
+
"disposition": "attachment"
|
|
20
|
+
}
|
|
21
|
+
]
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
From: alice@example.org
|
|
2
|
+
To: bob@example.org
|
|
3
|
+
Subject: Attachment no filename fixture 09
|
|
4
|
+
Date: Thu, 28 May 2026 09:00:00 +0000
|
|
5
|
+
Message-Id: <fixture-09@example.org>
|
|
6
|
+
MIME-Version: 1.0
|
|
7
|
+
Content-Type: multipart/mixed; boundary="=_boundary_09_="
|
|
8
|
+
|
|
9
|
+
--=_boundary_09_=
|
|
10
|
+
Content-Type: text/plain; charset=us-ascii
|
|
11
|
+
Content-Transfer-Encoding: 7bit
|
|
12
|
+
|
|
13
|
+
Anonymous blob attached, no Content-Disposition filename.
|
|
14
|
+
--=_boundary_09_=
|
|
15
|
+
Content-Type: application/octet-stream
|
|
16
|
+
Content-Transfer-Encoding: base64
|
|
17
|
+
Content-Disposition: attachment
|
|
18
|
+
|
|
19
|
+
Zml4dHVyZSAwOSBiaW5hcnkgYmxvYg==
|
|
20
|
+
--=_boundary_09_=--
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"pairs": [
|
|
3
|
+
{
|
|
4
|
+
"partPath": "1",
|
|
5
|
+
"contentType": "text/plain",
|
|
6
|
+
"contentSha256": "3fc90ec4092c7c00da07e9ad8dfc93575db26a51f9193f074d3e41958e144b61",
|
|
7
|
+
"contentLength": 57
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"partPath": "2",
|
|
11
|
+
"contentType": "application/octet-stream",
|
|
12
|
+
"contentSha256": "6b76fec0e7b743629249550cb0b24f37d8772b8c2b05c0c2ed11733e6b4a280a",
|
|
13
|
+
"contentLength": 22
|
|
14
|
+
}
|
|
15
|
+
]
|
|
16
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"partPath": "0",
|
|
4
|
+
"isMultipart": true,
|
|
5
|
+
"mediaType": "MULTIPART",
|
|
6
|
+
"mediaSubtype": "mixed"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"partPath": "1",
|
|
10
|
+
"isMultipart": false,
|
|
11
|
+
"mediaType": "TEXT",
|
|
12
|
+
"mediaSubtype": "html"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"partPath": "2",
|
|
16
|
+
"isMultipart": false,
|
|
17
|
+
"mediaType": "TEXT",
|
|
18
|
+
"mediaSubtype": "calendar",
|
|
19
|
+
"dispositionFilename": "invite.ics",
|
|
20
|
+
"disposition": "attachment"
|
|
21
|
+
}
|
|
22
|
+
]
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
From: alice@example.org
|
|
2
|
+
To: bob@example.org
|
|
3
|
+
Subject: Calendar invite fixture 10
|
|
4
|
+
Date: Thu, 28 May 2026 09:00:00 +0000
|
|
5
|
+
Message-Id: <fixture-10@example.org>
|
|
6
|
+
MIME-Version: 1.0
|
|
7
|
+
Content-Type: multipart/mixed; boundary="=_boundary_10_="
|
|
8
|
+
|
|
9
|
+
--=_boundary_10_=
|
|
10
|
+
Content-Type: text/html; charset=us-ascii
|
|
11
|
+
Content-Transfer-Encoding: 7bit
|
|
12
|
+
|
|
13
|
+
<html><body><p>Meeting invite attached.</p></body></html>
|
|
14
|
+
--=_boundary_10_=
|
|
15
|
+
Content-Type: text/calendar; method=REQUEST; charset=us-ascii; name="invite.ics"
|
|
16
|
+
Content-Transfer-Encoding: 7bit
|
|
17
|
+
Content-Disposition: attachment; filename="invite.ics"
|
|
18
|
+
|
|
19
|
+
BEGIN:VCALENDAR
|
|
20
|
+
VERSION:2.0
|
|
21
|
+
PRODID:-//Remit//Fixture 10//EN
|
|
22
|
+
METHOD:REQUEST
|
|
23
|
+
BEGIN:VEVENT
|
|
24
|
+
UID:fixture-10-event@example.org
|
|
25
|
+
DTSTAMP:20260528T090000Z
|
|
26
|
+
DTSTART:20260601T140000Z
|
|
27
|
+
DTEND:20260601T150000Z
|
|
28
|
+
SUMMARY:Fixture 10 sync
|
|
29
|
+
ORGANIZER:mailto:alice@example.org
|
|
30
|
+
ATTENDEE:mailto:bob@example.org
|
|
31
|
+
END:VEVENT
|
|
32
|
+
END:VCALENDAR
|
|
33
|
+
--=_boundary_10_=--
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"pairs": [
|
|
3
|
+
{
|
|
4
|
+
"partPath": "1",
|
|
5
|
+
"contentType": "text/html",
|
|
6
|
+
"contentSha256": "c42f526dfc9035c9fa9afa4185c12900f57667d3dbcf02c29393f2745da33c8b",
|
|
7
|
+
"contentLength": 57
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"partPath": "2",
|
|
11
|
+
"contentType": "text/calendar",
|
|
12
|
+
"contentSha256": "73e7b9931e4fc42e7a835219212b822797e9e593af3a4a7143d0cba00c6c19e6",
|
|
13
|
+
"contentLength": 309
|
|
14
|
+
}
|
|
15
|
+
]
|
|
16
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
From: alice@example.org
|
|
2
|
+
To: bob@example.org
|
|
3
|
+
Subject: Quoted-printable fixture 11
|
|
4
|
+
Date: Thu, 28 May 2026 09:00:00 +0000
|
|
5
|
+
Message-Id: <fixture-11@example.org>
|
|
6
|
+
MIME-Version: 1.0
|
|
7
|
+
Content-Type: text/plain; charset=utf-8
|
|
8
|
+
Content-Transfer-Encoding: quoted-printable
|
|
9
|
+
|
|
10
|
+
Caf=C3=A9 r=C3=A9union: hello bob! =E2=80=94 alice
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"partPath": "0",
|
|
4
|
+
"isMultipart": true,
|
|
5
|
+
"mediaType": "MULTIPART",
|
|
6
|
+
"mediaSubtype": "mixed"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"partPath": "1",
|
|
10
|
+
"isMultipart": false,
|
|
11
|
+
"mediaType": "TEXT",
|
|
12
|
+
"mediaSubtype": "plain"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"partPath": "2",
|
|
16
|
+
"isMultipart": false,
|
|
17
|
+
"mediaType": "IMAGE",
|
|
18
|
+
"mediaSubtype": "jpeg",
|
|
19
|
+
"dispositionFilename": "photo.jpg",
|
|
20
|
+
"disposition": "attachment"
|
|
21
|
+
}
|
|
22
|
+
]
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
From: alice@example.org
|
|
2
|
+
To: bob@example.org
|
|
3
|
+
Subject: Base64 binary jpeg fixture 12
|
|
4
|
+
Date: Thu, 28 May 2026 09:00:00 +0000
|
|
5
|
+
Message-Id: <fixture-12@example.org>
|
|
6
|
+
MIME-Version: 1.0
|
|
7
|
+
Content-Type: multipart/mixed; boundary="=_boundary_12_="
|
|
8
|
+
|
|
9
|
+
--=_boundary_12_=
|
|
10
|
+
Content-Type: text/plain; charset=us-ascii
|
|
11
|
+
Content-Transfer-Encoding: 7bit
|
|
12
|
+
|
|
13
|
+
Photo attached.
|
|
14
|
+
--=_boundary_12_=
|
|
15
|
+
Content-Type: image/jpeg; name="photo.jpg"
|
|
16
|
+
Content-Transfer-Encoding: base64
|
|
17
|
+
Content-Disposition: attachment; filename="photo.jpg"
|
|
18
|
+
|
|
19
|
+
/9j/4AAQSkZJRmZpeHR1cmUxMg==
|
|
20
|
+
--=_boundary_12_=--
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"pairs": [
|
|
3
|
+
{
|
|
4
|
+
"partPath": "1",
|
|
5
|
+
"contentType": "text/plain",
|
|
6
|
+
"contentSha256": "4ac0cf36cab465e1536842bffdccde687fdf161754077c715280ff5c1038c4a6",
|
|
7
|
+
"contentLength": 15
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"partPath": "2",
|
|
11
|
+
"contentType": "image/jpeg",
|
|
12
|
+
"contentSha256": "2cdd8c64ba22f9a5954d3d82433e72398d74d464cca016a17cde50da60204242",
|
|
13
|
+
"contentLength": 19
|
|
14
|
+
}
|
|
15
|
+
]
|
|
16
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"partPath": "0",
|
|
4
|
+
"isMultipart": true,
|
|
5
|
+
"mediaType": "MULTIPART",
|
|
6
|
+
"mediaSubtype": "mixed"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"partPath": "1",
|
|
10
|
+
"isMultipart": false,
|
|
11
|
+
"mediaType": "TEXT",
|
|
12
|
+
"mediaSubtype": "plain"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"partPath": "2",
|
|
16
|
+
"isMultipart": false,
|
|
17
|
+
"mediaType": "MESSAGE",
|
|
18
|
+
"mediaSubtype": "rfc822",
|
|
19
|
+
"dispositionFilename": "forwarded.eml",
|
|
20
|
+
"disposition": "attachment"
|
|
21
|
+
}
|
|
22
|
+
]
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
From: alice@example.org
|
|
2
|
+
To: bob@example.org
|
|
3
|
+
Subject: Forwarded message fixture 13
|
|
4
|
+
Date: Thu, 28 May 2026 09:00:00 +0000
|
|
5
|
+
Message-Id: <fixture-13@example.org>
|
|
6
|
+
MIME-Version: 1.0
|
|
7
|
+
Content-Type: multipart/mixed; boundary="=_boundary_13_="
|
|
8
|
+
|
|
9
|
+
--=_boundary_13_=
|
|
10
|
+
Content-Type: text/plain; charset=us-ascii
|
|
11
|
+
Content-Transfer-Encoding: 7bit
|
|
12
|
+
|
|
13
|
+
Forwarding the message below.
|
|
14
|
+
--=_boundary_13_=
|
|
15
|
+
Content-Type: message/rfc822
|
|
16
|
+
Content-Disposition: attachment; filename="forwarded.eml"
|
|
17
|
+
|
|
18
|
+
From: carol@example.org
|
|
19
|
+
To: alice@example.org
|
|
20
|
+
Subject: Original forwarded fixture 13
|
|
21
|
+
Date: Wed, 27 May 2026 12:00:00 +0000
|
|
22
|
+
Message-Id: <fixture-13-inner@example.org>
|
|
23
|
+
MIME-Version: 1.0
|
|
24
|
+
Content-Type: text/plain; charset=us-ascii
|
|
25
|
+
Content-Transfer-Encoding: 7bit
|
|
26
|
+
|
|
27
|
+
Original message body that ends up forwarded.
|
|
28
|
+
--=_boundary_13_=--
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"pairs": [
|
|
3
|
+
{
|
|
4
|
+
"partPath": "1",
|
|
5
|
+
"contentType": "text/plain",
|
|
6
|
+
"contentSha256": "2f45158866c85f8fccc88d7d2f96cf29efb6bfa86091a46a3db2f346202ce1a7",
|
|
7
|
+
"contentLength": 29
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"partPath": "2",
|
|
11
|
+
"contentType": "message/rfc822",
|
|
12
|
+
"contentSha256": "73adfff6626c2ce287ce6b21e9860e3ad0a18ca068d36759674931bcc7a3d2a6",
|
|
13
|
+
"contentLength": 305
|
|
14
|
+
}
|
|
15
|
+
]
|
|
16
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"partPath": "0",
|
|
4
|
+
"isMultipart": true,
|
|
5
|
+
"mediaType": "MULTIPART",
|
|
6
|
+
"mediaSubtype": "mixed"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"partPath": "1",
|
|
10
|
+
"isMultipart": true,
|
|
11
|
+
"mediaType": "MULTIPART",
|
|
12
|
+
"mediaSubtype": "mixed"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"partPath": "1.1",
|
|
16
|
+
"isMultipart": true,
|
|
17
|
+
"mediaType": "MULTIPART",
|
|
18
|
+
"mediaSubtype": "mixed"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"partPath": "1.1.1",
|
|
22
|
+
"isMultipart": true,
|
|
23
|
+
"mediaType": "MULTIPART",
|
|
24
|
+
"mediaSubtype": "mixed"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"partPath": "1.1.1.1",
|
|
28
|
+
"isMultipart": true,
|
|
29
|
+
"mediaType": "MULTIPART",
|
|
30
|
+
"mediaSubtype": "mixed"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"partPath": "1.1.1.1.1",
|
|
34
|
+
"isMultipart": false,
|
|
35
|
+
"mediaType": "TEXT",
|
|
36
|
+
"mediaSubtype": "plain"
|
|
37
|
+
}
|
|
38
|
+
]
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
From: alice@example.org
|
|
2
|
+
To: bob@example.org
|
|
3
|
+
Subject: Deeply nested 5 levels fixture 14
|
|
4
|
+
Date: Thu, 28 May 2026 09:00:00 +0000
|
|
5
|
+
Message-Id: <fixture-14@example.org>
|
|
6
|
+
MIME-Version: 1.0
|
|
7
|
+
Content-Type: multipart/mixed; boundary="=_lvl1_14_="
|
|
8
|
+
|
|
9
|
+
--=_lvl1_14_=
|
|
10
|
+
Content-Type: multipart/mixed; boundary="=_lvl2_14_="
|
|
11
|
+
|
|
12
|
+
--=_lvl2_14_=
|
|
13
|
+
Content-Type: multipart/mixed; boundary="=_lvl3_14_="
|
|
14
|
+
|
|
15
|
+
--=_lvl3_14_=
|
|
16
|
+
Content-Type: multipart/mixed; boundary="=_lvl4_14_="
|
|
17
|
+
|
|
18
|
+
--=_lvl4_14_=
|
|
19
|
+
Content-Type: multipart/mixed; boundary="=_lvl5_14_="
|
|
20
|
+
|
|
21
|
+
--=_lvl5_14_=
|
|
22
|
+
Content-Type: text/plain; charset=us-ascii
|
|
23
|
+
Content-Transfer-Encoding: 7bit
|
|
24
|
+
|
|
25
|
+
Bottom of the five-level nest.
|
|
26
|
+
--=_lvl5_14_=--
|
|
27
|
+
|
|
28
|
+
--=_lvl4_14_=--
|
|
29
|
+
|
|
30
|
+
--=_lvl3_14_=--
|
|
31
|
+
|
|
32
|
+
--=_lvl2_14_=--
|
|
33
|
+
|
|
34
|
+
--=_lvl1_14_=--
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"partPath": "0",
|
|
4
|
+
"isMultipart": true,
|
|
5
|
+
"mediaType": "MULTIPART",
|
|
6
|
+
"mediaSubtype": "mixed"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"partPath": "1",
|
|
10
|
+
"isMultipart": false,
|
|
11
|
+
"mediaType": "TEXT",
|
|
12
|
+
"mediaSubtype": "plain",
|
|
13
|
+
"sizeOctets": 0
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"partPath": "2",
|
|
17
|
+
"isMultipart": false,
|
|
18
|
+
"mediaType": "TEXT",
|
|
19
|
+
"mediaSubtype": "html"
|
|
20
|
+
}
|
|
21
|
+
]
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
From: alice@example.org
|
|
2
|
+
To: bob@example.org
|
|
3
|
+
Subject: Empty text part fixture 15
|
|
4
|
+
Date: Thu, 28 May 2026 09:00:00 +0000
|
|
5
|
+
Message-Id: <fixture-15@example.org>
|
|
6
|
+
MIME-Version: 1.0
|
|
7
|
+
Content-Type: multipart/mixed; boundary="=_boundary_15_="
|
|
8
|
+
|
|
9
|
+
--=_boundary_15_=
|
|
10
|
+
Content-Type: text/plain; charset=us-ascii
|
|
11
|
+
Content-Transfer-Encoding: 7bit
|
|
12
|
+
|
|
13
|
+
--=_boundary_15_=
|
|
14
|
+
Content-Type: text/html; charset=us-ascii
|
|
15
|
+
Content-Transfer-Encoding: 7bit
|
|
16
|
+
|
|
17
|
+
<html><body><p>HTML part with non-empty content; text/plain sibling is empty.</p></body></html>
|
|
18
|
+
--=_boundary_15_=--
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"pairs": [
|
|
3
|
+
{
|
|
4
|
+
"partPath": "1",
|
|
5
|
+
"contentType": "text/plain",
|
|
6
|
+
"contentSha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
|
7
|
+
"contentLength": 0
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"partPath": "2",
|
|
11
|
+
"contentType": "text/html",
|
|
12
|
+
"contentSha256": "7bdf108bcc691f01bec50cf4d094ed4e5d0fa0b2a542aeecc4e3018759ddb557",
|
|
13
|
+
"contentLength": 95
|
|
14
|
+
}
|
|
15
|
+
]
|
|
16
|
+
}
|