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:
parent
8f70d891fa
commit
cd2bca664c
2 changed files with 18 additions and 2 deletions
|
@ -30,13 +30,13 @@ final class PhabricatorMetaMTAEmailBodyParser {
|
|||
|
||||
// Outlook english
|
||||
$body = preg_replace(
|
||||
'/^\s*-----Original Message-----.*?/msU',
|
||||
'/^\s*-----Original Message-----.*?/imsU',
|
||||
'',
|
||||
$body);
|
||||
|
||||
// Outlook danish
|
||||
$body = preg_replace(
|
||||
'/^\s*-----Oprindelig Meddelelse-----.*?/msU',
|
||||
'/^\s*-----Oprindelig Meddelelse-----.*?/imsU',
|
||||
'',
|
||||
$body);
|
||||
|
||||
|
|
|
@ -80,6 +80,22 @@ EOEMAIL
|
|||
<<<EOEMAIL
|
||||
OKAY
|
||||
|
||||
-----oprindelig meddelelse-----
|
||||
|
||||
> ...
|
||||
EOEMAIL
|
||||
,
|
||||
<<<EOEMAIL
|
||||
OKAY
|
||||
|
||||
-----original message-----
|
||||
|
||||
> ...
|
||||
EOEMAIL
|
||||
,
|
||||
<<<EOEMAIL
|
||||
OKAY
|
||||
|
||||
Sent from my HTC smartphone on the Now Network from Sprint!
|
||||
|
||||
-Reply message ----- From: "somebody (someone)" <
|
||||
|
|
Loading…
Reference in a new issue