laminas / laminas-mime

Create and parse MIME messages and parts
https://docs.laminas.dev/laminas-mime/
BSD 3-Clause "New" or "Revised" License
29 stars 23 forks source link

Colon(:) not encoded in Mime class encodeQuotedPrintableHeader method #15

Closed hhovakimyan closed 3 years ago

hhovakimyan commented 3 years ago

I am using laminas-mail package for creating email messages in my project. laminas-mail package uses this package's Mime class encodeQuotedPrintableHeader method for encoding non ASCII header fields. But unlike other characters colon(:) is not encoded(replaced with =3A), which causes mail sender client(Amazon SES) in my case to reject the message. I suppose there will be also problem with other RFC 5322 special characters. So can you please encode these special characters like it is done on Mime::encodeQuotedPrintableHeader method line 204 $str = str_replace(['?', ',', ' ', '_'], ['=3F', '=2C', '=20', '=5F'], $str);

laminas-bot commented 3 years ago

This package is considered feature-complete, and is now in security-only maintenance mode, following a decision by the Technical Steering Committee. If you have a security issue, please follow our security reporting guidelines. If you wish to take on the role of maintainer, please nominate yourself

If you are looking for an actively maintained package alternative, we recommend: