email-forward-parser 1.0.18 → 1.0.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/parser.js +5 -0
  2. package/package.json +1 -1
package/lib/parser.js CHANGED
@@ -570,6 +570,11 @@ class Parser {
570
570
  return _author;
571
571
  }
572
572
 
573
+ // Multiple authors found?
574
+ if (Array.isArray(_author) && _author[0].address) {
575
+ return _author[0];
576
+ }
577
+
573
578
  // Second method: extract the author via the separator (Outlook 2019)
574
579
  var _match = loopRegexes(this.__regexes.separator_with_information, body);
575
580
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "email-forward-parser",
3
- "version": "1.0.18",
3
+ "version": "1.0.19",
4
4
  "description": "Parses forwarded emails and extract content",
5
5
  "author": "Eliott Vincent <eliott@crisp.chat>",
6
6
  "main": "lib/index.js",