From 44e3b6883bdfe9724cad7247118864bfb4b26731 Mon Sep 17 00:00:00 2001 From: John-Ashton Allen Date: Mon, 2 Apr 2012 15:21:15 -0700 Subject: [PATCH] Changed MetaMta Body Parser to handle HTC mail application correctly Summary: Added a regex to remove the text Test Plan: Tested a few messages, from mail application them gmail, both seemed fine, will add unit tests Reviewers: epriestley Reviewed By: epriestley CC: aran Differential Revision: https://secure.phabricator.com/D2078 --- .../parser/PhabricatorMetaMTAEmailBodyParser.php | 8 +++++++- .../PhabricatorMetaMTAEmailBodyParserTestCase.php | 14 +++++++++++++- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/src/applications/metamta/parser/PhabricatorMetaMTAEmailBodyParser.php b/src/applications/metamta/parser/PhabricatorMetaMTAEmailBodyParser.php index dd07422bcb..4b2b5a398c 100644 --- a/src/applications/metamta/parser/PhabricatorMetaMTAEmailBodyParser.php +++ b/src/applications/metamta/parser/PhabricatorMetaMTAEmailBodyParser.php @@ -1,7 +1,7 @@ ... +EOEMAIL +, +<< +To: +Subject: Some Text Date: Mon, Apr 2, 2012 1:42 pm > ... EOEMAIL );