1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-23 05:50:55 +01:00

Detect alternate Danish outlook reply pattern

Summary: Sometimes we get a lowercase "Meddelelse" in Danish outlook. Relax the patterns since the risk of hitting false positives here is essentially nonexistant.

Test Plan: Unit tests.

Reviewers: davidreuss, btrahan, vrana

Reviewed By: vrana

CC: aran

Differential Revision: https://secure.phabricator.com/D2205
This commit is contained in:
epriestley 2012-04-11 10:31:04 -07:00
parent 8f70d891fa
commit cd2bca664c
2 changed files with 18 additions and 2 deletions

View file

@ -30,13 +30,13 @@ final class PhabricatorMetaMTAEmailBodyParser {
// Outlook english // Outlook english
$body = preg_replace( $body = preg_replace(
'/^\s*-----Original Message-----.*?/msU', '/^\s*-----Original Message-----.*?/imsU',
'', '',
$body); $body);
// Outlook danish // Outlook danish
$body = preg_replace( $body = preg_replace(
'/^\s*-----Oprindelig Meddelelse-----.*?/msU', '/^\s*-----Oprindelig Meddelelse-----.*?/imsU',
'', '',
$body); $body);

View file

@ -80,6 +80,22 @@ EOEMAIL
<<<EOEMAIL <<<EOEMAIL
OKAY OKAY
-----oprindelig meddelelse-----
> ...
EOEMAIL
,
<<<EOEMAIL
OKAY
-----original message-----
> ...
EOEMAIL
,
<<<EOEMAIL
OKAY
Sent from my HTC smartphone on the Now Network from Sprint! Sent from my HTC smartphone on the Now Network from Sprint!
-Reply message ----- From: "somebody (someone)" < -Reply message ----- From: "somebody (someone)" <