Questions tagged [email-parsing]
Questions on the process of extracting data from emails, including the handling of MIME types, attachments, and other embedded information.
126
questions
0
votes
0
answers
27
views
Parsing Raw email in a Flask API
I need to parse a raw email in a Flask app and use email package and return the content of the email. The email package does not work at all and returns null string. Any thought?
Thanks.
This is a ...
1
vote
0
answers
81
views
PHP IMAP get body text without reply
I only want to get body text, without any reply text/html. When I use imap_fetchbody it gives all the text including primary email and replies text/html. Is there any way that I can get only mail text?...
0
votes
1
answer
66
views
Howto process email from google
Im not sure if this is google or email in general, but I'm seeing a some encoding that im not sure how to handle. Here is a snip that is the Washington post mailer form my google acct.
the subject
b'...
1
vote
2
answers
225
views
Golang: Encountering issue trying to parse Outlook msg files (emails) malformed MIME header: missing colon:
I have a task to parse both eml and msg formatted email files using Go. There's a wonderful package for parsing EML files, however, with MSG, no matter what package I research and attempt to implement,...
0
votes
1
answer
43
views
Apps Script adds duplicate of last entry into Sheets - Email Parser [closed]
I have a script in Apps Script that goes through my emails based on specific subjects, parses through each of those emails, grabbing info and adding it to a Google Sheet. I have the script working ...
0
votes
0
answers
24
views
MailParser-mit returns undefined for attachments result
I am parsing email using mailparser-mit npm module. Below is the code.
const MailParser = require('mailparser-mit').MailParser;
const getAttachments = async(fullEmailBody) => {
try {
const ...
0
votes
1
answer
106
views
How to extract attachments from MSG and save them as a valid files with mail-parser in python?
I'm using mail-parser to parse emails in MSG (.msg) file format and to extract its attachments.
import mailparser
mail = mailparser.parse_from_file_msg('example.msg')
attachments = mail.attachments
...
0
votes
1
answer
33
views
How to create a job post by email parsing in WordPress?
I want to develop a job board website. I want specific feature in that is job posts will be created automatically by email parsing.
I tried Zapier, but it creates only blog posts.
And tried postie ...
0
votes
1
answer
945
views
React create and download file from buffer array
I have an email attachment file in buffer format I want to display and download the file in ReactJS.
Sample JSON
{
"type": "Buffer",
"data": [137,80,78,71,13,10,26]
...
2
votes
1
answer
651
views
How do I get my React app to read/parse contents of an email attachment?
I'm writing a React app for my company that displays server status for technicians to review daily. I cannot seem to find an appropriate node module that can access an email account and parse the ...
-1
votes
2
answers
478
views
How to forward email body without any change
Need to Forward raw Email without any change
Working on an email forwarding script and implementing SRS with keeping DKIM intact (for DMARC).
I have Laravel application piped to postfix and presently ...
0
votes
1
answer
77
views
Converting mailparser HTML into DOM elements?
With mailparser when I get a lot of HTML codes how can I convert them into DOM Elements? I want to access specific HTML elements.
This is my code:
var imaps = require('imap-simple');
const _ = require(...
-1
votes
1
answer
35
views
Need a Extract XPath help on an Email using webhook.site
I am needing to extract specific lines from a raw email that i have coming into my webhook.site url. I figured it would be an xpath extract or some custom action but my knowledge only goes so far.
i ...
0
votes
1
answer
1k
views
separate emails in the email thread based on reference or in-reply-to headers using imap_tools
I am working on a CRM, where I am receiving hundreds of emails for offers/requirements per day. I am building an API that will process the email and will insert entries in the CRM.
I am using ...
0
votes
1
answer
211
views
Regex (Javascript) for parsing email with firstname.lastname.randomnumber@email.com
I've scoured all the other threads about this but there's a unique aspect to my parsing format that I can't get past. I'm trying to parse an email address with a standard format as follows - firstname....
1
vote
1
answer
833
views
How to print email body from outlook without signature - Python
I'm trying to parse emails from Outlook.
I would like the following printed:
subject
body (excluding sender's signature)
Ignore all previous emails from conversion (reply & forward)
Is there any ...
0
votes
1
answer
237
views
Python Email Parser not reading from text file
I am trying to run the following code for reading the contents of the mail from a text file by using the parse() function of email.parser.Parser but continuously getting error as "TypeError: ...
0
votes
1
answer
162
views
Add custom text to email body automatically when user clicks Reply button
I am parsing incoming emails to my domain using Mailslurp API and I want to get only the email body without the email signature. I struggled a lot finding out how to recognize signature from the email ...
1
vote
0
answers
230
views
Using forceUTF8 with email body containing an emoji from a Gmail email converts emoji to "?" and What type of Emoji is a Gmail Emoji?
I am sorry for the title but I had a hard time describing my thoughts. So here we go
I currently have a script that parses emails (not necessarily just from Gmail) in which I get the body of the email ...
1
vote
1
answer
619
views
How to properly parse email received headers?
What is the right way to parse the received headers of a .eml file, in order to extract all the hops' information?
In particular I need to extract the following information:
Sender URL
Sender IP
...
3
votes
0
answers
2k
views
Can I extract only the body text of an eml file?
I need to extract just the text in the body of an eml file but my code keeps giving me some code text and the folders that exist in Outlook. I am working with Python 2.7 and BeautifulSoup.
My code is:
...
0
votes
0
answers
311
views
Named Entity Recognition For Product Names Of Clothes
I am trying to extract product names from a plain text, the problem with product names is that they don't have a specific pattern and I don't want to give the algorithm a set of data that has fixed ...
0
votes
0
answers
196
views
Unable to parse more than one email and email header stored in a file
I am trying to parse and analyze email headers and body but I cannot parse more than one email. Only the first email is being parsed and ready to be analyzed where as rest of the emails are displayed ...
-1
votes
1
answer
176
views
Unable to read raw email data using file.readlines()
I was trying to parse raw email data from a specific file path. But I am getting an error whenever I use file.readlines() for reading the file with email library. And, if I used file.read() it only ...
0
votes
0
answers
29
views
How to extract amount from a receipt email
I noticed many reimbursement apps can parse the amount out from a receipt email. Just curious what are the necessary steps to achieve that? Especially considering there is no pattern in the receipt ...
-1
votes
1
answer
86
views
How can I automatically import emails that are exactly the same in content/layout with different data points into Google Sheets?
I receive emails that have the same layout and data type. I want to automatically have that data imported into a specific Google Sheet.
I use Office 365 and Outlook 365.
The emails all come from the ...
1
vote
1
answer
1k
views
How to handle all charset and content type when reading email from IMAP lib in Python
I am reading email from imap lib in python which is working but i am reading body part and storing body part in database but some times python code returning error in decoding body , i am identifying ...
0
votes
1
answer
2k
views
Node IMAP connect ECONNREFUSED 127.0.0.1:143
I am using NodeJs together with imap, mailparser and bluebird to read the mail of my gmail account and finally write these to an Azure Database. But this is the first step for me to get a feeling how ...
0
votes
0
answers
109
views
Exporting table data from email to excel columns
I'm trying to pull in data that is set up like a table from my email. Does anyone know how I can loop through the email contents to check for tables, and if there is to export the data to columns in ...
0
votes
1
answer
960
views
Dell Boomi - Parse values from email body
I'm working with the Dell Boomi platform and NetSuite.
I have a unique situation where we need to retrieve emails from an inbox with a mail(IMAP) connector then take the body of the email and read it ...
-1
votes
1
answer
675
views
How to get details from email header?
This is my testing email. Named aa.eml
Received: from abcd
Thu, 26 Sep 2019 07:31:55 +0000
Message-ID:<123>
From: TEST@ <abc-def.com donotreply@abc-def.com>
To: TEST <test@test.com>...
1
vote
0
answers
258
views
How to control encoding in python library mailparser?
Problem
I am using the python library mailparser to handle ".msg" files in python. The library does, however, not seem to be able to handle different types of encoding. E.g. I cannot read the ...
1
vote
0
answers
141
views
Nodejs: get 'x-failed-recipients' property in mailparser
I want to retrieve the 'X-Failed-Recipients' property from an MBox file using mailparser package in Node.JS.
Here goes a MWE, I have two files, uploadapp.js and uploadfile.html
// File : uploadapp....
2
votes
2
answers
2k
views
Using Composer to install mailparser, why am I getting an error that allow_url_fopen must be enabled when it already is enabled?
I am trying to install this PHP mailparser. I have Composer installed and the required mailparse extension is also installed. However, when I run:
composer require php-mime-mail-parser/php-mime-mail-...
-2
votes
1
answer
5k
views
How to extract Information from Raw Email
What I have done so far
I use POP3 package to read all my emails from my mailbox.
I received a raw email from the POP3 function which shown at the example below. (I omitted some information)
Issue
...
0
votes
1
answer
512
views
Extract Attachment which itself is of type MSG from an EMAIL in python
I need to extract an msg type attachment from an email and save the MSG attachment to a location in python.
The script i wrote works for nearly all types of files other than outlook items
def ...
2
votes
0
answers
3k
views
Python Email body content Base64 not able to decode
While am trying to parse the body of an email, the body will get as
VCBJTkZPUk1BVElPTjwvdGQ+Cgk8L3RyPgoJPHRyPjx0ZD4mbmJzcDs8L3RkPjwvdHI+Cgk8dHI+
And when I try to decode it separately, it works ...
1
vote
0
answers
262
views
Python Email body reading Getting Encoded data
While parsing the email content in python am getting the body as in some time of encoded format
Code
Please find the code Snippet:
str_list = list(filter(None, messages[0].decode().split(' ')))
...
3
votes
0
answers
330
views
Inaccurate column separation on string data containing commas in CSV file in Azure Machine Learning Studio
I'm using first 100 of lines from The Enron Email Dataset for my experiment in Azure ML Studio, however the Saved Dataset object is being populated with odd 4.8K lines instead of 100. That must be due ...
1
vote
3
answers
2k
views
Decode 'quoted-printable' in python
I want to decode 'quoted-printable' encoded strings in Python, but I seem to be stuck at a point.
I fetch certain mails from my gmail account based on the following code:
import imaplib
import ...
0
votes
2
answers
701
views
Email parsing test dataset
I am evaluating email parsing libraries for an Elixir/Erlang project and am trying to figure out which one is "best", or if I should build my own. The criteria I am using for "best" is: which library ...
3
votes
1
answer
2k
views
Use a Node Lambda function to parse an email stored in an AWS S3 Bucket by SES
Here's the section of the Node Lambda function that gets the email stored in S3. How do I just get the 'text/plain' content from the returned data object?
Do I need to include an NPM email parsing ...
0
votes
0
answers
52
views
How to push a file automatically from mailparser site to a pythonanywhere server directory
I'm new to web development and relatively new to Python coding. I have a mail parser (mailparser.io) that is converting plaintext data patterns from email into a JSON file daily. What is the easiest ...
1
vote
0
answers
176
views
Not able to skip attachment processing while reading inbox from email using "imap"
I'm using npm library imap to fetch inbox of email as follows:
readMails(path, skip, limit){
return new Promise((resolve, reject)=>{
let mails = [], total;
this....
0
votes
1
answer
512
views
While parsing email Getting exception "Media Type must be in the format type "/" subtype Parameter name: mediaType"
My project parse email through OpenPop library.
Every time mail from specific sender is not parsing and getting following exception
Message: Media Type must be in the format type "/" subtype ...
6
votes
1
answer
10k
views
How to read and parse email using npm-imap package in Node js
I went through many links but could not find complete solution anywhere to implement this.
1
vote
2
answers
2k
views
Parsing IMAP + mailparser return object into a JSON
I am using node's IMAP & Mailparser modules for this.
My mailbox reader function has this line that parses the header:
var parsed_header = inspect(Imap.parseHeader(buffer));
This will then ...
0
votes
0
answers
641
views
php-mailparse composer not loading on server
I have an Ubuntu php7.0 server and I am trying to use a php Mailparse script I found here
However I confirmed that composer is installed on the server and mailparse is also on the server. However the ...
0
votes
0
answers
97
views
Parsing replies to an email address
I'm running a service where users receive an email every day at the same time, to which they reply (to an unmonitored email account).
I want to capture the following pieces of information from those ...
0
votes
1
answer
615
views
Find Email-adresses in the mailbody with Mailparser
I'm quite new to the topic and i'm still having some issues with my mailparser. Though searching and finding emails in the email header (mail.from) does work, it doesn't work in the email body. Does ...