![]() |
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. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
Hi there
Is it possible to make a rule that checks for new emails with a specified subject i a mailbox and if it match the rule then launch a script that create a event i the local eventlog thanks |
Ads |
#2
|
|||
|
|||
![]()
A "run a script" rule action actually uses not an external script but a VBA procedure with a MailItem or MeetingItem as its parameter. That item is processed by the code:
Sub RunAScriptRuleRoutine(MyMail As MailItem) Dim strID As String Dim olNS As Outlook.NameSpace Dim olMail As Outlook.MailItem strID = MyMail.EntryID Set olNS = Application.GetNamespace("MAPI") Set olMail = olNS.GetItemFromID(strID) ' do stuff with olMail, e.g. MsgBox olMail.SUbject Set olMail = Nothing Set olNS = Nothing End Sub See http://www.outlookcode.com/d/code/zaphtml.htm#ol2002 for another example. -- Sue Mosher, Outlook MVP Author of Configuring Microsoft Outlook 2003 http://www.turtleflock.com/olconfig/index.htm and Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx wrote in message oups.com... Hi there Is it possible to make a rule that checks for new emails with a specified subject i a mailbox and if it match the rule then launch a script that create a event i the local eventlog thanks |
#3
|
|||
|
|||
![]()
HI sue
It works great But is there anyway tha i can change it for a client side rule to a server side rule Im running exchange 2003 THX Robert |
#4
|
|||
|
|||
![]()
some days i can't write either
OK the script works fine But is there anyway that i can change it from being a client side rule to a server side rule I'm running exchange 2003 Thank SUE your the ONE |
#5
|
|||
|
|||
![]()
No, if you want custom code to run on the server, you're talking about an Exchange event sink, not an Outlook rule.
-- Sue Mosher, Outlook MVP Author of Configuring Microsoft Outlook 2003 http://www.turtleflock.com/olconfig/index.htm and Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx wrote in message oups.com... HI sue It works great But is there anyway tha i can change it for a client side rule to a server side rule Im running exchange 2003 THX Robert |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Trap reply event | SuperSlueth | Outlook - Using Forms | 1 | February 13th 06 09:09 PM |
Event is not showing on calendar | gtdavis | Outlook - Calandaring | 0 | January 31st 06 04:24 PM |
Event Banners | Fishers | Outlook - Calandaring | 4 | January 17th 06 10:23 PM |
form and event click | ivanoe | Outlook - Using Forms | 1 | January 17th 06 08:40 PM |
Create Calendar event | tk | Outlook - Calandaring | 1 | January 11th 06 04:51 PM |