Re: Is there any way to get the Outlook State Answered?



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
.



Relevant Pages

  • Re: Is there any way to get the Outlook State Answered?
    ... 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. ... 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. ... Dim objFolder As MAPI.Folder ...
    (microsoft.public.exchange.development)
  • Re: Modified logon control script
    ... your use of the InStr function is incorrect. ... I would suggest running the script at a command prompt ... > after logon to troubleshoot. ... >> Dim fso, f1, WshShell, argu, alllog, lastlog ...
    (microsoft.public.windows.server.scripting)
  • Re: Last Login Time - question about Script I have
    ... An unsuccessful attempt to logon, meaning, ... > lastLogon date for each user. ... The loop to output the dates for all users ... >> Dim objRootDSE, strConfig, objConnection, objCommand, strQuery ...
    (microsoft.public.scripting.wsh)
  • RE: Creating a logonname automatically
    ... Dim newlogonname As String ... MsgBox "Couldn't create the new logon. ... surname, followed by lastname, up to three letters of the surname max) ...
    (microsoft.public.access.modulesdaovba)
  • Re: Question to "Populating a pull down list in a .hta from AD"
    ... which is a byte array. ... so the array must be offset by the time zone bias (which can be read ... logon at any time. ... Dim strUserDN, objUser ...
    (microsoft.public.scripting.vbscript)