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" ?
Rank: Administration
Groups: Administrators
Joined: 11/11/2010(UTC) Posts: 1,154
Thanks: 9 times Was thanked: 55 time(s) in 55 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.
Forum Jump
EmailArchitect Support
Email Component Development
- EASendMail SMTP Component - .NET Version
- EASendMail SMTP Component - Windows Store Apps
- EASendMail SMTP ActiveX Object
- EAGetMail POP3 & IMAP4 Component - .NET Version
- EAGetMail POP3 & IMAP4 ActiveX Object
Exchange Server and IIS SMTP Plugin
- DomanKeys/DKIM for Exchange Server and IIS SMTP
- Disclaimer and S/MIME for Exchange Server and IIS
EmailArchitect Email Server
- EmailArchitect Email Server (General)
- EmailArchitect Email Server Development
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.