feat(mail): RFC822 message parsing (headers, body, attachments)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-21 23:51:29 +01:00
parent b9d0b57f84
commit d73aabca96
5 changed files with 220 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
From: "Bob" <bob@trusted.com>
To: me@example.com
Subject: Your Invoice #5
Date: Sat, 20 Jun 2026 10:00:00 +0000
Message-ID: <abc123@trusted.com>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="BOUNDARY"
--BOUNDARY
Content-Type: text/plain; charset=utf-8
Hello, here is your invoice.
--BOUNDARY
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment; filename="invoice.txt"
LINE-ITEM 1: 100.00
--BOUNDARY--