Skip to content

Commit

Permalink
v1.0.22
Browse files Browse the repository at this point in the history
Fix Gmail wording
  • Loading branch information
eliottvincent committed Mar 28, 2024
1 parent 8fa7490 commit 06d5cd7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ var REGEXES = {

recipient : [
/the following addresses had permanent fatal errors (?:.*?)\s\<(.+?)\>/i,
/there was a temporary problem delivering your message to (.+?). Gmail will retry/i,
/there was a temporary problem (?:while )?delivering your message to (.+?). Gmail will retry/i,
/the following message to \<(.+?)\> was undeliverable/i,
/to the following addresses:\s*(.+)/i,
/^your message wasn't delivered to (.+?)\s/mi, // "Your message wasn't delivered to [email protected]"
Expand Down Expand Up @@ -555,6 +555,7 @@ class Parser {
_str = _str.replace(this.__regexes.line_break_double_indent_single, "\n\n");

// Replace single Line-break with regular space
// TODO: re2 doesn't support lookbehinds, so for now we use a pure-JS regex
_str = _str.replace(/(?<!\n)\n(?!\n)/gm, " ");

// Replace long indent with double Line-break
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-bounce-parser",
"version": "1.0.21",
"version": "1.0.22",
"description": "Parses bounce emails and extract errors",
"author": "Eliott Vincent <[email protected]>",
"main": "lib/index.js",
Expand Down

0 comments on commit 06d5cd7

Please sign in to comment.