Comments (4)
Thanks, well done. I'll close the issue.
from mail-parser.
Hi, @phith0n,
can you have any samples of emails?
from mail-parser.
If you send a message with an image, you can see it.
I put a sample email in https://pastebin.com/eAi8jvym
from mail-parser.
I added content-id
for attachments. Your example is parsed like this:
{
"body": "an image:\n\n[image: github-512.png]\n--- mail_boundary ---\n<div dir=\"ltr\">an image:<div><br></div><div><div><img src=\"cid:ii_jj6jjue40\" alt=\"github-512.png\" width=\"512\" height=\"512\"><br></div><br></div></div>",
"from": [
[
"phith0n",
"[email protected]"
]
],
"attachments": [
{
"binary": true,
"mail_content_type": "image/png",
"payload": "",
"filename": "github-512.png",
"content_transfer_encoding": "base64",
"content-id": "<ii_jj6jjue40>"
}
],
"has_defects": false,
"mime-version": "1.0",
"to_domains": [
"gmail.com"
],
"to": [
[
"phith0n",
"[email protected]"
]
],
"date": "2018-07-04T03:08:14",
"message-id": "<CALPTonT53BK+C+s7xD=3_kKYMMQJKkzCO52hLkDod4BYb-TMdA@mail.gmail.com>",
"content-type": "multipart/related; boundary=\"000000000000e03ad8057023bdce\"",
"subject": "An email example"
}
You can use this function in next release.
Can I close the issue?
from mail-parser.
Related Issues (20)
- Drop simplejson requirement
- Multiple mail thread handling HOT 2
- When parsing eml attachment from Gmail, the attachment is being parsed as email instead as attachment HOT 2
- Ignore warnings - Email content 'calendar' not handled HOT 4
- Mime Header Decoding (RFC 2047) does not correctly resolve in case the display name contains an encoded comma
- from_ attribute contains two tuples for one sender
- mail format
- Is this able to parse latest reply? HOT 1
- Handle multi part/ alternative text emails? HOT 1
- Only parses Undelivered message for emails with bounced emails
- Make the specific receiver of the email available in a field HOT 1
- Extracting mail signature HOT 1
- Disable json indent by default
- newline breaks test
- Empty metadata when using mail-parser to parse .msg outlook emails (email-outlook-message-perl 0.918-2) HOT 1
- Issue when parsing an email message HOT 2
- CID not have a image data
- UnicodeDecodeError when parsing email with "\u" in its body HOT 2
- parse_from_bytes() not working on BytesIO() object HOT 1
- MailParserReceivedParsingError when parsing email domains ending in .id (Indonesia's .co.id and similar)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mail-parser.