Results 1 to 2 of 2

Thread: (Outlook) Creating custom "message rules" for Outlook Express

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Aug 2008
    Posts
    19

    (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.

  2. #2
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    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
  •  



Click Here to Expand Forum to Full Width