Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15371897
D7440.id16762.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1016 B
Referenced Files
None
Subscribers
None
D7440.id16762.diff
View Options
Index: src/applications/metamta/parser/PhabricatorMetaMTAEmailBodyParser.php
===================================================================
--- src/applications/metamta/parser/PhabricatorMetaMTAEmailBodyParser.php
+++ src/applications/metamta/parser/PhabricatorMetaMTAEmailBodyParser.php
@@ -51,7 +51,7 @@
private function stripQuotedText($body) {
$body = preg_replace(
- '/^\s*On\b.*\bwrote:.*?/msU',
+ '/^\s*>?\s*On\b.*\bwrote:.*?/msU',
'',
$body);
Index: src/applications/metamta/parser/__tests__/PhabricatorMetaMTAEmailBodyParserTestCase.php
===================================================================
--- src/applications/metamta/parser/__tests__/PhabricatorMetaMTAEmailBodyParserTestCase.php
+++ src/applications/metamta/parser/__tests__/PhabricatorMetaMTAEmailBodyParserTestCase.php
@@ -149,6 +149,12 @@
Subject: Core World Tariffs
EOMAIL
,
+<<<EOMAIL
+OKAY
+
+> On 17 Oct 2013, at 17:47, "Someone" <somebody@somewhere> wrote:
+> ...
+EOMAIL
);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Mar 13, 1:16 PM (1 w, 2 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7620933
Default Alt Text
D7440.id16762.diff (1016 B)
Attached To
Mode
D7440: Add a quoted body stripping pattern for "> On ... at ... wrote:"
Attached
Detach File
Event Timeline
Log In to Comment