@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.

Strip GMail French quote header

Summary: Ref T8199. Add pattern matching for GMail French.

Test Plan:
- Switched Gmail to french.
- Replied to some mail.
- Extracted quoted text header.
- Added and executed unit test.

Reviewers: btrahan

Reviewed By: btrahan

Subscribers: tycho.tatitscheff, epriestley

Maniphest Tasks: T8199

Differential Revision: https://secure.phabricator.com/D12845

+13
+6
src/applications/metamta/parser/PhabricatorMetaMTAEmailBodyParser.php
··· 123 123 '', 124 124 $body); 125 125 126 + // French GMail quoted text. See T8199. 127 + $body = preg_replace( 128 + '/^\s*\d{4}-\d{2}-\d{2} \d+:\d+ GMT.*:.*?/imsU', 129 + '', 130 + $body); 131 + 126 132 return rtrim($body); 127 133 } 128 134
+7
src/applications/metamta/parser/__tests__/PhabricatorMetaMTAEmailBodyParserTestCase.php
··· 254 254 {$emdash} 255 255 Sent from Mailbox 256 256 EOMAIL 257 + , 258 + <<<EOMAIL 259 + OKAY 260 + 261 + 2015-05-06 11:21 GMT-07:00 Someone <someone@somewhere.com>: 262 + > ... 263 + EOMAIL 257 264 ); 258 265 } 259 266