Permalink
Browse files

Added Japanese, Simplified Chinese and Korean

Added Japanese, Simplified Chinese and Korean quote headers and "Send from my" lines.
  • Loading branch information...
1 parent 11f4919 commit 3dba7757b146d3a561c34a8af04cc05c70800a87 @sigginet sigginet committed with sigginet Nov 8, 2016
@@ -35,6 +35,9 @@ class EmailParser
'/^(W dniu\s.+?(pisze|napisał):)$/ms', // W dniu DATE, NAME <EMAIL> pisze|napisał:
'/^(Den\s.+\sskrev\s.+:)$/m', // Den DATE skrev NAME <EMAIL>:
'/^(Am\s.+\sum\s.+\sschrieb\s.+:)$/m', // Am DATE um TIME schrieb NAME:
+ '/^(在.+写道:)$/ms', // > 在 DATE, TIME, NAME 写道:
+ '/^(20[0-9]{2}\..+\s작성:)$/m', // DATE TIME NAME 작성:
+ '/^(20[0-9]{2}\/.+のメッセージ:)$/m', // DATE TIME、NAME のメッセージ:
'/^(.+\s<.+>\sschrieb:)$/m', // NAME <EMAIL> schrieb:
'/^(20[0-9]{2}\-(?:0?[1-9]|1[012])\-(?:0?[0-9]|[1-2][0-9]|3[01]|[1-9])\s[0-2]?[0-9]:\d{2}\s.+?:)$/ms', // 20YY-MM-DD HH:II GMT+01:00 NAME <EMAIL>:
);
@@ -289,6 +289,9 @@ public function getDateFormats()
array('Den 08/06/2015 kl. 21.21 skrev Test user <test@example.com>:'), // Danish
array('Am 25.06.2015 um 10:55 schrieb Test user:'), // German 1
array('Test user <test@example.com> schrieb:'), // German 2
+ array('在 2016年11月8日,下午2:23,Test user <test@example.com> 写道:'), // Chinese Apple Mail iPhone parsed html
+ array('2016. 11. 8. 오후 12:39 Test user <test@example.com> 작성:'), // Korean Apple Mail iPhone
+ array('2016/11/08 14:26、Test user <test@example.com> のメッセージ:'), // Japanese Apple Mail iPhone
);
}
}

0 comments on commit 3dba775

Please sign in to comment.