@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

+7 -1
+1 -1
src/applications/metamta/parser/PhabricatorMetaMTAEmailBodyParser.php
··· 51 51 52 52 private function stripQuotedText($body) { 53 53 $body = preg_replace( 54 - '/^\s*On\b.*\bwrote:.*?/msU', 54 + '/^\s*>?\s*On\b.*\bwrote:.*?/msU', 55 55 '', 56 56 $body); 57 57
+6
src/applications/metamta/parser/__tests__/PhabricatorMetaMTAEmailBodyParserTestCase.php
··· 149 149 Subject: Core World Tariffs 150 150 EOMAIL 151 151 , 152 + <<<EOMAIL 153 + OKAY 154 + 155 + > On 17 Oct 2013, at 17:47, "Someone" <somebody@somewhere> wrote: 156 + > ... 157 + EOMAIL 152 158 ); 153 159 } 154 160