1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-30 01:10:58 +01:00

Add a quoted body stripping pattern for "> On ... at ... wrote:"

Summary: See @scottmac's reply in T3982. It looks like his email client uses the standard quote string, but includes it in the quoted block.

Test Plan: Added a failing unit test, made it pass.

Reviewers: btrahan

Reviewed By: btrahan

CC: scottmac, aran

Differential Revision: https://secure.phabricator.com/D7440
This commit is contained in:
epriestley 2013-10-30 13:07:18 -07:00
parent f08908ff35
commit 05884e5042
2 changed files with 7 additions and 1 deletions

View file

@ -51,7 +51,7 @@ final class PhabricatorMetaMTAEmailBodyParser {
private function stripQuotedText($body) {
$body = preg_replace(
'/^\s*On\b.*\bwrote:.*?/msU',
'/^\s*>?\s*On\b.*\bwrote:.*?/msU',
'',
$body);

View file

@ -149,6 +149,12 @@ From: Abraham Lincoln <alincoln@logcab.in>
Subject: Core World Tariffs
EOMAIL
,
<<<EOMAIL
OKAY
> On 17 Oct 2013, at 17:47, "Someone" <somebody@somewhere> wrote:
> ...
EOMAIL
);
}