Skip to content
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 with colon ";" is truncated #401

Closed
freescout-helpdesk opened this issue May 2, 2023 · 4 comments
Closed

Subject with colon ";" is truncated #401

freescout-helpdesk opened this issue May 2, 2023 · 4 comments

Comments

@freescout-helpdesk
Copy link
Contributor

Describe the bug

An email with the subject 1;00pm Client running few minutes late is imported with the following subject: 1

Originally reported in freescout-help-desk/freescout#2964

Desktop / Server (please complete the following information):

OS: Debian GNU/Linux 10
PHP: 8.2
Version 4.1.1
Provider: Office365

@freescout-helpdesk
Copy link
Contributor Author

This happens only with Webklex/php-imap and does not happen with previous Webklex/laravel-imap library.

@freescout-helpdesk
Copy link
Contributor Author

This can be fixed by changing

if (($key == "user_agent") === false) {

to:

    if (($key == "user_agent") === false && ($key == "subject") === false) {

@Webklex
Copy link
Owner

Webklex commented Jun 23, 2023

Hi @freescout-helpdesk ,

Thanks a lot for reporting this issue. I really appreciate it! I was able to reproduce the issue and just pushed a fix.

Once again, thanks for taking the time and effort to make this library better! If you have any more questions or need further assistance, feel free to let me know.

Best regards and happy coding!

@freescout-helpdesk
Copy link
Contributor Author

Thanks for all your work.

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

No branches or pull requests

2 participants