Skip to content
/ EFZP Public
forked from Trindaz/EFZP

Describe an email in terms of salutation, body, signature, reply text etc.

License

Notifications You must be signed in to change notification settings

clemst/EFZP

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

#EFZP An acronym for Email Functional Zone Parser

###The idea

It turns this:

"Hi Dave,\nLets meet up this Tuesday\nCheers, Tom\n\nOn Sunday, 15 May 2011 at 5:02 PM, Dave Trindall wrote: Hey Tom,\nHow about we get together ..."

into this:

{
	"Salutation": "Hi Dave,\n"
	"Body": "Lets meet up this Tuesday\n"
	"Signature": "Cheers, Tom\n\n"
	"Reply Text": "On Sunday, 15 May 2011 at 5:02 PM, Dave Trindall wrote: ..."
}

##Installation

git clone https://github.com/Trindaz/EFZP.git

or just download EFZP.py

##Usage

This python script

import EFZP as zp
p = zp.parse("Hi Dave,\nLets meet up this Tuesday\nCheers, Tom\n\nOn Sunday, 15 May 2011 at 5:02 PM, Dave Trindall wrote: Hey Tom,\nHow about we get together ...")
print p

prints this

{'salutation': 'Hi Dave,\n', 'body': 'Lets meet up this Tuesday\n', 'reply_text': 'On Sunday, 15 May 2011 at 5:02 PM, Dave Trindall wrote: Hey Tom,\nHow about we get together ...', 'signature': 'Cheers, Tom\n\n'}

About

Describe an email in terms of salutation, body, signature, reply text etc.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published