PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook VBA Programming Create rule by script

Reply

Create rule by script

 
Thread Tools Rate Thread
Old 12-03-2006, 06:07 PM   #1
=?Utf-8?B?TG91aXM=?=
Guest
 
Posts: n/a
Default Create rule by script


Hello,

I'm rookie and i want to create a rule under outlook to move emails with a
definite object to a specific folder under outlook.
As i have a large park of outlook client, i wish to use into the login
script of the user a script to add automatically this rule.

Is it possible ?

thanks,
Louis
  Reply With Quote
Old 14-03-2006, 07:18 PM   #2
=?Utf-8?B?RXJpYyBMZWdhdWx0IFtNVlAgLSBPdXRsb29rXQ==
Guest
 
Posts: n/a
Default RE: Create rule by script

There is a Rules.dll that Microsoft provides, but it requires CDO and has
limited usefulness. Otherwise, you cannot create client side rules with
logon scripts or any kind of script for that matter

If you are using Exchange, this kind of processing is best done by an
Exchange Event Sink that runs on the server and doesn't require any client
deployment. Another option is to code the rules using an Outlook COM Add-In
that you can deploy as an .msi package to the clients.

--
Eric Legault (Outlook MVP, MCDBA, old school WOSA MCSD, B.A.)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"Louis" wrote:

> Hello,
>
> I'm rookie and i want to create a rule under outlook to move emails with a
> definite object to a specific folder under outlook.
> As i have a large park of outlook client, i wish to use into the login
> script of the user a script to add automatically this rule.
>
> Is it possible ?
>
> thanks,
> Louis

  Reply With Quote
Old 15-03-2006, 11:10 AM   #3
=?Utf-8?B?TG91aXM=?=
Guest
 
Posts: n/a
Default RE: Create rule by script

Thanks,

The idea of the Outlook COM Add-In seems to be very attractive,
Have you a sample of code for outlook 2003 ?

Louis


"Eric Legault [MVP - Outlook]" wrote:

> There is a Rules.dll that Microsoft provides, but it requires CDO and has
> limited usefulness. Otherwise, you cannot create client side rules with
> logon scripts or any kind of script for that matter
>
> If you are using Exchange, this kind of processing is best done by an
> Exchange Event Sink that runs on the server and doesn't require any client
> deployment. Another option is to code the rules using an Outlook COM Add-In
> that you can deploy as an .msi package to the clients.
>
> --
> Eric Legault (Outlook MVP, MCDBA, old school WOSA MCSD, B.A.)
> Try Picture Attachments Wizard for Outlook:
> http://www.collaborativeinnovations.ca
> Blog: http://blogs.officezealot.com/legault/
>
>
> "Louis" wrote:
>
> > Hello,
> >
> > I'm rookie and i want to create a rule under outlook to move emails with a
> > definite object to a specific folder under outlook.
> > As i have a large park of outlook client, i wish to use into the login
> > script of the user a script to add automatically this rule.
> >
> > Is it possible ?
> >
> > thanks,
> > Louis

  Reply With Quote
Old 15-03-2006, 04:49 PM   #4
=?Utf-8?B?RXJpYyBMZWdhdWx0IFtNVlAgLSBPdXRsb29rXQ==
Guest
 
Posts: n/a
Default RE: Create rule by script

There's a VB6 COM Add-In template here that can be useful to kickstart your
development:

Outlook COM Add-in Template:
http://www.microeye.com/resources/template.htm

There's also a full sample of a COM Add-In here that's a great learning
resource:

Items Command Bar:
http://www.microeye.com/resources/itemsCB.htm

For more info, see:

Developing COM Add-ins for Microsoft Outlook:
http://www.outlookcode.com/d/comaddins.htm

--
Eric Legault (Outlook MVP, MCDBA, old school WOSA MCSD, B.A.)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"Louis" wrote:

> Thanks,
>
> The idea of the Outlook COM Add-In seems to be very attractive,
> Have you a sample of code for outlook 2003 ?
>
> Louis
>
>
> "Eric Legault [MVP - Outlook]" wrote:
>
> > There is a Rules.dll that Microsoft provides, but it requires CDO and has
> > limited usefulness. Otherwise, you cannot create client side rules with
> > logon scripts or any kind of script for that matter
> >
> > If you are using Exchange, this kind of processing is best done by an
> > Exchange Event Sink that runs on the server and doesn't require any client
> > deployment. Another option is to code the rules using an Outlook COM Add-In
> > that you can deploy as an .msi package to the clients.
> >
> > --
> > Eric Legault (Outlook MVP, MCDBA, old school WOSA MCSD, B.A.)
> > Try Picture Attachments Wizard for Outlook:
> > http://www.collaborativeinnovations.ca
> > Blog: http://blogs.officezealot.com/legault/
> >
> >
> > "Louis" wrote:
> >
> > > Hello,
> > >
> > > I'm rookie and i want to create a rule under outlook to move emails with a
> > > definite object to a specific folder under outlook.
> > > As i have a large park of outlook client, i wish to use into the login
> > > script of the user a script to add automatically this rule.
> > >
> > > Is it possible ?
> > >
> > > thanks,
> > > Louis

  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

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