Open nhatlinhle opened 3 years ago
Some IMAP servers don't support MOVE
and UID MOVE
IMAP commands, which are used by the move() method of this library. I'm currently debugging the same issue to write a highly detailed issue about this. You can try to use the legacy protocol implementation by changing 'protocol' => 'imap',
to 'protocol' => 'legacy-imap',
in your configuration, or you can mimic the same behavior as the legacy protocol works by copy the message to trash, and delete the original. In this case, you should think about when to expunge the original (\Deleted flagged) message. (Performance and message id considerations)
Edit: LegacyProtocol relies on imap_* PHP methods, therefore you need imap PHP extension to be installed, probably with SSL support. Check your phpinfo() first.
Edit2: I rather don't recommend using LegacyProtocol, because latest (2.5.0) version:
Some IMAP servers don't support
MOVE
andUID MOVE
IMAP commands, which are used by the move() method of this library. I'm currently debugging the same issue to write a highly detailed issue about this. You can try to use the legacy protocol implementation by changing'protocol' => 'imap',
to'protocol' => 'legacy-imap',
in your configuration, or you can mimic the same behavior as the legacy protocol works by copy the message to trash, and delete the original. In this case, you should think about when to expunge the original (\Deleted flagged) message. (Performance and message id considerations)
Thanks for the reply, I temporarily using copy the message to trash, and delete the original. Hope you fix it soon. Have nice day!
We are also facing the problem with move
command on some mail servers: https://github.com/freescout-help-desk/freescout/issues/4313#issuecomment-2461184774
Can the suggested here https://stackoverflow.com/a/15816045 approach (UID COPY
, UID STORE
and UID EXPUNGE
) be used in Weklex PHP-IMAP as a fallback when MOVE
is not supported by the mail server?
I want to move message from folder INBOX to another folder, i am try follow code:
but always return false. I have created folder TRASH, and i have collection folder in image:
I am tried copy() is working, but move() is not work. Please help!