-
Notifications
You must be signed in to change notification settings - Fork 510
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
IMAP module not moving mail to folder. #4313
Comments
Can you send a screenshot of your folders structure (their nesting). |
You'll need to debug this function: https://github.com/freescout-help-desk/freescout/blob/dist/overrides/webklex/php-imap/src/Message.php#L956 https://github.com/freescout-help-desk/freescout/wiki/Debugging Try to replace the
|
(In this log, I had set it to move the mail to |
You'll need to debug further the Or check your mail server logs - maybe you'll find some hint there. |
The server logs shows this:
|
It looks like you are using the Axigen mail server. Try to contact their team and ask why "MOVE" command does not work on their server while working on all others. |
So I did some tracing and research, and it seems like axigen uses the "Copy" then "Delete" approach instead of move: https://stackoverflow.com/questions/122267/imap-how-to-move-a-message-from-one-folder-to-another
Can you update your code to support the RFC4315 approach to moving messages? |
Axigen uses UID COPY, UID STORE and UID EXPUNGE. FreeScout uses Webklex/PHP-IMAP library to communicate with mail servers via IMAP. So we've shared the suggestion with them: Webklex/php-imap#123 (comment) |
Try with the attached |
Thanks, this works well. :) Can I also suggest, that the "Move to IMAP folder" dialogue also has the "get imap folders" button, enabling you to select the folder from a dropdown list - this would avoid any typo errors. |
PHP version: 8.2.20
FreeScout version: 1.8.154
Database: PostgreSQL
Are you using CloudFlare: Yes
Are you using non-official modules: Yes
Hi, I'm using the IMAP Module to move mail to a folder after it has been received/imported into freescout.
The mails stay in the inbox, are marked unread, but are not moved to a folder.
I have tried "Trash", "Archive", "INBOX/Processed" - all folders exist, and are confirmed by the
Get Folders
on the IMAP folders input.The log shows this:
The text was updated successfully, but these errors were encountered: