Author |
|
Guests Guest Group
Joined: 10 November 2003
Online Status: Online Posts: 262
|
Posted: 23 June 2005 at 10:21pm | IP Logged
|
|
|
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 |
|
|
Guests Guest Group
Joined: 10 November 2003
Online Status: Online Posts: 262
|
Posted: 23 June 2005 at 10:29pm | IP Logged
|
|
|
Update: ExpungeAndClose is not helping
|
Back to Top |
|
|
Alex AfterLogic Support
Joined: 19 November 2003
Online Status: Offline Posts: 2206
|
Posted: 24 June 2005 at 7:06am | IP Logged
|
|
|
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 |
|
|