Apparently not using the filter rule "mail from=" when registering the script will allow mapi messages to be caught by the event, but then how do I trap the intended messages? I noticed on this post, the gentleman referred to getting the IMailMsgProperties and maybe grabbing the sender that way. We'll see how it goes I guess.
http://groups.google.com/groups?q=event+sink+TNEF&hl=en&lr=&ie=UTF-8&saf e=off&selm=5d1201c0a2ac%2492748bc0%24b1e62ecf%40tkmsftngxa04&rnum=6 -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Woodruff, Michael Sent: Wednesday, July 14, 2004 11:11 AM To: Exchange Discussions Subject: RE: Available Event Sink Hmm, that would explain why its not working then. Thanks Chris. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris Scharff Sent: Wednesday, July 14, 2004 10:50 AM To: Exchange Discussions Subject: RE: Available Event Sink There is no SMTP on arrival event for mapi submitted messages IIRC. > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:bounce- > [EMAIL PROTECTED] On Behalf Of Woodruff, Michael > Posted At: Wednesday, July 14, 2004 7:38 AM Posted To: swynk > Conversation: Available Event Sink > Subject: RE: Available Event Sink > > OK, I get it no one likes me here. One more question though. Why is it > that this registered sink will work when I telnet to the local host, but > when I send straight from Outlook it doesn't work? I'm sending to a > remote site so its definitely going through SMTP. Thanks. > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Woodruff, Michael > Sent: Tuesday, July 13, 2004 2:40 PM > To: Exchange Discussions > Subject: RE: Available Event Sink > > OK, here is my script (below). I am registering it as this (on exch2k3 > sp1). I can telnet to the localhost and send an email to the internet > and the script works fine. If I send it to that same recipient from > outlook it doesn't work? Whets going on here? Also, when I registered > this on an exch2k server (sp3) it makes the smtp service wig out and cpu > usage goes up and the email doesn't deliver. When I unregister the > sink, the email is deliverd and the inetinfo process comes back down. > Can someone help a brother in need? Thanks in advance. > > ADDSMTPSINK.VBS > > cscript.exe smtpreg.vbs /add 1 onarrival SenderFilterMW > CDO.SS_SMTPOnArrivalSink "mail [EMAIL PROTECTED]" > cscript.exe smtpreg.vbs /setprop 1 onarrival SenderFilterMW Sink > ScriptName "C:\EventSinks\sender.vbs" > Pause > > > > > SMTPSINK.VBS > > <SCRIPT LANGUAGE="VBSCRIPT"> > ' > ' For information about this namespace, see ' > http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cdosys/ > html/_cdosys_schema_smtpenvelope.asp > ' > Const RECIP_LIST = > "http://schemas.microsoft.com/cdo/smtpenvelope/recipientlist" > ' > ' For information about the CdoEventStatus enumeration, see ' > http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cdosys/ > html/_cdosys_cdoeventstatus_enum.asp > ' > Const CDO_RUN_NEXT_SINK = 0 > ' > ' OnArrival sink entry point > ' > Sub ISMTPOnArrival_OnArrival(ByVal Msg, EventStatus) > On Error Resume Next > Dim objFields > > Set flds = Msg.EnvelopeFields > sRcptList = flds(RECIP_LIST).Value > flds(RECIP_LIST).Value = sRcptList & "SMTP:[EMAIL PROTECTED];" > flds.Update > > EventStatus = CDO_RUN_NEXT_SINK > End Sub > > </SCRIPT> > > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Hlabse, Tony > Sent: Monday, July 12, 2004 1:16 PM > To: Exchange Discussions > Subject: RE: Available Event Sink > > Why create the PF and store and forward to that PF? > > > Tony Hlabse > Email Consultant > Williams Co. > 918-573-1994 > > > > -----Original Message----- > From: Woodruff, Michael [mailto:[EMAIL PROTECTED] > Sent: Monday, July 12, 2004 8:56 AM > To: Exchange Discussions > Subject: Available Event Sink > > I suck at development, anyone know of an event sink that already exists > that will copy email (sent from and received by one individual mailbox) > to a public folder? Preferably VB6 or .NET. I've seen the archive > script and many others, but like I said, I suck at development and I am > looking for something a little more easier to implement. Thanks. > > _________________________________________________________________ > List posting FAQ: http://www.swinc.com/resource/exch_faq.htm > Web Interface: > http://intm-dl.sparklist.com/cgi-bin/lyris.pl?enter=exchange&text_mode=& > lang=english > To unsubscribe send a blank email to > %%email.unsub%% > Exchange List admin: [EMAIL PROTECTED] > To unsubscribe via postal mail, please contact us at: > Jupitermedia Corp. > Attn: Discussion List Management > 475 Park Avenue South > New York, NY 10016 > > Please include the email address which you have been contacted with. > > > > > _________________________________________________________________ > List posting FAQ: http://www.swinc.com/resource/exch_faq.htm > Web Interface: > http://intm-dl.sparklist.com/cgi-bin/lyris.pl?enter=exchange&text_mode=& > lang=english > To unsubscribe send a blank email to > %%email.unsub%% > Exchange List admin: [EMAIL PROTECTED] > To unsubscribe via postal mail, please contact us at: > Jupitermedia Corp. > Attn: Discussion List Management > 475 Park Avenue South > New York, NY 10016 > > Please include the email address which you have been contacted with. > > > _________________________________________________________________ > List posting FAQ: http://www.swinc.com/resource/exch_faq.htm > Web Interface: > http://intm-dl.sparklist.com/cgi-bin/lyris.pl?enter=exchange&text_mode=& > lang=english > To unsubscribe send a blank email to > %%email.unsub%% > Exchange List admin: [EMAIL PROTECTED] > To unsubscribe via postal mail, please contact us at: > Jupitermedia Corp. > Attn: Discussion List Management > 475 Park Avenue South > New York, NY 10016 > > Please include the email address which you have been contacted with. > > > _________________________________________________________________ > List posting FAQ: http://www.swinc.com/resource/exch_faq.htm > Web Interface: http://intm-dl.sparklist.com/cgi- > bin/lyris.pl?enter=exchange&text_mode=&lang=english > To unsubscribe send a blank email to [EMAIL PROTECTED] > dl.sparklist.com > Exchange List admin: [EMAIL PROTECTED] > To unsubscribe via postal mail, please contact us at: > Jupitermedia Corp. > Attn: Discussion List Management > 475 Park Avenue South > New York, NY 10016 > > Please include the email address which you have been contacted with. _________________________________________________________________ List posting FAQ: http://www.swinc.com/resource/exch_faq.htm Web Interface: http://intm-dl.sparklist.com/cgi-bin/lyris.pl?enter=exchange&text_mode=& lang=english To unsubscribe send a blank email to %%email.unsub%% Exchange List admin: [EMAIL PROTECTED] To unsubscribe via postal mail, please contact us at: Jupitermedia Corp. Attn: Discussion List Management 475 Park Avenue South New York, NY 10016 Please include the email address which you have been contacted with. _________________________________________________________________ List posting FAQ: http://www.swinc.com/resource/exch_faq.htm Web Interface: http://intm-dl.sparklist.com/cgi-bin/lyris.pl?enter=exchange&text_mode=& lang=english To unsubscribe send a blank email to %%email.unsub%% Exchange List admin: [EMAIL PROTECTED] To unsubscribe via postal mail, please contact us at: Jupitermedia Corp. Attn: Discussion List Management 475 Park Avenue South New York, NY 10016 Please include the email address which you have been contacted with. _________________________________________________________________ List posting FAQ: http://www.swinc.com/resource/exch_faq.htm Web Interface: http://intm-dl.sparklist.com/cgi-bin/lyris.pl?enter=exchange&text_mode=&lang=english To unsubscribe send a blank email to [EMAIL PROTECTED] Exchange List admin: [EMAIL PROTECTED] To unsubscribe via postal mail, please contact us at: Jupitermedia Corp. Attn: Discussion List Management 475 Park Avenue South New York, NY 10016 Please include the email address which you have been contacted with.
