kubkon / email-chattifier Goto Github PK
View Code? Open in Web Editor NEWGoogle Chrome extension that re-formats your email conversation
License: MIT License
Google Chrome extension that re-formats your email conversation
License: MIT License
Hey Jakub,
I'm trying to chatify an email thread, (see image). I click the button and it doesn't seem to do anything, nor does it provide feedback that it has performed an action or not performed an action.
Please consider:
providing user feedback on click to tell user:
"processing..."/
"nothing to process"/
"process complete"/
"x emails chatified"
The regex is too greedy resulting in wrongly parsed From...To... block. Example:
From:...
To...
Subject...
Date...
something else
From:...
Cc...
Will match all of it, instead of only the first block.
Cases where the reply is not in English fails. That is, the phrase does not contain the magic words "On" or "wrote", but it contains date, name and email address, and language specific words/characters. Example:
01/01/2011, Aaaa Bbbb <[email protected]> (wrote in foreign language):
Regex for matching most common signature delimiters, and their removal from the re-formatted email trail. Example of a signature would be:
---
John Someone
www.johnnyS.com
Parse:
From: someone <[email protected]>
To: someone <[email protected]>
Date:...
Subject:...
Cc:...
and its varieties into one liners of the type:
On <date>, someone <[email protected]> wrote:
If the email contains the following string:
(...) something, right -- which was (...)
then, the parser will eat everything to the right of "--" mistaking it for a signature:
(...) something, right
This includes also brackets surround email addresses <email_address>
; hence this becomes <email_address
which is obviously unwanted.
On <date>, <color>someone</color> wrote:
Links to websites, etc.
Example:
...
From: Someone <[email protected]>
...
This would result in a one-liner:
On ..., Someone wrote:
Rather than the expected:
On ..., Someone <[email protected]> wrote:
Example:
From: John <[email protected]>
To: [email protected]
Date: 01/01/2001 12:07 PM
Subject: Your inquiry - Hello
Sometimes span elements containing the content of subject, i.e.:
<span>Your inquiry -
Hello</span>
Which then results in messed up textContent
of the element (note the additional newline after "Your inquiry -".
Example:
...
The part number #1234 was unavailable...
...
will render to:
...
The part number
#1234
was unavailble...
...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.