You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to run the below code
new Laminas\Mail\Storage\Message(['file' => DIR . '/../fixtures/emails/email_with_non_utf8_subject.eml'])
The file has subject with non-utf8 characters
For example:
Subject: This is AUTOABUSE. PLEASE STOP 178.162.214.194 spam defiling your email system or hosting. THANKU for compliance: ������� �������������� - �� 750 ���.
It gives the following exception back!!
Laminas\Mail\Header\Exception\InvalidArgumentException: Invalid header value detected
Summary
Current behavior
The file has subject with non-utf8 characters
For example:
Subject: This is AUTOABUSE. PLEASE STOP 178.162.214.194 spam defiling your mail system or hosting. THANKU for compliance: ������� �������������� - �� 750 ���.
It gives the following exception back!!
Laminas\Mail\Header\Exception\InvalidArgumentException: Invalid header value detected
How to reproduce
Try this
new Laminas\Mail\Storage\Message(['file' => DIR . '/../fixtures/emails/email_with_non_utf8_subject.eml'])''
and File should have the following content
Subject: This is AUTOABUSE. PLEASE STOP 178.162.214.194 spam defiling your mail system or hosting. THANKU for compliance: ������� �������������� - �� 750 ���.
Expected behavior
It fails with the latest version. I was able to create a message object earlier. I get InvalidArgumentException now. I should be able to create a message object with non-utf8 characters without any error.
The text was updated successfully, but these errors were encountered:
arunvarghe
changed the title
Laminas\Mail\Storage\Message fails with non utf8 charactes
Laminas\Mail\Storage\Message fails with non utf8 characters
Apr 28, 2023
Bug Report
When I try to run the below code
new Laminas\Mail\Storage\Message(['file' => DIR . '/../fixtures/emails/email_with_non_utf8_subject.eml'])
The file has subject with non-utf8 characters
For example:
Subject: This is AUTOABUSE. PLEASE STOP 178.162.214.194 spam defiling your email system or hosting. THANKU for compliance: ������� �������������� - �� 750 ���.
It gives the following exception back!!
Laminas\Mail\Header\Exception\InvalidArgumentException: Invalid header value detected
Summary
Current behavior
The file has subject with non-utf8 characters
For example:
Subject: This is AUTOABUSE. PLEASE STOP 178.162.214.194 spam defiling your mail system or hosting. THANKU for compliance: ������� �������������� - �� 750 ���.
It gives the following exception back!!
Laminas\Mail\Header\Exception\InvalidArgumentException: Invalid header value detected
How to reproduce
Try this
new Laminas\Mail\Storage\Message(['file' => DIR . '/../fixtures/emails/email_with_non_utf8_subject.eml'])''
and File should have the following content
Subject: This is AUTOABUSE. PLEASE STOP 178.162.214.194 spam defiling your mail system or hosting. THANKU for compliance: ������� �������������� - �� 750 ���.
Expected behavior
It fails with the latest version. I was able to create a message object earlier. I get InvalidArgumentException now. I should be able to create a message object with non-utf8 characters without any error.
The text was updated successfully, but these errors were encountered: