Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > PowerShell

Change MessageClass on Incoming e-mails in a Shared Mailbox

Update your Vista Drivers Update Your Drivers Now!!
Closed Thread
 
Thread Tools Display Modes
Old 01-30-2008   #1 (permalink)
Terje Krsitiansen
Guest


 

Change MessageClass on Incoming e-mails in a Shared Mailbox

We have a shared mailbox that recives normal IPM.Note mail - We would like to
change the We are running Exchange 2007 SP1.
Understand that PowerShell is the way to go for this - Where can I find
examples on how to build and install this kind of scripts.



My System SpecsSystem Spec
Old 01-31-2008   #2 (permalink)
Marco Shaw [MVP]
Guest


 

Re: Change MessageClass on Incoming e-mails in a Shared Mailbox

Terje Krsitiansen wrote:
Quote:

> We have a shared mailbox that recives normal IPM.Note mail - We would like to
> change the We are running Exchange 2007 SP1.
> Understand that PowerShell is the way to go for this - Where can I find
> examples on how to build and install this kind of scripts.
>
>
OK, read up on this a bit... Seems you'd want this as a response to an
*event*.

In other words, everytime a new messages comes in, you'd need this
script to run against each message. Now, PowerShell v1 doesn't come
with any eventing functionality, but there is an add-on, but whether it
will work here or not is another story.

You do need something like eventing right? Having a script run every 1
minute or so wouldn't do it right?

Marco

--
Microsoft MVP - Windows PowerShell
http://www.microsoft.com/mvp

PowerGadgets MVP
http://www.powergadgets.com/mvp

Blog:
http://marcoshaw.blogspot.com
My System SpecsSystem Spec
Old 01-31-2008   #3 (permalink)
Terje Kristiansen
Guest


 

Re: Change MessageClass on Incoming e-mails in a Shared Mailbox

The best thing a Script or an AddIn should do is "hook" into the event
"NewItem in folder", and then change the MessageClass, before the user can
open it.
If we have something to run every minute or so - a user can open the the
mail before the script have be run - and then with the wrong "form."
And Remember - the mailbox is an shared mailbox - and the script or Addin
should not run on/in the users mailbox only the shared one.


Kind regard
terje



"Marco Shaw [MVP]" wrote:
Quote:

> Terje Krsitiansen wrote:
Quote:

> > We have a shared mailbox that recives normal IPM.Note mail - We would like to
> > change the We are running Exchange 2007 SP1.
> > Understand that PowerShell is the way to go for this - Where can I find
> > examples on how to build and install this kind of scripts.
> >
> >
>
> OK, read up on this a bit... Seems you'd want this as a response to an
> *event*.
>
> In other words, everytime a new messages comes in, you'd need this
> script to run against each message. Now, PowerShell v1 doesn't come
> with any eventing functionality, but there is an add-on, but whether it
> will work here or not is another story.
>
> You do need something like eventing right? Having a script run every 1
> minute or so wouldn't do it right?
>
> Marco
>
> --
> Microsoft MVP - Windows PowerShell
> http://www.microsoft.com/mvp
>
> PowerGadgets MVP
> http://www.powergadgets.com/mvp
>
> Blog:
> http://marcoshaw.blogspot.com
>
My System SpecsSystem Spec
Old 01-31-2008   #4 (permalink)
Terje Kristiansen
Guest


 

Re: Change MessageClass on Incoming e-mails in a Shared Mailbox

I forgot

I dont think that events fires in shared mailboxes only in the users own
mailbox.

kind regards
terje kristiansen

"Marco Shaw [MVP]" wrote:
Quote:

> Terje Krsitiansen wrote:
Quote:

> > We have a shared mailbox that recives normal IPM.Note mail - We would like to
> > change the We are running Exchange 2007 SP1.
> > Understand that PowerShell is the way to go for this - Where can I find
> > examples on how to build and install this kind of scripts.
> >
> >
>
> OK, read up on this a bit... Seems you'd want this as a response to an
> *event*.
>
> In other words, everytime a new messages comes in, you'd need this
> script to run against each message. Now, PowerShell v1 doesn't come
> with any eventing functionality, but there is an add-on, but whether it
> will work here or not is another story.
>
> You do need something like eventing right? Having a script run every 1
> minute or so wouldn't do it right?
>
> Marco
>
> --
> Microsoft MVP - Windows PowerShell
> http://www.microsoft.com/mvp
>
> PowerGadgets MVP
> http://www.powergadgets.com/mvp
>
> Blog:
> http://marcoshaw.blogspot.com
>
My System SpecsSystem Spec
Old 01-31-2008   #5 (permalink)
Shay Levi
Guest


 

Re: Change MessageClass on Incoming e-mails in a Shared Mailbox

Hi

Can't test it right now but it seems to me that you need to configure transport
rules on your hub transport role server.
It's GUI is much like the rules wizard on Outlook and there are also some
corresponding cmdlets for it.


-----
Shay Levi
$cript Fanatic
http://scriptolog.blogspot.com
Quote:

> Terje Krsitiansen wrote:
>
Quote:

>> We have a shared mailbox that recives normal IPM.Note mail - We would
>> like to change the We are running Exchange 2007 SP1. Understand that
>> PowerShell is the way to go for this - Where can I find examples on
>> how to build and install this kind of scripts.
>>
> OK, read up on this a bit... Seems you'd want this as a response to
> an *event*.
>
> In other words, everytime a new messages comes in, you'd need this
> script to run against each message. Now, PowerShell v1 doesn't come
> with any eventing functionality, but there is an add-on, but whether
> it will work here or not is another story.
>
> You do need something like eventing right? Having a script run every
> 1 minute or so wouldn't do it right?
>
> Marco
>
> PowerGadgets MVP
> http://www.powergadgets.com/mvp
> Blog:
> http://marcoshaw.blogspot.com

My System SpecsSystem Spec
Old 02-01-2008   #6 (permalink)
Marco Shaw [MVP]
Guest


 

Re: Change MessageClass on Incoming e-mails in a Shared Mailbox

Terje Kristiansen wrote:
Quote:

> The best thing a Script or an AddIn should do is "hook" into the event
> "NewItem in folder", and then change the MessageClass, before the user can
> open it.
> If we have something to run every minute or so - a user can open the the
> mail before the script have be run - and then with the wrong "form."
> And Remember - the mailbox is an shared mailbox - and the script or Addin
> should not run on/in the users mailbox only the shared one.
I'm not familiar enough with Exchange... The cmdlet
new-managedcontentsettings has a messageclass parameter:

"-MessageClass <String>
The MessageClass parameter specifies the message type to which any
expi ration and journaling configuration settings within these content
settings apply.
The parameter value can be a well-known message type such as
Calendar I tems or a specific message class such as IPM.NOTE.SMIME.
Well-known message types are as follows:
* All Mailbox Content
* Calendar Items
* Contacts
* Documents
* Faxes
* Journal items
* Meeting Requests, Responses, and Cancellations
* Notes
* Posts
* RSS Items
* Tasks
* Voicemail
Specific settings supersede general settings. For example, Voice
Mail supersedes All Mailbox Content."

I wasn't able to figure out exactly how to use it. Primarily, how to
have it reference a public folder.

I'll keep searching in my spare time...

Marco
My System SpecsSystem Spec
Old 02-01-2008   #7 (permalink)
Marco Shaw [MVP]
Guest


 

Re: Change MessageClass on Incoming e-mails in a Shared Mailbox

Quote:

> I'm not familiar enough with Exchange... The cmdlet
> new-managedcontentsettings has a messageclass parameter:
That cmdlet apparently won't work.

Check out the group microsoft.public.exchange.development. There's a
thread I started in the last day or so: "Exchange 2007 eventing" with
some good info that might help you.

Marco
My System SpecsSystem Spec
Closed Thread

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change sound that plays on incoming email Lindsey Live Mail 2 07-17-2008 09:35 PM
mails for 2 users mixed in the mailbox lolo Live Mail 5 07-17-2008 11:17 AM
Always received same double messages whenever retrieved incoming mails. peteryao Vista mail 1 05-20-2008 09:47 PM
Server providers -Incoming/Outgoing E/mails. culbokie Vista mail 1 04-07-2008 08:24 AM
Re: How could I change the incoming and outgoing servers? Richard Urban Vista mail 2 02-17-2007 05:20 PM


Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51