exchangefreaks.com Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Trapping a public folder posting

 
Post new topic   Reply to topic    exchangefreaks.com Forum Index -> MS Exchange Development
Author Message
Bill Le May



Joined: 16 Feb 2008
Posts: 4

PostPosted: Fri Feb 15, 2008 10:26 pm    Post subject: Trapping a public folder posting Reply with quote

A long while back I Googled a doc that I tried to use for having Exchange
send an email when a posting is saved to a public folder I want to monitor.

http://www.somorita.com/exchange2000/PublicFolderNotificationEventSink.doc

I posted here about it, but couldn't ever get the approach to work, I
suppose because it's for Exchange 2000 and we're on 2003. Anyway, I have an
increasing number of public folder solutions in place that can be monitored
with Outlook, but I want to set up more sophisticated monitoring on the
Exchange side. I want to have code running on Exchange to look at what's
posted and notify the appropriate recipients immediately.

I found something called an Event Sink Wizard that only works on VB6. Are
there any other approaches I can research?

Archived from group: microsoft>public>exchange>development
Back to top
View user's profile Send private message
Glen Scales [MVP]



Joined: 05 Aug 2007
Posts: 92

PostPosted: Tue Feb 19, 2008 1:20 pm    Post subject: Re: Trapping a public folder posting Reply with quote

Then Event Sink wizard is okay if you want to write VB6 code its really just
a wizard to come up with some templated code. I would recommend you look at
using .NET instead there detail in the Exchange SDK of the process for
building event sink using .net
http://msdn2.microsoft.com/en-us/library/aa563094(EXCHG.80).aspx also have a
read of http://www.infinitec.de/articles/exchange/managedeventsinks.aspx
and
http://blogs.msdn.com/mstehle/archive/2006/01/17/outbox-introduction-to-exchange-store-event-sinks-part-1.aspx

The code from that article you referenced will work okay no matter what
version 2000.2003 What problems where you having ?

Cheers
Glen

"Bill Le May" wrote in message
news:%23%23q4$oCcIHA.4888@TK2MSFTNGP05.phx.gbl...
>A long while back I Googled a doc that I tried to use for having Exchange
>send an email when a posting is saved to a public folder I want to monitor.
>
> http://www.somorita.com/exchange2000/PublicFolderNotificationEventSink.doc
>
> I posted here about it, but couldn't ever get the approach to work, I
> suppose because it's for Exchange 2000 and we're on 2003. Anyway, I have
> an increasing number of public folder solutions in place that can be
> monitored with Outlook, but I want to set up more sophisticated monitoring
> on the Exchange side. I want to have code running on Exchange to look at
> what's posted and notify the appropriate recipients immediately.
>
> I found something called an Event Sink Wizard that only works on VB6. Are
> there any other approaches I can research?
>
Back to top
View user's profile Send private message
Bill Le May



Joined: 16 Feb 2008
Posts: 4

PostPosted: Mon Feb 18, 2008 9:42 pm    Post subject: Re: Trapping a public folder posting Reply with quote

"Glen Scales [MVP]" wrote...
> Then Event Sink wizard is okay if you want to write VB6 code its really
> just a wizard to come up with some templated code. I would recommend you
> look at using .NET instead there detail in the Exchange SDK of the process
> for building event sink using .net
> http://msdn2.microsoft.com/en-us/library/aa563094(EXCHG.80).aspx also have
> a read of http://www.infinitec.de/articles/exchange/managedeventsinks.aspx
> and
> http://blogs.msdn.com/mstehle/archive/2006/01/17/outbox-introduction-to-exchange-store-event-sinks-part-1.aspx
>
> The code from that article you referenced will work okay no matter what
> version 2000.2003 What problems where you having ?

I went through all 13 numbered steps in the document okay, but I get a
connection an error executing the command line script. The document says:

=================
To register the event, type this command at the command prompt:

cscript RegEvent.vbs Add "OnSave" ExOleDB.ScriptEventSink.1 ~CA"file://./backofficestorage/yourdomain.com/public
~CA folders/YourFolder/NewItemAlert" -f c:\NewItemAlert.vbs WHERE ~CA
"DAV:ishidden" = FALSE

This will register this event sink for the folder called YourFolder. The
script is now ready to run.

===============

I know I have to change the domain and the public folder name, but the path
still sems wrong.
Back to top
View user's profile Send private message
Glen Scales [MVP]



Joined: 05 Aug 2007
Posts: 92

PostPosted: Tue Feb 19, 2008 8:21 pm    Post subject: Re: Trapping a public folder posting Reply with quote

That's just the Exoledb File path its right refer
http://msdn2.microsoft.com/en-us/library/ms876443(EXCHG.65).aspx you can
also use the http uri eg http://server/public/foldername . This is for the
default Mapi public folder store if you have have created other NonMapi
stores then the path would vary.

What is the exact error message you receive this will generally tell you
what the problem is.

Cheers
Glen

"Bill Le May" wrote in message %23ncIHA.5208@TK2MSFTNGP04.phx.gbl...
> "Glen Scales [MVP]" wrote...
>> Then Event Sink wizard is okay if you want to write VB6 code its really
>> just a wizard to come up with some templated code. I would recommend you
>> look at using .NET instead there detail in the Exchange SDK of the
>> process for building event sink using .net
>> http://msdn2.microsoft.com/en-us/library/aa563094(EXCHG.80).aspx also
>> have a read of
>> http://www.infinitec.de/articles/exchange/managedeventsinks.aspx and
>> http://blogs.msdn.com/mstehle/archive/2006/01/17/outbox-introduction-to-exchange-store-event-sinks-part-1.aspx
>>
>> The code from that article you referenced will work okay no matter what
>> version 2000.2003 What problems where you having ?
>
> I went through all 13 numbered steps in the document okay, but I get a
> connection an error executing the command line script. The document
> says:
>
> =================
> To register the event, type this command at the command prompt:
>
> cscript RegEvent.vbs Add "OnSave" ExOleDB.ScriptEventSink.1
> ~CA"file://./backofficestorage/yourdomain.com/public ~CA
> folders/YourFolder/NewItemAlert" -f c:\NewItemAlert.vbs WHERE ~CA
> "DAV:ishidden" = FALSE
>
> This will register this event sink for the folder called YourFolder. The
> script is now ready to run.
>
> ===============
>
> I know I have to change the domain and the public folder name, but the
> path still sems wrong.
>
>
>
Back to top
View user's profile Send private message
Bill Le May



Joined: 16 Feb 2008
Posts: 4

PostPosted: Tue Feb 19, 2008 8:47 pm    Post subject: Re: Trapping a public folder posting Reply with quote

"Glen Scales [MVP]" wrote...
> What is the exact error message you receive this will generally tell you
> what the problem is.

Error opening connection: -2146105340
Back to top
View user's profile Send private message
Glen Scales [MVP]



Joined: 05 Aug 2007
Posts: 92

PostPosted: Wed Feb 20, 2008 7:29 pm    Post subject: Re: Trapping a public folder posting Reply with quote

This sounds like your having a problem with the provider itself are you
running this directly on the server in question. Exoledb can only be used
locally on an Exchange server. The other thing you might want to try instead
is registering the sink with Exchange Explorer
http://www.microsoft.com/Downloads/details.aspx?familyid=4AFE3504-C209-4A73-AC5D-FF2A4A3B48B7&displaylang=en
which is part of the SDK tools . This will usually give you a more
descriptive error message. BTW all those "~CA " in the commandline shouldn't
be their that looks like a cut and paste issue from the author.

Cheers
Glen

"Bill Le May" wrote in message @TK2MSFTNGP06.phx.gbl...
> "Glen Scales [MVP]" wrote...
>> What is the exact error message you receive this will generally tell you
>> what the problem is.
>
> Error opening connection: -2146105340
>
Back to top
View user's profile Send private message
Bill Le May



Joined: 16 Feb 2008
Posts: 4

PostPosted: Wed Feb 20, 2008 5:06 am    Post subject: Re: Trapping a public folder posting Reply with quote

"Glen Scales [MVP]" wrote...
> This sounds like your having a problem with the provider itself are you
> running this directly on the server in question.

Yes, I am running on the Exchange server. When I first Googled the error
code I saw the posting that warned about this.

> BTW all those "~CA " in the commandline shouldn't be their that looks like
> a cut and paste issue from the author.

Yes, I only pasted those unchanged from the original document, but they
weren't submitted to the cmd line.

Back to top
View user's profile Send private message
Display posts from previous:   
Related Topics:
URI for a public folder? I'm trying to download attachments from a public folder, and copy them into a network folder for easy access in Excel. Looking over older messages in the forum, it seems that what I should do is... 1) get the list of messages using ODBC (just because I'm

renaming an exchange Public folder using VBS Hello Folks, Can anyone tell me how can i rename an exchange public folders using vb script thanks in advance

EWS Exchange 2007 SP1 and Public Folder access Hi folks, i built an HTTP-Module which uses EWS to access public folders properties. I'm using Exchange 2007 SP1 (Beta 2) and each time i want to access a property of a public folder (custom property) with the FindFolder Method i get the following error f

Getting error 0x80004005 while retrieving the public folder I am getting error 0x80004005 while retrieving the public folders from exchange 2003 using the table of the I could not able to get the public folder table. Also the mapi profile used to get the public folder ta

Type mismatch when iterating Tasks in public folder Thanks in advance for any assistance. I am trying to extract all Tasks from a public folder and copy attributes to an Access table. I get through ~250 objects and then i receive a "Type Mismatch" error. Is there a way to find out exactly what type of item
Post new topic   Reply to topic    exchangefreaks.com Forum Index -> MS Exchange Development All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group