-
-
Notifications
You must be signed in to change notification settings - Fork 180
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
Subject encoding #295
Comments
Hi, I had the same issue, and found a workaround. I'm not sure if this is the best approach to this issue, anyway this worked for me: In Message.php on line 401 change |
Hi, I ended up doing something similar. However, I am also forced to replace accented caracters with normal ones. The workaround you mentionned can not be used in my case as I need to compare the subjects of multiple messages to group them by conversation. (Looking at references also) |
Addresses issue Webklex#295 regarding weird subjects. Example: =?utf-8?Q?Suivez=20l=27actualit=C3=A9=20de=20l=27Ecole=20Nemesis=20=22intra=20muros=22?=`
mb_decode_mimeheader($oMessage->getSubject()); |
Please update to the latest version and take a look at the available config option Best regards, |
When I compare the encode subject with some other language then its show null data This is the query |
Subject issue- fetching email from the mail server with this package subject coming in this format =?UTF-8?B?4KSo4KS/4KS14KS/4KSm4KS+IOCkuOCkguCkluCljeCkr+CkviBHRU0vMjAyMy9CLzM0OA==?= =?UTF-8?B?MTcwOCDgpK7gpYfgpIIg4KSr4KS+4KSH4KSo4KWH4KSC4KS44KS/4KSv4KSyIOCksOClh+CknyDgpJU=?= how can i fix this? |
Working solution is described here: Webklex/php-imap#410 |
it works, Thank you so much @freescout-helpdesk . |
Describe the bug
When saving subject to database, sometimes the subject output is different for messages with the same subject. (Ex. Two reply to the same message)
Reply A subject: 'Re: Accès SQL Anthony'
Reply B subject: 'Re: Acce`s SQL Anthony'
To Reproduce
Steps to reproduce the behavior:
getMessage()
on message AgetMessage()
on message BExpected behavior
Message should be the same for the two messages since the email source has the same subject and encoding information.
Additionnal information
To convert Re: =?utf-8?Q?Acc=C3=A8s_?=SQL Anthony to proper UTF8, I use the following function which when saved to database is correctly set to 'Re: Accès SQL Anthony'
The message which is saved as Re: Acce
s SQL Anthony in the database is already UTF-8 when I call
getSubject()I have tried UTF-8, ASCII and nothing as
decoder.message.subject` setting.Screenshots
If applicable, add screenshots to help explain your problem.
Desktop / Server (please complete the following information):
Additional context
Here is the email source of email a and B (Subject part only)
A:
Subject: Re: =?utf-8?Q?Acc=C3=A8s_?=SQL Anthony
B:
Subject: =?UTF-8?Q?Re=3A_Acc=C3=A8s_SQL_Anthony?=
The text was updated successfully, but these errors were encountered: