-
-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with subject =?UTF-8?Q? (2) #420
Comments
@Webklex I tried what you said but no solutions.. I'm available to explore the issue but all did I try didn't worked. |
Hi @paulocardozo, Since you are using a windows environment, I'm intriqued if it's related to #413. Additionally, please donate an anonymized version of the troubling mail. This will allow me to create a dedicated test case for this issue. Once again, thanks for taking the time and effort to make this library better! Best regards and happy coding, |
@Webklex I can provide you in private |
@Webklex It seems be a local problem.. I'm creating from scratch an application that verify constantly a mailbox, in the older version of application, your packege is working as well, but on newer not.. I'll further investigate here and post as soon as I have news. Thanks! |
@Webklex I just noticed, the same code works on unix server (Hostinger), but isn't working locally on Windows. It's seems very strange to me, but still investigating.. |
Hi @paulocardozo , |
@Webklex I really dont know.. I've checked all php.ini from versions installed here and nothing seems wrong.. It's the old version, working.. Working (Old) - ExtractBookingEmailsJob.zip It's the newest version, not working.. |
Honestly, I have no idea right now.. If anything regarding this pops in my mind I'll let you know for sure. |
@Webklex Well, as I'm very delayed in a project, I've tested the solution above, it's related to #410 (comment) and it worked. `private static function decodeSubject($subject) {
|
FYI. In our project we've completely replaced And it works like a charm now. So we have not seen any subject which this function could not decode. |
I have version 5.5 and the MailHelper library does not exist. Why? I have the same problem, some email subjects don't go well. |
I have created a function to parse subject: `private static function decodeSubject($subject)
|
Wonderful, works perfectly, thank you very much. We'll hope the imap-php library fixes this in the future. |
Hi guys, sometimes the $message->getSubject() method returns text in quoted-printable. How can I detect the format of the email subject? |
this paulocardozo decodeSubject function id doing pretty good job with my test set of subjects, but cannot decode this one:
I had issue with it using some modified Roundcubemail methods (my 10 years old solution), and I had to make some modifications for this subject. Finally I got a solution that decode it to valid UTF-8 string, but it's complicated and I need a better one with Webklex/php-imap. Anybody can modify this nice paulocardozo function above to work with this subject? |
We've just checked this subject with the latest version of decodeSubject() function, it was decoded into:
|
Great. That's correct subject. In original encoded subject there are a couple of invalid utf-8 characters and that function is replacing them with question mark. Thanks! |
Describe the bug
When I'm parsing the e-mail message, I'm facing this issue when trying to getSubject().
Used config
I'm using default package config.
Code to Reproduce
The troubling code section which produces the reported bug.
Expected behavior
99% of cases this script work, but to an specific message it's returing the subject as:
=?utf-8?Q?Confirmaci=C3=B3n_reserva_Free_Tour_Flo?= =?utf-8?Q?rencia_Esencial_-_Buendiatours.com?=
Desktop / Server (please complete the following information):
The text was updated successfully, but these errors were encountered: