Re: Is there any way to get the Outlook State Answered?
- From: info@xxxxxxxxxxxxxxxx (Florian Endres)
- Date: 25 Apr 2005 05:42:48 -0700
Hello again.
my errorlog said "MAPI_E_NOT_FOUND" looping through the messages in
the inbox.
The proberty tag "CdoPR_ACTION_FLAG" (&H10810003) must be in the
message properties or not.
"Ken Slovak - [MVP - Outlook]" <kenslovak@xxxxxxxx> wrote in message news:<eVrMTRPQFHA.3140@xxxxxxxxxxxxxxxxxxxx>...
> First of all you need to create and log into the MAPI Session object. That's
> required.
>
> Set objSession = CreateObject("MAPI.Session")
>
> The Logon method must use one of a few ways to log on, either with profile +
> password, with a prompt for that information, with a dynamically created
> logon, or with a piggy-back logon to an existing Outlook session. See the
> various logon samples at www.cdolive.com/cdo5.htm for examples of different
> logon methods.
>
> Second, the last verb executed property isn't always there. So you have to
> account for the property possibly not existing. An error trap for that after
> setting the property to a MAPI.Field object would do that.
>
> Starting the event sink can be complicated and requires that you have the
> proper permissions to register the sink and the proper identity for the sink
> when it runs. Look in the Exchange SDK and in the MSDN library for more
> information on that.
>
> --
> Ken Slovak
> [MVP - Outlook]
> http://www.slovaktech.com
> Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
> Reminder Manager, Extended Reminders, Attachment Options
> http://www.slovaktech.com/products.htm
>
>
> "Florian Endres" <info@xxxxxxxxxxxxxxxx> wrote in message
> news:1624f88f.0504140322.4c6a245c@xxxxxxxxxxxxxxxxxxxxx
> > hello again.
> >
> > this is my coding. looks very nice but the eventsink won`t start. im
> > searching the web for debbuging the com+ application but every result
> > i found don't work.
> >
> > The absolute coding was done by the event sink wizard, the coding
> > between the brakets is mine.
> >
> > the event sink was registered with the exchange explorer.
> >
> >
> >
> > **************
> > Private Sub IExStoreSystemEvents_OnTimer(ByVal bstrURLItem As String,
> > ByVal lFlags As Long)
> > '{
> > Dim objSession As Session
> > Dim objFolder As MAPI.Folder
> > Dim objMessages As MAPI.Messages
> > Dim objMessage As MAPI.Message
> > Dim objFields As MAPI.Fields
> >
> > ' MAPI property tags used
> > Const PR_LAST_VERB_EXECUTED = &H10810003
> >
> > ' Constants for Reply actions
> > Const ACTION_REPLY_ALL = 261
> > Const ACTION_FORWARD = 262
> >
> > ' Get inbox
> > Set objFolder = objSession.Inbox
> >
> > ' Get first message
> > Set objMessage = objFolder.Messages.GetFirst
> >
> > ' Get fields collection
> > Set objFields = objMessage.Fields
> >
> > If objFields.Item(PR_LAST_VERB_EXECUTED) <> ACTION_REPLY Or _
> > objFields.Item(PR_LAST_VERB_EXECUTED) <> ACTION_FORWARD Then
> >
> > 'Write to the log file that this event has been called.'}
> > Call EventLog("TEST", bstrURLItem, lFlags)
> >
> > '{
> > End If
> > '}
> >
> > It's only a part, not the complete coding.
> >
> > how can i debug this s**t in Visual Studio 6 on an Exchange Server
> > 2003?
> >
> > thanks
> > Florian
.
- Follow-Ups:
- Re: Is there any way to get the Outlook State Answered?
- From: Ken Slovak - [MVP - Outlook]
- Re: Is there any way to get the Outlook State Answered?
- References:
- Is there any way to get the Outlook State Answered?
- From: Florian Endres
- Re: Is there any way to get the Outlook State Answered?
- From: Mario Kropik
- Re: Is there any way to get the Outlook State Answered?
- From: Ken Slovak - [MVP - Outlook]
- Re: Is there any way to get the Outlook State Answered?
- From: Florian Endres
- Re: Is there any way to get the Outlook State Answered?
- From: Ken Slovak - [MVP - Outlook]
- Is there any way to get the Outlook State Answered?
- Prev by Date: MailEnable Public Folder causes Invalid Argument
- Next by Date: How i can set if it's Meeting or Appointment with WebDav ?
- Previous by thread: Re: Is there any way to get the Outlook State Answered?
- Next by thread: Re: Is there any way to get the Outlook State Answered?
- Index(es):
Relevant Pages
|