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

Email image parsing failed (cid, mimeDecode) #6680

Open
4 tasks done
changyy opened this issue Apr 2, 2024 · 1 comment
Open
4 tasks done

Email image parsing failed (cid, mimeDecode) #6680

changyy opened this issue Apr 2, 2024 · 1 comment

Comments

@changyy
Copy link

changyy commented Apr 2, 2024

Prerequisites

  • Can you reproduce the problem in a fresh installation of the "develop" branch?
  • Do you have any errors in the PHP error log, or javascript console?
  • Did you check the osTicket forums?
  • Did you perform a cursory search to see if your bug or enhancement is already reported?

For more information on how to write a good bug report

Description

Recently, we upgraded our osTicket system to v1.18.1 and are utilizing a PHP 8 environment. We've observed some issues with the processing of certain emails, such as abnormalities with emails that display images using cid. We've conducted tests in a clean environment built with Docker, and the issue persists both in v1.18.1 and the develop branch.

For the Docker environment, please refer to: https://github.com/changyy/osticket-study

This issue is reproducible. It only requires sending an email via Gmail and attempting to attach an image.

Furthermore, I have researched the underlying logic of osTicket's email processing and will soon submit a Pull request to address this issue.

Steps to Reproduce

  1. Use Gmail
  2. Mail Subject: Test from gmail
  3. Mail Body:

Hello,

image:
[image]

thanks

Expected behavior: [What you expected to happen]

http://localhost/scp/tickets.php?id=# reads images from the website.

Actual behavior: [What actually happened]

test-from-gmail

Versions

Admin panel -> Dashboard -> Information which also additionally gives you information about your server.

2024-04-02

Also, please include the OS and what version of the OS you're running. As well as your browser and browser version.

changyy added a commit to changyy/osTicket that referenced this issue Apr 2, 2024
…m 2006/12/03 and has been maintained up to now. Currently, we are directly using version 1.5.6. Adjustments were made to the syntax while retaining the original getHeader() function.

This is to fix osTicket#6680 issue.
changyy added a commit to changyy/osTicket that referenced this issue Apr 2, 2024
Update the mimeDecode.php file, which was originally version 1.48 from 2006/12/03 and has been maintained up to now. Currently, we are directly using version 1.5.6. Adjustments were made to the syntax while retaining the original getHeader() function.

This is to fix osTicket#6680 issue.
@changyy
Copy link
Author

changyy commented Apr 10, 2024

Fix for getRawmail() in class.mail.php (#6683)

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

1 participant