kvannotten / mailstrip Goto Github PK
View Code? Open in Web Editor NEWGolang mailstrip
License: Other
Golang mailstrip
License: Other
This example was sent from Thunderbird which uses 2 dashes to separate the message from the signature. The problem only exists if no new line is added at the end of the email.
This returns correctly
Hello World
--
*Sarah Coxon*
Software Developer
With output
Hello World
But this returns the whole thing
Hello World
--
*Sarah Coxon*
Software Developer
Thanks
This package is working great for us so thank you but there does seem to be an issue with detecting headers in outlook emails.
Outlook message reply test
Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550123> for Windows 10
From: Support<mailto:[email protected]>
Sent: 10 July 2020 09:46
Subject: Support - test ticket no. 3
Alan Smith has created the support ticket test ticket no. 3<https://test.co.uk/support/edit/345>.
You are set as the handler for this ticket.
outlook test
jjsid345jjsid jjsurlhttps://test.co.uk/support/edit/345jjsurl
I have replaced the email addresses but the rest is the same.
I believe the output should be
Outlook message reply test
But instead it returns the whole message
When parsing emails from google Inbox / gmail, the reply is not parsed properly, consider this example:
(in swedish)
shysst! Vad är du beredd att betala då ?
tors 6 dec. 2018 kl 13:30 skrev Martin Bergqvist <\[email protected]>:
Nytt meddelande
<#m_6703246277760107873_>
Nytt meddelandeDu har fått ett nytt meddelande
Test
is getting parsed as :
shysst! Vad är du beredd att betala då ?\n\ntors 6 dec. 2018 kl 13:30 skrev Martin Bergqvist <\[email protected]>:
When day contains åäö, the parser does not work.
Example email:
shysst! Vad är du beredd att betala då ?
mån 6 dec. 2018 kl 13:30 skrev Martin Bergqvist <\[email protected]>:
Nytt meddelande
<#m_6703246277760107873_>
Nytt meddelandeDu har fått ett nytt meddelande
Test
results in :
shysst! Vad är du beredd att betala då ?\n\nmån 6 dec. 2018 kl 13:30 skrev Martin Bergqvist <\[email protected]>:
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.