A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook - Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

is it possible to create a dynamic rule in outlook?



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old May 27th 08, 06:11 PM posted to microsoft.public.outlook.program_forms
Colin
external usenet poster
 
Posts: 38
Default is it possible to create a dynamic rule in outlook?

Thanks Sue,

Are there any particular code examples you can cite? I am not a programmer,
save some bash shell scripting in Linux. As long as I have the basic parts
of code in some order, I can usually pull things apart and work with them.

Regards,
Colin

"Sue Mosher [MVP-Outlook]" wrote:

Yes, that's certainly possible. It would involve a) parsing the subject property to locate the number, b) checking for the existence of the folder, c) creating the folder using the MAPIFolder.Folders.Add method, then moving the item with the Move method.

There are several examples of such a process among the code samples at http://www.outlookcode.com.

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"Colin" wrote in message ...
Similar to this post, is there a way of creating a rule that creates folders
based on the subject line?

EG. An email arrives with a number attached: TT30944, the rule creates the
30944 folder and moves all mail with that number in the subject to that
folder.

Anyone here know if this is possibe?



  #2  
Old May 27th 08, 06:16 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default is it possible to create a dynamic rule in outlook?

All the relevant methods are documented in Help, usually with code samples.

a) Parsing -- Basic functions like Instr(), Mid(), etc.

b) Checking for a folder -- MAPIFolder.Folders.Item("name of folder") returns Nothing if the folder doesn't exist

c) MAPIFolder.Folders.Add + MailItem.Move

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"Colin" wrote in message ...
Thanks Sue,

Are there any particular code examples you can cite? I am not a programmer,
save some bash shell scripting in Linux. As long as I have the basic parts
of code in some order, I can usually pull things apart and work with them.

Regards,
Colin

"Sue Mosher [MVP-Outlook]" wrote:

Yes, that's certainly possible. It would involve a) parsing the subject property to locate the number, b) checking for the existence of the folder, c) creating the folder using the MAPIFolder.Folders.Add method, then moving the item with the Move method.

There are several examples of such a process among the code samples at http://www.outlookcode.com.

"Colin" wrote in message ...
Similar to this post, is there a way of creating a rule that creates folders
based on the subject line?

EG. An email arrives with a number attached: TT30944, the rule creates the
30944 folder and moves all mail with that number in the subject to that
folder.

Anyone here know if this is possibe?



  #3  
Old October 29th 08, 08:47 AM posted to microsoft.public.outlook.program_forms
Tamas Simon
external usenet poster
 
Posts: 1
Default is it possible to create a dynamic rule in outlook?

Hello Sue!
I have the same problem as Colin.
I would like to solve the issue with a macro, which:

1. checks the subject of the actual email (done)
2. creates a folder for that number (done)
3. creates a rule to send items to that folder

I searched through the web, and could not find any solution for the 3.
point. Is it possible to create a rule from a macro?

I have Outlook 2003.
Thanks in advance for your answer!
regards,
Tamas

*** Sent via Developersdex http://www.developersdex.com ***
 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to create a rule in outlook 2003 ? create rulein outlook Outlook - General Queries 3 January 9th 08 01:35 PM
Rule to auto reply using a dynamic text file as attachment or message body DF Outlook - General Queries 0 June 29th 07 06:38 PM
how can i create a rule in outlook 2003 calendar? Jeff Outlook - Calandaring 2 January 15th 07 01:19 PM
Help!! II need to create a rule [email protected] Outlook - General Queries 0 August 13th 06 05:51 PM
How can I create a rule in Outlook 03 to Bcc to a Distribution lis BC Outlook - Installation 1 January 31st 06 05:02 PM


All times are GMT +1. The time now is 04:53 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.