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:
parent
f08908ff35
commit
05884e5042
2 changed files with 7 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
|
@ -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
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue