Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@fkoyer
Copy link
Contributor

@fkoyer fkoyer commented Nov 21, 2021

Hi Zaahid,

I'm seeing some messages come through with the unicode-1-1-utf-7 charset. For example:

Content-Type: text/plain; charset=unicode-1-1-utf-7

This is an automatically generated Delivery Status Notification.

Delivery to the following recipients failed.

Probably coming from a very old mail server. However, it was causing the following error in mime-mail-parser which is dependent on this repo.

Notice: iconv_strlen(): Wrong charset, conversion from `UNICODE-1-1-UTF-7' to `UCS-4LE' is not allowed

Adding this charset as an alias of UTF-7 fixes the issue.

@zbateson zbateson merged commit bfd45fb into zbateson:master Nov 22, 2021
@zbateson
Copy link
Owner

Cool, thanks @fkoyer -- released in 1.1.1

@fkoyer
Copy link
Contributor Author

fkoyer commented Nov 22, 2021

Awesome. Thanks for the quick response!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants