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

Outlookscript with event



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old February 22nd 06, 03:04 PM posted to microsoft.public.outlook.program_forms
[email protected]
external usenet poster
 
Posts: 3
Default Outlookscript with event

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  
Old February 22nd 06, 03:49 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Outlookscript with event

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  
Old February 23rd 06, 09:56 AM posted to microsoft.public.outlook.program_forms
[email protected]
external usenet poster
 
Posts: 3
Default Outlookscript with event

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  
Old February 23rd 06, 10:04 AM posted to microsoft.public.outlook.program_forms
[email protected]
external usenet poster
 
Posts: 3
Default Outlookscript with event

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  
Old February 23rd 06, 01:20 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Outlookscript with event

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


All times are GMT +1. The time now is 10:24 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.