diff --git a/src/applications/metamta/parser/PhabricatorMetaMTAEmailBodyParser.php b/src/applications/metamta/parser/PhabricatorMetaMTAEmailBodyParser.php index e101429070..dd07422bcb 100644 --- a/src/applications/metamta/parser/PhabricatorMetaMTAEmailBodyParser.php +++ b/src/applications/metamta/parser/PhabricatorMetaMTAEmailBodyParser.php @@ -30,6 +30,18 @@ final class PhabricatorMetaMTAEmailBodyParser { '', $body); + // Outlook english + $body = preg_replace( + '/^\s*-----Original Message-----.*?/msU', + '', + $body); + + // Outlook danish + $body = preg_replace( + '/^\s*-----Oprindelig Meddelelse-----.*?/msU', + '', + $body); + return rtrim($body); } diff --git a/src/applications/metamta/parser/__tests__/PhabricatorMetaMTAEmailBodyParserTestCase.php b/src/applications/metamta/parser/__tests__/PhabricatorMetaMTAEmailBodyParserTestCase.php index 3b8bbce033..a7f1a87fa3 100644 --- a/src/applications/metamta/parser/__tests__/PhabricatorMetaMTAEmailBodyParserTestCase.php +++ b/src/applications/metamta/parser/__tests__/PhabricatorMetaMTAEmailBodyParserTestCase.php @@ -57,6 +57,22 @@ On Fri, May 27, 2011 at 9:39 AM, Someone > ... +EOEMAIL +, +<< ... +EOEMAIL +, +<< ... EOEMAIL ); }