mirror of
https://github.com/Unstructured-IO/unstructured.git
synced 2025-07-08 01:22:43 +00:00

closes #816 ## Description Added functionality for `partition_email` to automatically decode base64 text before passing it to `partition_text` or `partition_html`. Also adds base64 encoded email text test cases.
27 lines
980 B
Plaintext
27 lines
980 B
Plaintext
MIME-Version: 1.0
|
|
Date: Fri, 16 Dec 2022 17:04:16 -0500
|
|
Message-ID:
|
|
<CADc-_xaLB2FeVQ7mNsoX+NJb_7hAJhBKa_zet-rtgPGenj0uVw@mail.gmail.com>
|
|
Subject: Test Email
|
|
From: Matthew Robinson <mrobinson@unstructured.io>
|
|
To: NotMatthew <NotMatthew@notunstructured.com>
|
|
Content-Type: multipart/alternative; boundary="00000000000095c9b205eff92630"
|
|
|
|
--00000000000095c9b205eff92630
|
|
Content-Type: text/plain; charset="UTF-8"
|
|
Content-Transfer-Encoding: base64
|
|
|
|
VGhpcyBpcyBhIHRlc3QgZW1haWwgdG8gdXNlIGZvciB1bml0IHRlc3RzLgoKSW1wb3J0YW50IHBv
|
|
aW50czoKCiAgIC0gUm9zZXMgYXJlIHJlZAogICAtIFZpb2xldHMgYXJlIGJsdWUK
|
|
|
|
--00000000000095c9b205eff92630
|
|
Content-Type: text/html; charset="UTF-8"
|
|
Content-Transfer-Encoding: base64
|
|
|
|
PGRpdiBkaXI9Imx0ciI+PGRpdj5UaGlzIGlzIGEgdGVzdCBlbWFpbCB0byB1c2UgZm9yIHVuaXQg
|
|
dGVzdHMuPC9kaXY+PGRpdj48YnI+PC9kaXY+PGRpdj5JbXBvcnRhbnQgcG9pbnRzOjwvZGl2Pjxk
|
|
aXY+PHVsPjxsaT5Sb3NlcyBhcmUgcmVkPC9saT48bGk+VmlvbGV0cyBhcmUgYmx1ZTwvbGk+PC91
|
|
bD48L2Rpdj48L2Rpdj4K
|
|
|
|
--00000000000095c9b205eff92630--
|