forked from Unstructured-IO/unstructured
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add
extract_attachment_info
(Unstructured-IO#112)
* Adds function to extract attachments and their metadata from eml files
- Loading branch information
Showing
6 changed files
with
118 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
MIME-Version: 1.0 | ||
Date: Fri, 23 Dec 2022 12:08:48 -0600 | ||
Message-ID: <CAPgNNXSzLVJ-d1OCX_TjFgJU7ugtQrjFybPtAMmmYZzphxNFYg@mail.gmail.com> | ||
Subject: Fake email with attachment | ||
From: Mallori Harrell <mallori@unstructured.io> | ||
To: Mallori Harrell <mallori@unstructured.io> | ||
Content-Type: multipart/mixed; boundary="0000000000005d654405f082adb7" | ||
|
||
--0000000000005d654405f082adb7 | ||
Content-Type: multipart/alternative; boundary="0000000000005d654205f082adb5" | ||
--0000000000005d654205f082adb5 | ||
Content-Type: text/plain; charset="UTF-8" | ||
Hello! | ||
Here's the attachments! | ||
It includes: | ||
- Lots of whitespace | ||
- Little to no content | ||
- and is a quick read | ||
Best, | ||
Mallori | ||
--0000000000005d654205f082adb5 | ||
Content-Type: text/html; charset="UTF-8" | ||
Content-Transfer-Encoding: quoted-printable | ||
|
||
<div dir=3D"ltr">Hello!=C2=A0<div><br></div><div>Here's the attachments= | ||
!</div><div><br></div><div>It includes:</div><div><ul><li style=3D"margin-l= | ||
eft:15px">Lots of whitespace</li><li style=3D"margin-left:15px">Little=C2= | ||
=A0to no content</li><li style=3D"margin-left:15px">and is a quick read</li= | ||
></ul><div>Best,</div></div><div><br></div><div>Mallori</div><div dir=3D"lt= | ||
r" class=3D"gmail_signature" data-smartmail=3D"gmail_signature"><div dir=3D= | ||
"ltr"><div><div><br></div></div></div></div></div> | ||
|
||
--0000000000005d654205f082adb5-- | ||
--0000000000005d654405f082adb7 | ||
Content-Type: text/plain; charset="US-ASCII"; name="fake-attachment.txt" | ||
Content-Disposition: attachment; filename="fake-attachment.txt" | ||
Content-Transfer-Encoding: base64 | ||
X-Attachment-Id: f_lc0tto5j0 | ||
Content-ID: <f_lc0tto5j0> | ||
SGV5IHRoaXMgaXMgYSBmYWtlIGF0dGFjaG1lbnQh | ||
--0000000000005d654405f082adb7-- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = "0.3.5-dev3" # pragma: no cover | ||
__version__ = "0.3.5-dev4" # pragma: no cover |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters