Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
ditte  
#1 Posted : Tuesday, April 12, 2011 3:15:38 AM(UTC)
ditte

Rank: Member

Groups: Registered
Joined: 2/5/2011(UTC)
Posts: 15
Location: Germany, Berlin

What I like to do:

1. chose a folder (with selectfolder) - it works
2. search for email [postnr and ok or error] with searchmail - it works
3. if email found [equal = postnr and also is ok] move the email to a archive folder [like "faxsendok"]

4. now I must search the folder "faxsendok" to get the Imap4Folder

5. get the mail.content
6. mailclient.Append to the new folder
7. mailclient.Delete
8. mailclient.Expunge

Is there a fast way for step 4. to get the Imap4Folder of "faxsendok" like thread "Imap folders,fast search" ?
ivan  
#2 Posted : Tuesday, April 12, 2011 4:33:59 AM(UTC)
ivan

Rank: Administration

Groups: Administrators
Joined: 11/11/2010(UTC)
Posts: 1,148

Thanks: 9 times
Was thanked: 54 time(s) in 54 post(s)

1. Yes, you can create the IMAP4 folder object like like this:

Code:

Dim oFolder As New Imap4Folder
oFolder.ServerPath = "Deleted Items"
oFolder.FullPath = "Deleted Items"


then you can use it in Append method directly.

2. If your archive folder is in the same IMAP4 account. You should use
MailClient.Copy method instead of "get content" and "append". It is much faster.
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.041 seconds.

EXPLORE TUTORIALS

© All Rights Reserved, AIFEI Software Limited & AdminSystem Software Limited.