[GH-ISSUE #557] Forwarding a message is broken #404

Closed
opened 2026-02-25 21:34:56 +03:00 by kerem · 1 comment
Owner

Originally created by @jasonmunro on GitHub (Mar 1, 2022).
Original GitHub issue: https://github.com/cypht-org/cypht/issues/557

When trying to forward a message the code is calling attach_file() which is no longer defined. Looks like this bit was missed when we changed how attachments are handled. Easy to trigger, just try forwarding a message.

Stack trace:
#0 /home/jason/cypht/lib/modules_exec.php(175): Hm_Handler_imap_forward_attachments->process()
#1 /home/jason/cypht/lib/modules_exec.php(153): Hm_Module_Exec->run_handler_module()
#2 /home/jason/cypht/lib/dispatch.php(220): Hm_Module_Exec->run_handler_modules()
#3 /home/jason/cypht/lib/dispatch.php(190): Hm_Dispatch->process_request()
#4 /home/jason/cypht/index.php(50): Hm_Dispatch->__construct()
#5 {main}
  thrown in /home/jason/cypht/modules/imap/handler_modules.php on line 58```
Originally created by @jasonmunro on GitHub (Mar 1, 2022). Original GitHub issue: https://github.com/cypht-org/cypht/issues/557 When trying to forward a message the code is calling attach_file() which is no longer defined. Looks like this bit was missed when we changed how attachments are handled. Easy to trigger, just try forwarding a message. ```[01-Mar-2022 19:22:01 UTC] PHP Fatal error: Uncaught Error: Call to undefined function attach_file() in /home/jason/cypht/modules/imap/handler_modules.php:58 Stack trace: #0 /home/jason/cypht/lib/modules_exec.php(175): Hm_Handler_imap_forward_attachments->process() #1 /home/jason/cypht/lib/modules_exec.php(153): Hm_Module_Exec->run_handler_module() #2 /home/jason/cypht/lib/dispatch.php(220): Hm_Module_Exec->run_handler_modules() #3 /home/jason/cypht/lib/dispatch.php(190): Hm_Dispatch->process_request() #4 /home/jason/cypht/index.php(50): Hm_Dispatch->__construct() #5 {main} thrown in /home/jason/cypht/modules/imap/handler_modules.php on line 58```
kerem 2026-02-25 21:34:56 +03:00
  • closed this issue
  • added the
    bug
    smtp
    labels
Author
Owner

@marclaporte commented on GitHub (Mar 2, 2022):

Thanks, we'll take a look.

<!-- gh-comment-id:1057067906 --> @marclaporte commented on GitHub (Mar 2, 2022): Thanks, we'll take a look.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/cypht#404
No description provided.