diff --git a/src/applications/metamta/parser/PhabricatorMetaMTAEmailBodyParser.php b/src/applications/metamta/parser/PhabricatorMetaMTAEmailBodyParser.php index 2701631a98..e384ef1290 100644 --- a/src/applications/metamta/parser/PhabricatorMetaMTAEmailBodyParser.php +++ b/src/applications/metamta/parser/PhabricatorMetaMTAEmailBodyParser.php @@ -30,13 +30,13 @@ final class PhabricatorMetaMTAEmailBodyParser { // Outlook english $body = preg_replace( - '/^\s*-----Original Message-----.*?/msU', + '/^\s*-----Original Message-----.*?/imsU', '', $body); // Outlook danish $body = preg_replace( - '/^\s*-----Oprindelig Meddelelse-----.*?/msU', + '/^\s*-----Oprindelig Meddelelse-----.*?/imsU', '', $body); diff --git a/src/applications/metamta/parser/__tests__/PhabricatorMetaMTAEmailBodyParserTestCase.php b/src/applications/metamta/parser/__tests__/PhabricatorMetaMTAEmailBodyParserTestCase.php index 5f0a74eaa4..190cddff0f 100644 --- a/src/applications/metamta/parser/__tests__/PhabricatorMetaMTAEmailBodyParserTestCase.php +++ b/src/applications/metamta/parser/__tests__/PhabricatorMetaMTAEmailBodyParserTestCase.php @@ -80,6 +80,22 @@ EOEMAIL << ... +EOEMAIL +, +<< ... +EOEMAIL +, +<<