Search The ForumSearch   RegisterRegister  LoginLogin

MailBee IMAP4

 AfterLogic Forum : MailBee IMAP4
Subject Topic: Moving Messages Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Jack Furlong
Guest Group
Guest Group


Joined: 10 November 2003
Online Status: Online
Posts: 262
Posted: 24 November 2004 at 12:07pm | IP Logged Quote Jack Furlong

I'm trying to Move messages from the Inbox to a subfolder of the Inbox. Since I didn't see a Move() method, I figured to Copy/Delete.

Deleting works, but copying fails.

I checked the Mailbox object's delimiter property, and it IS set to "/" on the server, so this SHOULD work, unless my brain is snafu. :P

Code Snippet follows:
msg_id = oEnvelopes(I).UID
( I = for next loop of all messages... )

dest_fldr = "INBOX/orders - creative products"
If oMailer.CopyMessages(dest_fldr, msg_id, msg_id, True) Then
Response.Write "Message copied successfully"
Else
Response.Write "Message copy of "
Response.Write msg_id
Response.Write " failed!"
Response.End
End If

Logfile Contents follow:
11:56:06 [Sending command: MBC000002 LIST "" "*"\r\n]
11:56:06 [Mailboxes ready]
11:56:06 [Disconnecting from the server]
11:56:06 [Connection closed]
11:57:49 [Sending command: MBC000002 SELECT "InBox"\r\n]
11:57:49 [Mailbox selected]
11:57:50 [Sending command: MBC000003 FETCH 1:26 (FLAGS INTERNALDATE RFC822.SIZE ENVELOPE BODY.PEEK[HEADER] UID)\r\n]
11:57:50 [Envelopes ready]
11:57:50 [Sending command: MBC000004 UID FETCH 163728 (RFC822.SIZE BODY[])\r\n]
11:57:50 [Message ready]
11:57:50 [Sending command: MBC000005 UID COPY 163728:163728 "INBOX/orders - creative products"\r\n]
11:57:50 [Error: Failed to copy messages]
11:57:50 [Server responded: NO The requested item could not be found.]
11:57:50 [Disconnecting from the server]
11:57:50 [Connection closed]

Back to Top View Jack Furlong's Profile Search for other posts by Jack Furlong
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 24 November 2004 at 12:37pm | IP Logged Quote Alex

I tested CopyMessages("INBOX/orders - creative products", msg_id, msg_id, True) on our mail server and it's working fine:

20:28:13 [Envelopes ready]
20:28:14 [Sending command: MBC000010 UID COPY 2833:2833 "INBOX/orders - creative products"\r\n]
20:28:14 [Messages copied]


So it's probably certain mail server issue. Could you provide us with a test account which has "INBOX/orders - creative products" folder, so we would be able to check whether it's a mail server issue? You can send the account information to mailbee@iforum.com.

Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 
Jack Furlong
Guest Group
Guest Group


Joined: 10 November 2003
Online Status: Online
Posts: 262
Posted: 24 November 2004 at 1:17pm | IP Logged Quote Jack Furlong

I got the problem resolved, after some experimentation.

I renamed the folder using underbars in place of spaces, and moved it to the root of the mail account.

So it's now
"Orders_creative_products"
instead of
"INBOX/orders - creative products"

That seems to resolve the COPYing problem.
Back to Top View Jack Furlong's Profile Search for other posts by Jack Furlong
 

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