Author |
|
mackolo22 Groupie
Joined: 09 October 2018 Location: Poland
Online Status: Offline Posts: 41
|
Posted: 05 March 2020 at 3:00am | IP Logged
|
|
|
Hi,
My version of MailBee.NET is 11.2.0.590.
I use this method to move selected message from one folder to another. I set indexIsUid parameter to true, and messageIndexSet to UID of my message. Also Imap.ThrowExceptions is set to true.
I would expect that if message with given UID does not exist on server in selected folder, the method should return false or throw an exception. But it always returns true. I tested this scenario for 3 mail servers and result is the same. Here's a log for Gmail:
[Info] 2020-03-05 10:41:29 [10:39:58.62] [RECV] MBN00000030 OK [READ-WRITE] INBOX selected. (Success)\r\n [Total 55 bytes received.]
[Info] 2020-03-05 10:41:29 [10:40:18.29] [INFO] Will move messages to folder "[Gmail]/Bin".
[Info] 2020-03-05 10:41:29 [10:40:18.29] [SEND] MBN00000031 UID MOVE 9871 "[Gmail]/Bin"\r\n
[Info] 2020-03-05 10:41:29 [10:40:18.42] [RECV] MBN00000031 OK Success\r\n [Total 24 bytes received.]
[Info] 2020-03-05 10:41:29 [10:40:18.42] [INFO] Messages moved.
Could it be a bug in your library or mail servers always respond that message was moved successfully?
Best regards.
|
Back to Top |
|
|
Alex AfterLogic Support
Joined: 19 November 2003
Online Status: Offline Posts: 2206
|
Posted: 05 March 2020 at 4:38am | IP Logged
|
|
|
Hi,
No bug in MailBee there. The server reports OK, this means the operation succeeded, from the server's point of view. Other servers usually respond with an error in this case but for some reason Gmail responds with OK.
MailBee doesn't even know if UID 9871 exists or not. Only the server can tell.
Regards,
Alex
|
Back to Top |
|
|