|
-
Aug 20th, 2008, 01:41 PM
#1
Thread Starter
Junior Member
(Outlook) Creating custom "message rules" for Outlook Express
Hi: I'm a fair-to-middling VB6 programmer (the more I learn, the more I realize how much I don't know). I haven't done any VBA before, but I'm comfortable with VB.
I'd like to create custom message rules for Outlook & Outlook Express. For Example, I'd like to forward all messages in Chinese to a separate folder.
Here are some newbie-type questions:
1). How can you tie into the message before it's added to the Outlook inbox (to filter it)?
2). What type of code would be necessary to examine the CharacterSet of the message? Would you just parse the message, or is there a more direct way?
Thanks!!
Last edited by montanasoft.com; Aug 20th, 2008 at 06:26 PM.
-
Aug 22nd, 2008, 04:36 AM
#2
Re: (Outlook) Creating custom "message rules" for Outlook Express
in the email header you should be able to use the content-type header to return the character set
you can use the winsock control to connect directly to the mail server, but this will not affect where outlook /outlook express put the mail when they retrieve it you can create rules within those mail clients that can check for many things, the closest in outlook express is where the message body contains specific words, within outlook you could make new rules programatically, but not within outlook express
i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next
dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part
come back and mark your original post as resolved if your problem is fixed
pete
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|