# MailParse
This library is intended to convert to and from a raw email (EML format) to a Python dictionnary.
This is the current library used at [ImprovMX](https://improvmx.com) and [Fernand](https://getfernand.com).
It was heavily tested in production by handling millions of emails that were parsed to be sent as JSON dictionnary to webhooks.
## Features
* Support emails with complex structure, such as inline images, attachments, and other odd media.
* Battle tested in production at ImprovMX
## Decoding an EML email
Take this email sample:
sample.eml:
```eml
Delivered-To: some-user@recipient.com
Received: by 2002:xxxx:2010:0:b0:1e2:d052:cd91 with SMTP id t16csp2528xxxxx;
Thu, 13 Oct 2022 02:23:36 -0700 (PDT)
Return-Path: <some-return-path@sender.com>
Received: from server-001.forwarder.com (server-001.forwarder.com. [198.61.254.xxx])
by mx.webmail.com with UTF8SMTPS id p2-20020a056902114200b006c081d13801si16135744ybu.666.2022.10.13.02.23.xxx
for <some-user@recipient.com>
(version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
Thu, 13 Oct 2022 02:23:34 -0700 (PDT)
DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=reflectiv.net; q=dns/txt; s=mx; t=1665653008; x=1665739408; h=Content-Type: MIME-Version: In-Reply-To: References: To: To: Message-Id: Subject: Subject: Date: From: From: Sender; bh=/53IJTVUCdu+CZR3Ar3YkFZdMTe6DkgbtBKyDBVn/2I=; b=WRKUEgi1Xl4V3furRD19kktudXg5b9r6ORA9vBU39ba2OXACtrWcav8dHQKB1Eyu5fegSaW/ GYLVXDfAxljjpXrEtKIBlmizKidyrWzLesz+H89fJeHip0K1GU7M2HfgaN+CLpXpUm6FsW3Z CA/Y2Dmp/hdeQS6WdUmjoHDDvlw=
Received: from server-001.firstforward.com (server-001.firstforward.com [104.245.209.xxx]) by 9a93c0110be9 with SMTP id <undefined> (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Thu, 13 Oct 2022 09:23:26 GMT
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; s=pm20220416; d=pm.mtasv.net; h=From:Date:Subject:Message-Id:To:References:In-Reply-To:MIME-Version:Content-Type; bh=9T5/y8MgajuzE8mei59utoNV/m4=; b=zgc4MHKYAbg7OCQsmavFPXrQOAk9/HoC0HDz29xIlNG1IEPQduX/erndJ71fz8dkMGk3lyYg1K9J
w2lLw7cWrYCPETs+6Q4HPKEWPdyxxc3llc1X5iDCkB+MMQVXM5zQXm8+dhBOKI+E1ey7crLRNRFP
z2D09bquYC/TRuEDKY0=
Received: by server-001.firstforward.com id h8vcgs27tk4e for <some-user@recipient.com>; Thu, 13 Oct 2022 05:23:25 -0400 (envelope-from <pm_bounces@bounces.sender.com>)
DKIM-Signature: v=1; a=rsa-sha256; d=sender.com; s=20220909140117pm; c=relaxed/relaxed; i=cyril@sender.com; t=1665653004; h=date:date:from:from:message-id:reply-to:sender:subject:subject:to:to:cc: references:in-reply-to:feedback-id:mime-version:content-type; bh=/53IJTVUCdu+CZR3Ar3YkFZdMTe6DkgbtBKyDBVn/2I=; b=IdBcDvOE64rtHIZ0HlqGC3/PuYGv/pV3Vk4flWObFSSM96y+3p8epWb/02xd+skEStV0Oy/p1gl NiIrgu9yimzBbXlc+2TtjcfMjNnp/1cOL27mMeRgxi1XvphcWXgq/hMs+6bF3QJl6r9kpD2M9QyEV lpcQ61nDmS/G5sWTphs=
From: Cyril <cyril@sender.com>
Date: Thu, 13 Oct 2022 09:23:24 +0000
Subject: Sample email
Message-Id: <68950604-d564-40c2-bcb4-e58f5070fdcb@mailsender.net>
To: some-user@recipient.com
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary=mk3-20c60ed498f446c485dcc6ebfbf93421
--mk3-20c60ed498f446c485dcc6ebfbf93421
Content-Type: multipart/related; boundary="=-Z2apUQnAeKYD25qUfsotFw=="
--=-Z2apUQnAeKYD25qUfsotFw==
Content-Type: multipart/alternative; boundary=mk3-b9ac3b13b7b54e60b6b1d61772776994; charset=UTF-8
--mk3-b9ac3b13b7b54e60b6b1d61772776994
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
This is a sample email that contains *inline images* and *attachments* to
showcase how MailParse will handle these.
Look at this:
[image: nice-animation.gif]
Nice, isn't it?
--mk3-b9ac3b13b7b54e60b6b1d61772776994
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr"><div class=3D"gmail_quote"><div dir=3D"ltr"><div class=3D"=
gmail_quote"><div dir=3D"ltr">This is a sample email that contains=C2=A0<u>=
inline images</u>=C2=A0and=C2=A0<b>attachments</b>=C2=A0to showcase how Mai=
lParser will handle these.<div><br></div><div>Look at this:</div><div><img =
src=3D"cid:ii_l96uj1bo1" alt=3D"nice-animation.gif" width=3D"542" height=3D=
"542"><br></div><div><br></div><div>Nice, isn't it?<br></div><div><br><=
/div></div>
</div></div>
</div></div>
--mk3-b9ac3b13b7b54e60b6b1d61772776994--
--=-Z2apUQnAeKYD25qUfsotFw==
Content-Type: image/gif; name=nice-animation.gif
Content-Transfer-Encoding: base64
Content-Id: <ii_l96uj1bo1>
Content-Disposition: inline; filename=nice-animation.gif
R0lGODlhAQABAIABAP///wAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
--=-Z2apUQnAeKYD25qUfsotFw==--
--mk3-20c60ed498f446c485dcc6ebfbf93421
Content-Type: application/pdf; name=fake.pdf
Content-Transfer-Encoding: base64
Content-Id: <f_l96uiulr0>
Content-Disposition: attachment; filename=fake.pdf
JVBERi0xLjIgCjkgMCBvYmoKPDwKPj4Kc3RyZWFtCkJULyAzMiBUZiggIFlPVVIgVEVYVCBIRVJF
ICAgKScgRVQKZW5kc3RyZWFtCmVuZG9iago0IDAgb2JqCjw8Ci9UeXBlIC9QYWdlCi9QYXJlbnQg
NSAwIFIKL0NvbnRlbnRzIDkgMCBSCj4CmVuZG9iago1IDAgb2JqCjw8Ci9LaWRzIFs0IDAgUiBdC
i9Db3VudCAxCi9UeXBlIC9QYWdlcwovTWVkaWFCb3ggWyAwIDAgMjUwIDUwIF0KPj4KZW5kb2JqC
jMgMCBvYmoKPDwKL1BhZ2VzIDUgMCBSCi9UeXBlIC9DYXRhbG9nCj4+CmVuZG9iagp0cmFpbGVyC
jw8Ci9Sb290IDMgMCBSCj4+CiUlRU9G
--mk3-20c60ed498f446c485dcc6ebfbf93421--
```
Using `mailparse.EmailDecode`:
```python
from mailparse import EmailDecode
import json
decoded = EmailDecode.open('./sample.eml')
print(json.dumps(decoded, indent=4))
```
The output will be:
```json
{
"headers": {
"Received": [
"by 2002:xxxx:2010:0:b0:1e2:d052:cd91 with SMTP id t16csp2528xxxxx; Thu, 13 Oct 2022 02:23:36 -0700 (PDT)",
"from server-001.forwarder.com (server-001.forwarder.com. [198.61.254.xxx]) by mx.webmail.com with UTF8SMTPS id p2-20020a056902114200b006c081d13801si16135744ybu.666.2022.10.13.02.23.xxx for <some-user@recipient.com> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 13 Oct 2022 02:23:34 -0700 (PDT)",
"from server-001.firstforward.com (server-001.firstforward.com [104.245.209.xxx]) by 9a93c0110be9 with SMTP id <undefined> (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Thu, 13 Oct 2022 09:23:26 GMT",
"by server-001.firstforward.com id h8vcgs27tk4e for <some-user@recipient.com>; Thu, 13 Oct 2022 05:23:25 -0400 (envelope-from <pm_bounces@bounces.sender.com>)"
],
"DKIM-Signature": [
"a=rsa-sha256; v=1; c=relaxed/relaxed; d=reflectiv.net; q=dns/txt; s=mx; t=1665653008; x=1665739408; h=Content-Type: MIME-Version: In-Reply-To: References: To: To: Message-Id: Subject: Subject: Date: From: From: Sender; bh=/53IJTVUCdu+CZR3Ar3YkFZdMTe6DkgbtBKyDBVn/2I=; b=WRKUEgi1Xl4V3furRD19kktudXg5b9r6ORA9vBU39ba2OXACtrWcav8dHQKB1Eyu5fegSaW/ GYLVXDfAxljjpXrEtKIBlmizKidyrWzLesz+H89fJeHip0K1GU7M2HfgaN+CLpXpUm6FsW3Z CA/Y2Dmp/hdeQS6WdUmjoHDDvlw=",
"v=1; a=rsa-sha1; c=relaxed/relaxed; s=pm20220416; d=pm.mtasv.net; h=From:Date:Subject:Message-Id:To:References:In-Reply-To:MIME-Version:Content-Type; bh=9T5/y8MgajuzE8mei59utoNV/m4=; b=zgc4MHKYAbg7OCQsmavFPXrQOAk9/HoC0HDz29xIlNG1IEPQduX/erndJ71fz8dkMGk3lyYg1K9J w2lLw7cWrYCPETs+6Q4HPKEWPdyxxc3llc1X5iDCkB+MMQVXM5zQXm8+dhBOKI+E1ey7crLRNRFP z2D09bquYC/TRuEDKY0=",
"v=1; a=rsa-sha256; d=sender.com; s=20220909140117pm; c=relaxed/relaxed; i=cyril@sender.com; t=1665653004; h=date:date:from:from:message-id:reply-to:sender:subject:subject:to:to:cc: references:in-reply-to:feedback-id:mime-version:content-type; bh=/53IJTVUCdu+CZR3Ar3YkFZdMTe6DkgbtBKyDBVn/2I=; b=IdBcDvOE64rtHIZ0HlqGC3/PuYGv/pV3Vk4flWObFSSM96y+3p8epWb/02xd+skEStV0Oy/p1gl NiIrgu9yimzBbXlc+2TtjcfMjNnp/1cOL27mMeRgxi1XvphcWXgq/hMs+6bF3QJl6r9kpD2M9QyEV lpcQ61nDmS/G5sWTphs="
],
"Delivered-To": {
"name": null,
"email": "some-user@recipient.com"
},
"Mime-Version": "1.0"
},
"from": {
"name": "Cyril",
"email": "cyril@sender.com"
},
"return-path": {
"name": null,
"email": "some-return-path@sender.com"
},
"message-id": "<68950604-d564-40c2-bcb4-e58f5070fdcb@mailsender.net>",
"subject": "Sample email",
"to": [
{
"name": null,
"email": "some-user@recipient.com"
}
],
"date": "Thu, 13 Oct 2022 09:23:24 +0000",
"timestamp": 1665653004,
"text": "This is a sample email that contains *inline images* and *attachments* to\nshowcase how MailParse will handle these.\n\nLook at this:\n[image: nice-animation.gif]\n\nNice, isn't it?",
"html": "<div dir=\"ltr\"><div class=\"gmail_quote\"><div dir=\"ltr\"><div class=\"gmail_quote\"><div dir=\"ltr\">This is a sample email that contains\u00a0<u>inline images</u>\u00a0and\u00a0<b>attachments</b>\u00a0to showcase how MailParse will handle these.<div><br></div><div>Look at this:</div><div><img src=\"cid:ii_l96uj1bo1\" alt=\"nice-animation.gif\" width=\"542\" height=\"542\"><br></div><div><br></div><div>Nice, isn't it?<br></div><div><br></div></div>\n</div></div>\n</div></div>",
"inlines": [
{
"type": "image/gif",
"name": "nice-animation.gif",
"content": "R0lGODlhAQABAIABAP///wAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",
"cid": "ii_l96uj1bo1"
}
],
"attachments": [
{
"type": "application/pdf",
"name": "fake.pdf",
"content": "JVBERi0xLjIgCjkgMCBvYmoKPDwKPj4Kc3RyZWFtCkJULyAzMiBUZiggIFlPVVIgVEVYVCBIRVJF\nICAgKScgRVQKZW5kc3RyZWFtCmVuZG9iago0IDAgb2JqCjw8Ci9UeXBlIC9QYWdlCi9QYXJlbnQg\nNSAwIFIKL0NvbnRlbnRzIDkgMCBSCj4CmVuZG9iago1IDAgb2JqCjw8Ci9LaWRzIFs0IDAgUiBdC\ni9Db3VudCAxCi9UeXBlIC9QYWdlcwovTWVkaWFCb3ggWyAwIDAgMjUwIDUwIF0KPj4KZW5kb2JqC\njMgMCBvYmoKPDwKL1BhZ2VzIDUgMCBSCi9UeXBlIC9DYXRhbG9nCj4+CmVuZG9iagp0cmFpbGVyC\njw8Ci9Sb290IDMgMCBSCj4+CiUlRU9G"
}
]
}
```
### Alternatives way to load an EML
You can parse an EML file by either calling
```EmailDecode.open(path_to_file)```
or by calling
```EmailDecode.load(str or bytes)```
Behind the dors, `open` will simply open the file in read and binary, and pass the data to `load`.
## Encoding an email
You can do the reverse operation by creating an instance of `mailparse.EmailEncode` and by passing an object structured similarly to the above generated one, and you'll get a valid EML output.
If we take the previous generated dict:
```python
from mailparse import EmailEncode
# Note: We stripped the unnecessary headers, like received and DKIM, as they are not needed in this scenario
eml = EmailEncode({
"headers": {
"Delivered-To": {
"name": None,
"email": "some-user@recipient.com"
},
"Mime-Version": "1.0"
},
"from": {
"name": "Cyril",
"email": "cyril@sender.com"
},
"return-path": {
"name": None,
"email": "some-return-path@sender.com"
},
"message-id": "<68950604-d564-40c2-bcb4-e58f5070fdcb@mailsender.net>",
"subject": "Sample email",
"to": [
{
"name": None,
"email": "some-user@recipient.com"
}
],
"date": "Thu, 13 Oct 2022 09:23:24 +0000",
"timestamp": 1665653004,
"text": "This is a sample email that contains *inline images* and *attachments* to\nshowcase how MailParse will handle these.\n\nLook at this:\n[image: nice-animation.gif]\n\nNice, isn't it?",
"html": "<div dir=\"ltr\"><div class=\"gmail_quote\"><div dir=\"ltr\"><div class=\"gmail_quote\"><div dir=\"ltr\">This is a sample email that contains\u00a0<u>inline images</u>\u00a0and\u00a0<b>attachments</b>\u00a0to showcase how MailParse will handle these.<div><br></div><div>Look at this:</div><div><img src=\"cid:ii_l96uj1bo1\" alt=\"nice-animation.gif\" width=\"542\" height=\"542\"><br></div><div><br></div><div>Nice, isn't it?<br></div><div><br></div></div>\n</div></div>\n</div></div>",
"inlines": [
{
"type": "image/gif",
"name": "nice-animation.gif",
"content": "R0lGODlhAQABAIABAP///wAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",
"cid": "ii_l96uj1bo1"
}
],
"attachments": [
{
"type": "application/pdf",
"name": "fake.pdf",
"content": "JVBERi0xLjIgCjkgMCBvYmoKPDwKPj4Kc3RyZWFtCkJULyAzMiBUZiggIFlPVVIgVEVYVCBIRVJF\nICAgKScgRVQKZW5kc3RyZWFtCmVuZG9iago0IDAgb2JqCjw8Ci9UeXBlIC9QYWdlCi9QYXJlbnQg\nNSAwIFIKL0NvbnRlbnRzIDkgMCBSCj4CmVuZG9iago1IDAgb2JqCjw8Ci9LaWRzIFs0IDAgUiBdC\ni9Db3VudCAxCi9UeXBlIC9QYWdlcwovTWVkaWFCb3ggWyAwIDAgMjUwIDUwIF0KPj4KZW5kb2JqC\njMgMCBvYmoKPDwKL1BhZ2VzIDUgMCBSCi9UeXBlIC9DYXRhbG9nCj4+CmVuZG9iagp0cmFpbGVyC\njw8Ci9Sb290IDMgMCBSCj4+CiUlRU9G"
}
]
})
print(bytes(eml))
```
The output will be:
```eml
MIME-Version: 1.0
Content-Type: multipart/mixed; charset="utf-8";
boundary="===============3769984348166854544=="
Delivered-To: some-user@recipient.com
Return-Path: some-return-path@sender.com
Subject: Sample email
Message-Id:
<68950604-d564-40c2-bcb4-e58f5070fdcb@mailsender.net>
From: Cyril <cyril@sender.com>
To: some-user@recipient.com
Date: Thu, 13 Oct 2022 09:23:24 +0000
--===============3769984348166854544==
Content-Type: multipart/related;
boundary="===============0128438130676831463=="
MIME-Version: 1.0
--===============0128438130676831463==
Content-Type: multipart/alternative;
boundary="===============3679524713184124586=="
MIME-Version: 1.0
--===============3679524713184124586==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
VGhpcyBpcyBhIHNhbXBsZSBlbWFpbCB0aGF0IGNvbnRhaW5zICppbmxpbmUgaW1hZ2VzKiBhbmQg
KmF0dGFjaG1lbnRzKiB0bwpzaG93Y2FzZSBob3cgTWFpbFBhcnNlciB3aWxsIGhhbmRsZSB0aGVz
ZS4KCkxvb2sgYXQgdGhpczoKW2ltYWdlOiBuaWNlLWFuaW1hdGlvbi5naWZdCgpOaWNlLCBpc24n
dCBpdD8NCg==
--===============3679524713184124586==
Content-Type: text/html; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
PGRpdiBkaXI9Imx0ciI+PGRpdiBjbGFzcz0iZ21haWxfcXVvdGUiPjxkaXYgZGlyPSJsdHIiPjxk
aXYgY2xhc3M9ImdtYWlsX3F1b3RlIj48ZGl2IGRpcj0ibHRyIj5UaGlzIGlzIGEgc2FtcGxlIGVt
YWlsIHRoYXQgY29udGFpbnPCoDx1PmlubGluZSBpbWFnZXM8L3U+wqBhbmTCoDxiPmF0dGFjaG1l
bnRzPC9iPsKgdG8gc2hvd2Nhc2UgaG93IE1haWxQYXJzZXIgd2lsbCBoYW5kbGUgdGhlc2UuPGRp
dj48YnI+PC9kaXY+PGRpdj5Mb29rIGF0IHRoaXM6PC9kaXY+PGRpdj48aW1nIHNyYz0iY2lkOmlp
X2w5NnVqMWJvMSIgYWx0PSJuaWNlLWFuaW1hdGlvbi5naWYiIHdpZHRoPSI1NDIiIGhlaWdodD0i
NTQyIj48YnI+PC9kaXY+PGRpdj48YnI+PC9kaXY+PGRpdj5OaWNlLCBpc24mIzM5O3QgaXQ/PGJy
PjwvZGl2PjxkaXY+PGJyPjwvZGl2PjwvZGl2Pgo8L2Rpdj48L2Rpdj4KPC9kaXY+PC9kaXY+DQo=
--===============3679524713184124586==--
--===============0128438130676831463==
MIME-Version: 1.0
Content-Type: image/gif; name="nice-animation.gif"
Content-Disposition: inline; filename="nice-animation.gif"
Content-Transfer-Encoding: base64
Content-ID: <ii_l96uj1bo1>
X-Attachment-Id: ii_l96uj1bo1
R0lGODlhAQABAIABAP///wAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
--===============0128438130676831463==--
--===============3769984348166854544==
Content-Transfer-Encoding: base64
MIME-Version: 1.0
Content-Type: application/pdf; name="fake.pdf"
Content-Disposition: attachment; filename="fake.pdf"
JVBERi0xLjIgCjkgMCBvYmoKPDwKPj4Kc3RyZWFtCkJULyAzMiBUZiggIFlPVVIgVEVYVCBIRVJF
ICAgKScgRVQKZW5kc3RyZWFtCmVuZG9iago0IDAgb2JqCjw8Ci9UeXBlIC9QYWdlCi9QYXJlbnQg
NSAwIFIKL0NvbnRlbnRzIDkgMCBSCj4CmVuZG9iago1IDAgb2JqCjw8Ci9LaWRzIFs0IDAgUiBdC
i9Db3VudCAxCi9UeXBlIC9QYWdlcwovTWVkaWFCb3ggWyAwIDAgMjUwIDUwIF0KPj4KZW5kb2JqC
jMgMCBvYmoKPDwKL1BhZ2VzIDUgMCBSCi9UeXBlIC9DYXRhbG9nCj4+CmVuZG9iagp0cmFpbGVyC
jw8Ci9Sb290IDMgMCBSCj4+CiUlRU9G
--===============3769984348166854544==--
```
## Main Headers
We selected a few headers that, per the RFC convention, are unique in an email. For instance, the "From" header cannot be present twice.
These headers will be present under the `headers` key, as either a string or a dict.
Other headers are added as a list, in case they are multiple.
The order of the headers is kept (the first Received will be the first in the list)
Here is the list of headers that will not yield a list of elements:
* subject
* from
* date
* sender
* message-id
* mime-version
* return-path
* delivered-to
* x-forwarding-service
* feedback-id
## Support
If you find an issue, please open a support requests, or even better, a Pull Requests :)
Thank you!
Raw data
{
"_id": null,
"home_page": "https://github.com/cnicodeme/mailparse",
"name": "mailparse",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "mail email parse parser encode decode encoder decoder eml",
"author": "Cyril Nicodeme",
"author_email": "contact@cnicodeme.com",
"download_url": "https://files.pythonhosted.org/packages/5f/d2/a5f12596bccad7ce479a5c9250a0cd9712cd032b701eece24ba874bfc4f8/mailparse-1.0.15.tar.gz",
"platform": "any",
"description": "# MailParse\n\nThis library is intended to convert to and from a raw email (EML format) to a Python dictionnary.\n\nThis is the current library used at [ImprovMX](https://improvmx.com) and [Fernand](https://getfernand.com).\nIt was heavily tested in production by handling millions of emails that were parsed to be sent as JSON dictionnary to webhooks.\n\n\n## Features\n\n * Support emails with complex structure, such as inline images, attachments, and other odd media.\n * Battle tested in production at ImprovMX\n\n\n## Decoding an EML email\n\nTake this email sample:\n\nsample.eml:\n\n```eml\nDelivered-To: some-user@recipient.com\nReceived: by 2002:xxxx:2010:0:b0:1e2:d052:cd91 with SMTP id t16csp2528xxxxx;\n Thu, 13 Oct 2022 02:23:36 -0700 (PDT)\nReturn-Path: <some-return-path@sender.com>\nReceived: from server-001.forwarder.com (server-001.forwarder.com. [198.61.254.xxx])\n by mx.webmail.com with UTF8SMTPS id p2-20020a056902114200b006c081d13801si16135744ybu.666.2022.10.13.02.23.xxx\n for <some-user@recipient.com>\n (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);\n Thu, 13 Oct 2022 02:23:34 -0700 (PDT)\nDKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=reflectiv.net; q=dns/txt; s=mx; t=1665653008; x=1665739408; h=Content-Type: MIME-Version: In-Reply-To: References: To: To: Message-Id: Subject: Subject: Date: From: From: Sender; bh=/53IJTVUCdu+CZR3Ar3YkFZdMTe6DkgbtBKyDBVn/2I=; b=WRKUEgi1Xl4V3furRD19kktudXg5b9r6ORA9vBU39ba2OXACtrWcav8dHQKB1Eyu5fegSaW/ GYLVXDfAxljjpXrEtKIBlmizKidyrWzLesz+H89fJeHip0K1GU7M2HfgaN+CLpXpUm6FsW3Z CA/Y2Dmp/hdeQS6WdUmjoHDDvlw=\nReceived: from server-001.firstforward.com (server-001.firstforward.com [104.245.209.xxx]) by 9a93c0110be9 with SMTP id <undefined> (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Thu, 13 Oct 2022 09:23:26 GMT\nDKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; s=pm20220416; d=pm.mtasv.net; h=From:Date:Subject:Message-Id:To:References:In-Reply-To:MIME-Version:Content-Type; bh=9T5/y8MgajuzE8mei59utoNV/m4=; b=zgc4MHKYAbg7OCQsmavFPXrQOAk9/HoC0HDz29xIlNG1IEPQduX/erndJ71fz8dkMGk3lyYg1K9J\n w2lLw7cWrYCPETs+6Q4HPKEWPdyxxc3llc1X5iDCkB+MMQVXM5zQXm8+dhBOKI+E1ey7crLRNRFP\n z2D09bquYC/TRuEDKY0=\nReceived: by server-001.firstforward.com id h8vcgs27tk4e for <some-user@recipient.com>; Thu, 13 Oct 2022 05:23:25 -0400 (envelope-from <pm_bounces@bounces.sender.com>)\nDKIM-Signature: v=1; a=rsa-sha256; d=sender.com; s=20220909140117pm; c=relaxed/relaxed; i=cyril@sender.com; t=1665653004; h=date:date:from:from:message-id:reply-to:sender:subject:subject:to:to:cc: references:in-reply-to:feedback-id:mime-version:content-type; bh=/53IJTVUCdu+CZR3Ar3YkFZdMTe6DkgbtBKyDBVn/2I=; b=IdBcDvOE64rtHIZ0HlqGC3/PuYGv/pV3Vk4flWObFSSM96y+3p8epWb/02xd+skEStV0Oy/p1gl NiIrgu9yimzBbXlc+2TtjcfMjNnp/1cOL27mMeRgxi1XvphcWXgq/hMs+6bF3QJl6r9kpD2M9QyEV lpcQ61nDmS/G5sWTphs=\nFrom: Cyril <cyril@sender.com>\nDate: Thu, 13 Oct 2022 09:23:24 +0000\nSubject: Sample email\nMessage-Id: <68950604-d564-40c2-bcb4-e58f5070fdcb@mailsender.net>\nTo: some-user@recipient.com\nMIME-Version: 1.0\nContent-Type: multipart/mixed; boundary=mk3-20c60ed498f446c485dcc6ebfbf93421\n\n--mk3-20c60ed498f446c485dcc6ebfbf93421\nContent-Type: multipart/related; boundary=\"=-Z2apUQnAeKYD25qUfsotFw==\"\n\n--=-Z2apUQnAeKYD25qUfsotFw==\nContent-Type: multipart/alternative; boundary=mk3-b9ac3b13b7b54e60b6b1d61772776994; charset=UTF-8\n\n--mk3-b9ac3b13b7b54e60b6b1d61772776994\nContent-Type: text/plain; charset=UTF-8\nContent-Transfer-Encoding: quoted-printable\n\nThis is a sample email that contains *inline images* and *attachments* to\nshowcase how MailParse will handle these.\n\nLook at this:\n[image: nice-animation.gif]\n\nNice, isn't it?\n\n--mk3-b9ac3b13b7b54e60b6b1d61772776994\nContent-Type: text/html; charset=UTF-8\nContent-Transfer-Encoding: quoted-printable\n\n<div dir=3D\"ltr\"><div class=3D\"gmail_quote\"><div dir=3D\"ltr\"><div class=3D\"=\ngmail_quote\"><div dir=3D\"ltr\">This is a sample email that contains=C2=A0<u>=\ninline images</u>=C2=A0and=C2=A0<b>attachments</b>=C2=A0to showcase how Mai=\nlParser will handle these.<div><br></div><div>Look at this:</div><div><img =\nsrc=3D\"cid:ii_l96uj1bo1\" alt=3D\"nice-animation.gif\" width=3D\"542\" height=3D=\n\"542\"><br></div><div><br></div><div>Nice, isn't it?<br></div><div><br><=\n/div></div>\n</div></div>\n</div></div>\n\n--mk3-b9ac3b13b7b54e60b6b1d61772776994--\n--=-Z2apUQnAeKYD25qUfsotFw==\nContent-Type: image/gif; name=nice-animation.gif\nContent-Transfer-Encoding: base64\nContent-Id: <ii_l96uj1bo1>\nContent-Disposition: inline; filename=nice-animation.gif\n\nR0lGODlhAQABAIABAP///wAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\n\n--=-Z2apUQnAeKYD25qUfsotFw==--\n--mk3-20c60ed498f446c485dcc6ebfbf93421\nContent-Type: application/pdf; name=fake.pdf\nContent-Transfer-Encoding: base64\nContent-Id: <f_l96uiulr0>\nContent-Disposition: attachment; filename=fake.pdf\n\nJVBERi0xLjIgCjkgMCBvYmoKPDwKPj4Kc3RyZWFtCkJULyAzMiBUZiggIFlPVVIgVEVYVCBIRVJF\nICAgKScgRVQKZW5kc3RyZWFtCmVuZG9iago0IDAgb2JqCjw8Ci9UeXBlIC9QYWdlCi9QYXJlbnQg\nNSAwIFIKL0NvbnRlbnRzIDkgMCBSCj4CmVuZG9iago1IDAgb2JqCjw8Ci9LaWRzIFs0IDAgUiBdC\ni9Db3VudCAxCi9UeXBlIC9QYWdlcwovTWVkaWFCb3ggWyAwIDAgMjUwIDUwIF0KPj4KZW5kb2JqC\njMgMCBvYmoKPDwKL1BhZ2VzIDUgMCBSCi9UeXBlIC9DYXRhbG9nCj4+CmVuZG9iagp0cmFpbGVyC\njw8Ci9Sb290IDMgMCBSCj4+CiUlRU9G\n\n--mk3-20c60ed498f446c485dcc6ebfbf93421--\n```\n\nUsing `mailparse.EmailDecode`:\n\n```python\n\nfrom mailparse import EmailDecode\nimport json\n\ndecoded = EmailDecode.open('./sample.eml')\nprint(json.dumps(decoded, indent=4))\n```\n\nThe output will be:\n\n```json\n{\n \"headers\": {\n \"Received\": [\n \"by 2002:xxxx:2010:0:b0:1e2:d052:cd91 with SMTP id t16csp2528xxxxx; Thu, 13 Oct 2022 02:23:36 -0700 (PDT)\",\n \"from server-001.forwarder.com (server-001.forwarder.com. [198.61.254.xxx]) by mx.webmail.com with UTF8SMTPS id p2-20020a056902114200b006c081d13801si16135744ybu.666.2022.10.13.02.23.xxx for <some-user@recipient.com> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 13 Oct 2022 02:23:34 -0700 (PDT)\",\n \"from server-001.firstforward.com (server-001.firstforward.com [104.245.209.xxx]) by 9a93c0110be9 with SMTP id <undefined> (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Thu, 13 Oct 2022 09:23:26 GMT\",\n \"by server-001.firstforward.com id h8vcgs27tk4e for <some-user@recipient.com>; Thu, 13 Oct 2022 05:23:25 -0400 (envelope-from <pm_bounces@bounces.sender.com>)\"\n ],\n \"DKIM-Signature\": [\n \"a=rsa-sha256; v=1; c=relaxed/relaxed; d=reflectiv.net; q=dns/txt; s=mx; t=1665653008; x=1665739408; h=Content-Type: MIME-Version: In-Reply-To: References: To: To: Message-Id: Subject: Subject: Date: From: From: Sender; bh=/53IJTVUCdu+CZR3Ar3YkFZdMTe6DkgbtBKyDBVn/2I=; b=WRKUEgi1Xl4V3furRD19kktudXg5b9r6ORA9vBU39ba2OXACtrWcav8dHQKB1Eyu5fegSaW/ GYLVXDfAxljjpXrEtKIBlmizKidyrWzLesz+H89fJeHip0K1GU7M2HfgaN+CLpXpUm6FsW3Z CA/Y2Dmp/hdeQS6WdUmjoHDDvlw=\",\n \"v=1; a=rsa-sha1; c=relaxed/relaxed; s=pm20220416; d=pm.mtasv.net; h=From:Date:Subject:Message-Id:To:References:In-Reply-To:MIME-Version:Content-Type; bh=9T5/y8MgajuzE8mei59utoNV/m4=; b=zgc4MHKYAbg7OCQsmavFPXrQOAk9/HoC0HDz29xIlNG1IEPQduX/erndJ71fz8dkMGk3lyYg1K9J w2lLw7cWrYCPETs+6Q4HPKEWPdyxxc3llc1X5iDCkB+MMQVXM5zQXm8+dhBOKI+E1ey7crLRNRFP z2D09bquYC/TRuEDKY0=\",\n \"v=1; a=rsa-sha256; d=sender.com; s=20220909140117pm; c=relaxed/relaxed; i=cyril@sender.com; t=1665653004; h=date:date:from:from:message-id:reply-to:sender:subject:subject:to:to:cc: references:in-reply-to:feedback-id:mime-version:content-type; bh=/53IJTVUCdu+CZR3Ar3YkFZdMTe6DkgbtBKyDBVn/2I=; b=IdBcDvOE64rtHIZ0HlqGC3/PuYGv/pV3Vk4flWObFSSM96y+3p8epWb/02xd+skEStV0Oy/p1gl NiIrgu9yimzBbXlc+2TtjcfMjNnp/1cOL27mMeRgxi1XvphcWXgq/hMs+6bF3QJl6r9kpD2M9QyEV lpcQ61nDmS/G5sWTphs=\"\n ],\n \"Delivered-To\": {\n \"name\": null,\n \"email\": \"some-user@recipient.com\"\n },\n \"Mime-Version\": \"1.0\"\n },\n \"from\": {\n \"name\": \"Cyril\",\n \"email\": \"cyril@sender.com\"\n },\n \"return-path\": {\n \"name\": null,\n \"email\": \"some-return-path@sender.com\"\n },\n \"message-id\": \"<68950604-d564-40c2-bcb4-e58f5070fdcb@mailsender.net>\",\n \"subject\": \"Sample email\",\n \"to\": [\n {\n \"name\": null,\n \"email\": \"some-user@recipient.com\"\n }\n ],\n \"date\": \"Thu, 13 Oct 2022 09:23:24 +0000\",\n \"timestamp\": 1665653004,\n \"text\": \"This is a sample email that contains *inline images* and *attachments* to\\nshowcase how MailParse will handle these.\\n\\nLook at this:\\n[image: nice-animation.gif]\\n\\nNice, isn't it?\",\n \"html\": \"<div dir=\\\"ltr\\\"><div class=\\\"gmail_quote\\\"><div dir=\\\"ltr\\\"><div class=\\\"gmail_quote\\\"><div dir=\\\"ltr\\\">This is a sample email that contains\\u00a0<u>inline images</u>\\u00a0and\\u00a0<b>attachments</b>\\u00a0to showcase how MailParse will handle these.<div><br></div><div>Look at this:</div><div><img src=\\\"cid:ii_l96uj1bo1\\\" alt=\\\"nice-animation.gif\\\" width=\\\"542\\\" height=\\\"542\\\"><br></div><div><br></div><div>Nice, isn't it?<br></div><div><br></div></div>\\n</div></div>\\n</div></div>\",\n \"inlines\": [\n {\n \"type\": \"image/gif\",\n \"name\": \"nice-animation.gif\",\n \"content\": \"R0lGODlhAQABAIABAP///wAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\",\n \"cid\": \"ii_l96uj1bo1\"\n }\n ],\n \"attachments\": [\n {\n \"type\": \"application/pdf\",\n \"name\": \"fake.pdf\",\n \"content\": \"JVBERi0xLjIgCjkgMCBvYmoKPDwKPj4Kc3RyZWFtCkJULyAzMiBUZiggIFlPVVIgVEVYVCBIRVJF\\nICAgKScgRVQKZW5kc3RyZWFtCmVuZG9iago0IDAgb2JqCjw8Ci9UeXBlIC9QYWdlCi9QYXJlbnQg\\nNSAwIFIKL0NvbnRlbnRzIDkgMCBSCj4CmVuZG9iago1IDAgb2JqCjw8Ci9LaWRzIFs0IDAgUiBdC\\ni9Db3VudCAxCi9UeXBlIC9QYWdlcwovTWVkaWFCb3ggWyAwIDAgMjUwIDUwIF0KPj4KZW5kb2JqC\\njMgMCBvYmoKPDwKL1BhZ2VzIDUgMCBSCi9UeXBlIC9DYXRhbG9nCj4+CmVuZG9iagp0cmFpbGVyC\\njw8Ci9Sb290IDMgMCBSCj4+CiUlRU9G\"\n }\n ]\n}\n```\n\n### Alternatives way to load an EML\n\nYou can parse an EML file by either calling \n\n```EmailDecode.open(path_to_file)```\n\nor by calling\n\n```EmailDecode.load(str or bytes)```\n\nBehind the dors, `open` will simply open the file in read and binary, and pass the data to `load`.\n\n\n## Encoding an email\n\nYou can do the reverse operation by creating an instance of `mailparse.EmailEncode` and by passing an object structured similarly to the above generated one, and you'll get a valid EML output.\n\nIf we take the previous generated dict:\n\n```python\nfrom mailparse import EmailEncode\n\n# Note: We stripped the unnecessary headers, like received and DKIM, as they are not needed in this scenario\neml = EmailEncode({\n \"headers\": {\n \"Delivered-To\": {\n \"name\": None,\n \"email\": \"some-user@recipient.com\"\n },\n \"Mime-Version\": \"1.0\"\n },\n \"from\": {\n \"name\": \"Cyril\",\n \"email\": \"cyril@sender.com\"\n },\n \"return-path\": {\n \"name\": None,\n \"email\": \"some-return-path@sender.com\"\n },\n \"message-id\": \"<68950604-d564-40c2-bcb4-e58f5070fdcb@mailsender.net>\",\n \"subject\": \"Sample email\",\n \"to\": [\n {\n \"name\": None,\n \"email\": \"some-user@recipient.com\"\n }\n ],\n \"date\": \"Thu, 13 Oct 2022 09:23:24 +0000\",\n \"timestamp\": 1665653004,\n \"text\": \"This is a sample email that contains *inline images* and *attachments* to\\nshowcase how MailParse will handle these.\\n\\nLook at this:\\n[image: nice-animation.gif]\\n\\nNice, isn't it?\",\n \"html\": \"<div dir=\\\"ltr\\\"><div class=\\\"gmail_quote\\\"><div dir=\\\"ltr\\\"><div class=\\\"gmail_quote\\\"><div dir=\\\"ltr\\\">This is a sample email that contains\\u00a0<u>inline images</u>\\u00a0and\\u00a0<b>attachments</b>\\u00a0to showcase how MailParse will handle these.<div><br></div><div>Look at this:</div><div><img src=\\\"cid:ii_l96uj1bo1\\\" alt=\\\"nice-animation.gif\\\" width=\\\"542\\\" height=\\\"542\\\"><br></div><div><br></div><div>Nice, isn't it?<br></div><div><br></div></div>\\n</div></div>\\n</div></div>\",\n \"inlines\": [\n {\n \"type\": \"image/gif\",\n \"name\": \"nice-animation.gif\",\n \"content\": \"R0lGODlhAQABAIABAP///wAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\",\n \"cid\": \"ii_l96uj1bo1\"\n }\n ],\n \"attachments\": [\n {\n \"type\": \"application/pdf\",\n \"name\": \"fake.pdf\",\n \"content\": \"JVBERi0xLjIgCjkgMCBvYmoKPDwKPj4Kc3RyZWFtCkJULyAzMiBUZiggIFlPVVIgVEVYVCBIRVJF\\nICAgKScgRVQKZW5kc3RyZWFtCmVuZG9iago0IDAgb2JqCjw8Ci9UeXBlIC9QYWdlCi9QYXJlbnQg\\nNSAwIFIKL0NvbnRlbnRzIDkgMCBSCj4CmVuZG9iago1IDAgb2JqCjw8Ci9LaWRzIFs0IDAgUiBdC\\ni9Db3VudCAxCi9UeXBlIC9QYWdlcwovTWVkaWFCb3ggWyAwIDAgMjUwIDUwIF0KPj4KZW5kb2JqC\\njMgMCBvYmoKPDwKL1BhZ2VzIDUgMCBSCi9UeXBlIC9DYXRhbG9nCj4+CmVuZG9iagp0cmFpbGVyC\\njw8Ci9Sb290IDMgMCBSCj4+CiUlRU9G\"\n }\n ]\n})\n\nprint(bytes(eml))\n```\n\nThe output will be:\n\n```eml\nMIME-Version: 1.0\nContent-Type: multipart/mixed; charset=\"utf-8\";\n boundary=\"===============3769984348166854544==\"\nDelivered-To: some-user@recipient.com\nReturn-Path: some-return-path@sender.com\nSubject: Sample email\nMessage-Id: \n <68950604-d564-40c2-bcb4-e58f5070fdcb@mailsender.net>\nFrom: Cyril <cyril@sender.com>\nTo: some-user@recipient.com\nDate: Thu, 13 Oct 2022 09:23:24 +0000\n\n--===============3769984348166854544==\nContent-Type: multipart/related;\n boundary=\"===============0128438130676831463==\"\nMIME-Version: 1.0\n\n--===============0128438130676831463==\nContent-Type: multipart/alternative;\n boundary=\"===============3679524713184124586==\"\nMIME-Version: 1.0\n\n--===============3679524713184124586==\nContent-Type: text/plain; charset=\"utf-8\"\nMIME-Version: 1.0\nContent-Transfer-Encoding: base64\n\nVGhpcyBpcyBhIHNhbXBsZSBlbWFpbCB0aGF0IGNvbnRhaW5zICppbmxpbmUgaW1hZ2VzKiBhbmQg\nKmF0dGFjaG1lbnRzKiB0bwpzaG93Y2FzZSBob3cgTWFpbFBhcnNlciB3aWxsIGhhbmRsZSB0aGVz\nZS4KCkxvb2sgYXQgdGhpczoKW2ltYWdlOiBuaWNlLWFuaW1hdGlvbi5naWZdCgpOaWNlLCBpc24n\ndCBpdD8NCg==\n\n--===============3679524713184124586==\nContent-Type: text/html; charset=\"utf-8\"\nMIME-Version: 1.0\nContent-Transfer-Encoding: base64\n\nPGRpdiBkaXI9Imx0ciI+PGRpdiBjbGFzcz0iZ21haWxfcXVvdGUiPjxkaXYgZGlyPSJsdHIiPjxk\naXYgY2xhc3M9ImdtYWlsX3F1b3RlIj48ZGl2IGRpcj0ibHRyIj5UaGlzIGlzIGEgc2FtcGxlIGVt\nYWlsIHRoYXQgY29udGFpbnPCoDx1PmlubGluZSBpbWFnZXM8L3U+wqBhbmTCoDxiPmF0dGFjaG1l\nbnRzPC9iPsKgdG8gc2hvd2Nhc2UgaG93IE1haWxQYXJzZXIgd2lsbCBoYW5kbGUgdGhlc2UuPGRp\ndj48YnI+PC9kaXY+PGRpdj5Mb29rIGF0IHRoaXM6PC9kaXY+PGRpdj48aW1nIHNyYz0iY2lkOmlp\nX2w5NnVqMWJvMSIgYWx0PSJuaWNlLWFuaW1hdGlvbi5naWYiIHdpZHRoPSI1NDIiIGhlaWdodD0i\nNTQyIj48YnI+PC9kaXY+PGRpdj48YnI+PC9kaXY+PGRpdj5OaWNlLCBpc24mIzM5O3QgaXQ/PGJy\nPjwvZGl2PjxkaXY+PGJyPjwvZGl2PjwvZGl2Pgo8L2Rpdj48L2Rpdj4KPC9kaXY+PC9kaXY+DQo=\n\n--===============3679524713184124586==--\n\n--===============0128438130676831463==\nMIME-Version: 1.0\nContent-Type: image/gif; name=\"nice-animation.gif\"\nContent-Disposition: inline; filename=\"nice-animation.gif\"\nContent-Transfer-Encoding: base64\nContent-ID: <ii_l96uj1bo1>\nX-Attachment-Id: ii_l96uj1bo1\n\nR0lGODlhAQABAIABAP///wAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\n\n--===============0128438130676831463==--\n\n--===============3769984348166854544==\nContent-Transfer-Encoding: base64\nMIME-Version: 1.0\nContent-Type: application/pdf; name=\"fake.pdf\"\nContent-Disposition: attachment; filename=\"fake.pdf\"\n\nJVBERi0xLjIgCjkgMCBvYmoKPDwKPj4Kc3RyZWFtCkJULyAzMiBUZiggIFlPVVIgVEVYVCBIRVJF\nICAgKScgRVQKZW5kc3RyZWFtCmVuZG9iago0IDAgb2JqCjw8Ci9UeXBlIC9QYWdlCi9QYXJlbnQg\nNSAwIFIKL0NvbnRlbnRzIDkgMCBSCj4CmVuZG9iago1IDAgb2JqCjw8Ci9LaWRzIFs0IDAgUiBdC\ni9Db3VudCAxCi9UeXBlIC9QYWdlcwovTWVkaWFCb3ggWyAwIDAgMjUwIDUwIF0KPj4KZW5kb2JqC\njMgMCBvYmoKPDwKL1BhZ2VzIDUgMCBSCi9UeXBlIC9DYXRhbG9nCj4+CmVuZG9iagp0cmFpbGVyC\njw8Ci9Sb290IDMgMCBSCj4+CiUlRU9G\n\n--===============3769984348166854544==--\n```\n\n## Main Headers\n\nWe selected a few headers that, per the RFC convention, are unique in an email. For instance, the \"From\" header cannot be present twice.\nThese headers will be present under the `headers` key, as either a string or a dict.\nOther headers are added as a list, in case they are multiple.\n\nThe order of the headers is kept (the first Received will be the first in the list)\n\nHere is the list of headers that will not yield a list of elements:\n\n * subject\n * from\n * date\n * sender\n * message-id\n * mime-version\n * return-path\n * delivered-to\n * x-forwarding-service\n * feedback-id\n\n\n## Support\n\nIf you find an issue, please open a support requests, or even better, a Pull Requests :)\n\n\nThank you!\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Encode raw emails into Python dict objects and build raw emails from Python dict.",
"version": "1.0.15",
"project_urls": {
"Homepage": "https://github.com/cnicodeme/mailparse",
"Source": "https://github.com/cnicodeme/mailparse"
},
"split_keywords": [
"mail",
"email",
"parse",
"parser",
"encode",
"decode",
"encoder",
"decoder",
"eml"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "3c12546115375823c6244fa768679de325df653aec0274bb49590575fd40ab43",
"md5": "2a1dd0e022941399b736b47fd6e3d182",
"sha256": "d6388f5f18661667fede8545d070d4311c99e2deaa29c8105e54b7fcefe7d217"
},
"downloads": -1,
"filename": "mailparse-1.0.15-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "2a1dd0e022941399b736b47fd6e3d182",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": null,
"size": 13585,
"upload_time": "2024-12-03T16:33:16",
"upload_time_iso_8601": "2024-12-03T16:33:16.279196Z",
"url": "https://files.pythonhosted.org/packages/3c/12/546115375823c6244fa768679de325df653aec0274bb49590575fd40ab43/mailparse-1.0.15-py2.py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "5fd2a5f12596bccad7ce479a5c9250a0cd9712cd032b701eece24ba874bfc4f8",
"md5": "04c5ed01f4c4267c782dd411571ec1ac",
"sha256": "c238a341e7560ab067ad8a01759d056217939f3d1f62e9ff2f52bd7d027c2d03"
},
"downloads": -1,
"filename": "mailparse-1.0.15.tar.gz",
"has_sig": false,
"md5_digest": "04c5ed01f4c4267c782dd411571ec1ac",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 18108,
"upload_time": "2024-12-03T16:33:22",
"upload_time_iso_8601": "2024-12-03T16:33:22.786921Z",
"url": "https://files.pythonhosted.org/packages/5f/d2/a5f12596bccad7ce479a5c9250a0cd9712cd032b701eece24ba874bfc4f8/mailparse-1.0.15.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-12-03 16:33:22",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "cnicodeme",
"github_project": "mailparse",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "mailparse"
}