From eb55ac5cea8ad3720505645600e6d854d737603a Mon Sep 17 00:00:00 2001 From: David Flatz Date: Wed, 3 Feb 2016 18:00:43 +0100 Subject: don't split addrlist at comma when the comma is inside a quoted string, this should fix mails to people with umlauts and comma in realname --- tests/it_mail.t | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'tests') diff --git a/tests/it_mail.t b/tests/it_mail.t index 1762788..44ed30d 100755 --- a/tests/it_mail.t +++ b/tests/it_mail.t @@ -32,7 +32,7 @@ is( is( $mail->addrlist_escape('example@example.com, éxample@example.com, Sömeone Ëlse ', true), - 'example@example.com, éxample@example.com,=?utf-8?Q?_S=C3=B6meone_=C3=8Blse?= ', + 'example@example.com, éxample@example.com,=?utf-8?Q?S=C3=B6meone_=C3=8Blse?= ', "Don't escape email addresses but escape realnames", ); @@ -45,27 +45,27 @@ is( $mail = new it_mail( 'From' => 'Someone Ïmportant <ïmportant@search.ch>', - 'To' => 'éxample@example.com, example@example.com, Sömeone Ëlse , "Alfred E. Neuman" ', - 'Cc' => 'éxample@example.com, example@example.com, Sömeone Ëlse , "Alfred E. Neuman" ', - 'Bcc' => 'éxample@example.com, example@example.com, Sömeone Ëlse , "Alfred E. Neuman" ', + 'To' => 'éxample@example.com, example@example.com, Sömeone Ëlse , "Alfred E. Neuman" , "Schmitt, Sören" ', + 'Cc' => 'éxample@example.com, example@example.com, Sömeone Ëlse , "Alfred E. Neuman" , "Schmitt, Sören" ', + 'Bcc' => 'éxample@example.com, example@example.com, Sömeone Ëlse , "Alfred E. Neuman" , "Schmitt, Sören" ', 'Subject' => "§önÐë®z€ı¢ħèṇ", ); is( $mail->to[0], - 'éxample@example.com, example@example.com,=?utf-8?Q?_S=C3=B6meone_=C3=8Blse?= , "Alfred E. Neuman" ', + 'éxample@example.com, example@example.com,=?utf-8?Q?S=C3=B6meone_=C3=8Blse?= , "Alfred E. Neuman" ,=?utf-8?Q?Schmitt,_S=C3=B6ren?= ', 'Escape To: field as addrlist', ); is( $mail->cc[0], - 'éxample@example.com, example@example.com,=?utf-8?Q?_S=C3=B6meone_=C3=8Blse?= , "Alfred E. Neuman" ', + 'éxample@example.com, example@example.com,=?utf-8?Q?S=C3=B6meone_=C3=8Blse?= , "Alfred E. Neuman" ,=?utf-8?Q?Schmitt,_S=C3=B6ren?= ', 'Escape Cc: field as addrlist', ); is( $mail->bcc[0], - 'éxample@example.com, example@example.com,=?utf-8?Q?_S=C3=B6meone_=C3=8Blse?= , "Alfred E. Neuman" ', + 'éxample@example.com, example@example.com,=?utf-8?Q?S=C3=B6meone_=C3=8Blse?= , "Alfred E. Neuman" ,=?utf-8?Q?Schmitt,_S=C3=B6ren?= ', 'Escape Bcc: field as addrlist', ); -- cgit v1.2.3