diff --git a/src/EmailReplyParser/Parser/EmailParser.php b/src/EmailReplyParser/Parser/EmailParser.php index 5694944..0ca6b41 100644 --- a/src/EmailReplyParser/Parser/EmailParser.php +++ b/src/EmailReplyParser/Parser/EmailParser.php @@ -29,6 +29,7 @@ class EmailParser '/^(On\s.+wrote:)$/ms', // On DATE, NAME wrote: '/^(Le\s.+écrit :)$/ms', // Le DATE, NAME a écrit : '/^(El\s.+escribió:)$/ms', // El DATE, NAME escribió: + '/^(W dniu\s.+(pisze|napisał):)$/ms', // W dniu DATE, NAME pisze|napisał: '/^(20[0-9]{2}\-(?:0?[1-9]|1[012])\-(?:0?[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 : ); diff --git a/tests/EmailReplyParser/Tests/Parser/EmailParserTest.php b/tests/EmailReplyParser/Tests/Parser/EmailParserTest.php index c2aa6b1..fce2403 100644 --- a/tests/EmailReplyParser/Tests/Parser/EmailParserTest.php +++ b/tests/EmailReplyParser/Tests/Parser/EmailParserTest.php @@ -241,7 +241,9 @@ public function getDateFormats() array('2014-03-20 20:48 GMT+01:00 Rémi Dolan :'), // Gmail array('Le 19 mars 2014 10:37, Cédric Lombardot a écrit :'), // Gmail array('El 19/03/2014 11:34, Juan Pérez escribió:'), // Gmail in spanish + array('W dniu 7 stycznia 2015 15:24 użytkownik Paweł Brzoski napisał:'), //Gmail in polish array('Le 19/03/2014 11:34, Georges du chemin a écrit :'), // Thunderbird + array('W dniu 2015-01-07 14:23, pbrzoski91@gmail.com pisze: '), // Thunderbird in polish ); } }