Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mynameisvinn/EmailParser
remove signature blocks from emails
https://github.com/mynameisvinn/EmailParser
email-parser email-parsing natural-language-processing nlp python signature-blocks
Last synced: 3 months ago
JSON representation
remove signature blocks from emails
- Host: GitHub
- URL: https://github.com/mynameisvinn/EmailParser
- Owner: mynameisvinn
- License: mit
- Created: 2017-05-23T01:41:08.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-22T14:21:43.000Z (over 5 years ago)
- Last Synced: 2024-04-27T23:57:11.981Z (7 months ago)
- Topics: email-parser, email-parsing, natural-language-processing, nlp, python, signature-blocks
- Language: Python
- Homepage:
- Size: 17.6 KB
- Stars: 84
- Watchers: 4
- Forks: 17
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: license.txt
Awesome Lists containing this project
README
# emailparser
emailparser identifies and removes signature blocks from emails.## example
here is a sample email. we'd like to remove the last three lines, which correspond to the sender's email signature.
```
Wendy – thanks for the intro! Moving you to bcc.
Hi Vincent – nice to meet you over email. Apologize for the late reply, I was on PTO for a couple weeks and this is my first week back in office. As Wendy mentioned, I am leading an AR/VR taskforce at Foobar Retail Solutions. The goal of the taskforce is to better understand how AR/VR can apply to retail/commerce and if/what is the role of a shopping center in AR/VR applications for retail.
Wendy mentioned that you would be a great person to speak to since you are close to what is going on in this space. Would love to set up some time to chat via phone next week. What does your availability look like on Monday or Wednesday?
Best,
Joe Smith
Joe Smith | Strategy & Business Development
111 Market St. Suite 111| San Francisco, CA 94103
M: 111.111.1111| [email protected]
```
after parsing, the email should look like this:
```
Wendy – thanks for the intro! Moving you to bcc.
Hi Vincent – nice to meet you over email. Apologize for the late reply, I was on PTO for a couple weeks and this is my first week back in office. As Wendy mentioned, I am leading an AR/VR taskforce at Foobar Retail Solutions. The goal of the taskforce is to better understand how AR/VR can apply to retail/commerce and if/what is the role of a shopping center in AR/VR applications for retail.
Wendy mentioned that you would be a great person to speak to since you are close to what is going on in this space. Would love to set up some time to chat via phone next week. What does your availability look like on Monday or Wednesday?
```## getting started
```python
from Parser import convert
fname = 'emails/test0.txt'
convert(fname) # a copy of test0, without signature block
```