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

🐛 [Bug] Error when forwarding mail with attachment #1411

Open
indridieinarsson opened this issue Dec 20, 2024 · 0 comments
Open

🐛 [Bug] Error when forwarding mail with attachment #1411

indridieinarsson opened this issue Dec 20, 2024 · 0 comments
Assignees
Labels
bug something is wrong in Cypht

Comments

@indridieinarsson
Copy link
Contributor

🐛 Bug

There is an issue when forwarding mails with attachments, in particular mails from a gmail account
This particular issue arises like this:
I have a gmail account. In it, there is a mail which was forwarded to me from somewhere else. It has an attachment (.pptx file).
Now, if I try to forward this mail further, using cypht, I get the following error in the cypht logs after pressing "Send".

Cypht does not send the mail, and reports an error in the GUI.

cypht-1 | NOTICE: PHP message: PHP Fatal error: Uncaught TypeError: explode(): Argument #2 ($string) must be of type string, array given in /usr/local/share/cypht/modules/smtp/modules.php:1860
cypht-1 | Stack trace:
cypht-1 | #0 /usr/local/share/cypht/modules/smtp/modules.php(1860): explode()
cypht-1 | #1 /usr/local/share/cypht/modules/smtp/modules.php(1872): get_uploaded_files_from_array()
cypht-1 | #2 /usr/local/share/cypht/modules/smtp/modules.php(1930): prepare_draft_mime()
cypht-1 | #3 /usr/local/share/cypht/modules/smtp/modules.php(348): save_imap_draft()
cypht-1 | #4 /usr/local/share/cypht/lib/modules_exec.php(178): Hm_Handler_smtp_save_draft->process()
cypht-1 | #5 /usr/local/share/cypht/lib/modules_exec.php(155): Hm_Module_Exec->run_handler_module()
cypht-1 | #6 /usr/local/share/cypht/lib/dispatch.php(220): Hm_Module_Exec->run_handler_modules()
cypht-1 | #7 /usr/local/share/cypht/lib/dispatch.php(188): Hm_Dispatch->process_request()
cypht-1 | #8 /usr/local/share/cypht/site/index.php(53): Hm_Dispatch->__construct()
cypht-1 | #9 {main}
cypht-1 | thrown in /usr/local/share/cypht/modules/smtp/modules.php on line 1860

Version & Environment

git commit 15ff855
OS: linux - docker image (on linux host)

@indridieinarsson indridieinarsson added the bug something is wrong in Cypht label Dec 20, 2024
@amaninyumu1 amaninyumu1 self-assigned this Dec 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something is wrong in Cypht
Projects
None yet
Development

No branches or pull requests

2 participants