Skip to content

Commit

Permalink
v1.6.0
Browse files Browse the repository at this point in the history
Add MailMate support
  • Loading branch information
eliottvincent committed Dec 12, 2023
1 parent e85a47f commit ff7cd01
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ _👋 You use this library and you want to be listed there? [Contact us](https:/
## Features

This library is used at [Crisp](https://crisp.chat/) everyday with around 1 million inbound emails.
* Supported clients: Apple Mail, Gmail, Outlook Live / 365, Outlook 2013, Outlook 2019, New Outlook 2019, Yahoo Mail, Thunderbird, Missive, HubSpot, IONOS by 1 & 1
* Supported clients: Apple Mail, Gmail, Outlook Live / 365, Outlook 2013, Outlook 2019, New Outlook 2019, Yahoo Mail, Thunderbird, Missive, HubSpot, IONOS by 1 & 1, MailMate
* Supported locales: Croatian, Czech, Danish, Dutch, English, French, Finnish, German, Hungarian, Italian, Japanese, Norwegian, Polish, Portuguese (Brazil), Portuguese (Portugal), Romanian, Russian, Slovak, Spanish, Swedish, Turkish, Ukrainian

## Usage
Expand Down Expand Up @@ -98,7 +98,7 @@ Thunderbird | Yes | Yes | No | Yes | Yes | Yes | --
Missive | Yes | Yes | No | No | Yes | No | --
HubSpot | Yes | Yes | Yes | Yes | Yes | Yes | --
IONOS by 1 & 1 | ? | Yes | ? | ? | Yes | ? | --
MailMate | Yes | Yes | No | No | Yes | No | --
MailMate | Yes | Yes | ? | ? | Yes | ? | --

## Contributing

Expand Down
5 changes: 3 additions & 2 deletions lib/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ var REGEXES = {
/^>?\s*İleti başlangıcı\s?:/m, // Apple Mail (tr)
/^>?\s*Початок листа, що пересилається\s?:/m, // Apple Mail (uk)
/^\s*-{8,10}\s*Forwarded message\s*-{8,10}\s*/m, // Gmail (all locales), Missive (en), HubSpot (en)
/^Forwarded message:/m, // Mailmate
/^\s*_{32}\s*$/m, // Outlook Live / 365 (all locales)
/^\s?Forwarded message:/m, // Mailmate
/^\s?Dne\s?.+\,\s?.+\s*[\[|<].+[\]|>]\s?napsal\(a\)\s?:/m, // Outlook 2019 (cz)
/^\s?D.\s?.+\s?skrev\s?\".+\"\s*[\[|<].+[\]|>]\s?:/m, // Outlook 2019 (da)
/^\s?Am\s?.+\s?schrieb\s?\".+\"\s*[\[|<].+[\]|>]\s?:/m, // Outlook 2019 (de)
Expand Down Expand Up @@ -636,7 +636,8 @@ class Parser {

// First method: extract the text after the Subject part \
// (Outlook Live / 365) or after the Cc, To or Reply-To part \
// (Apple Mail, Gmail). A new line must be present.
// (Apple Mail, Gmail) or Date part (MailMate). A new line must be \
// present.
// Notice: use 'line' regexes that will capture not only the Subject, Cc, \
// To or Reply-To part, but also the line itself, as we may need it \
// to build the original body back (in case of nested emails)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "email-forward-parser",
"version": "1.5.11",
"version": "1.6.0",
"description": "Parses forwarded emails and extract content",
"author": "Eliott Vincent <eliott@crisp.chat>",
"main": "lib/index.js",
Expand Down

0 comments on commit ff7cd01

Please sign in to comment.