Search The ForumSearch   RegisterRegister  LoginLogin


 AfterLogic Forum : MailBee.NET IMAP
Subject Topic: Imap.MoveMessages problem Post ReplyPost New Topic
Message << Prev Topic | Next Topic >>

Joined: 09 October 2018
Location: Poland
Online Status: Offline
Posts: 41
Posted: 05 March 2020 at 3:00am | IP Logged Quote mackolo22


My version of MailBee.NET is

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 View mackolo22's Profile Search for other posts by mackolo22
AfterLogic Support
AfterLogic Support

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 05 March 2020 at 4:38am | IP Logged Quote Alex


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.

Back to Top View Alex's Profile Search for other posts by Alex

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide