Search The ForumSearch   RegisterRegister  LoginLogin

General Issues

 AfterLogic Forum : General Issues
Subject Topic: Move email Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Guests
Guest Group
Guest Group


Joined: 10 November 2003
Online Status: Online
Posts: 262
Posted: 23 June 2005 at 10:21pm | IP Logged Quote Guests

Hi there,

Could you provide code for best way to move mail from one folder to another? I found copy but no move functionaility

Cheers,
Sanjay
Back to Top View Guests's Profile Search for other posts by Guests
 
Guests
Guest Group
Guest Group


Joined: 10 November 2003
Online Status: Online
Posts: 262
Posted: 23 June 2005 at 10:29pm | IP Logged Quote Guests

Update: ExpungeAndClose is not helping
Back to Top View Guests's Profile Search for other posts by Guests
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 24 June 2005 at 7:06am | IP Logged Quote Alex

The IMAP4 protocol does not provide any command to move messages, so you have to use the following sequence of actions:

If IMAP4.CopyMessages(DestinationMailbox, First, Last, AsUID) Then
IMAP4.DeleteMessages(First, Last, AsUID)
IMAP4.ExpungeAndClose
End If

Regards,
Alex
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