I am integrating my Visual Basic 6 workflow...
Articles and Tips: qna
01 May 2003
Q.
I am integrating my Visual Basic 6 workflow product with GroupWise. I downloaded sample Visual Basic code for sending mail and that works well. I have been searching for code that lets me parse the Inbox, but I can't find any. Is there any such sample code available?
A.
The code below uses the GroupWise Object API to read the inbox of the person logged on:
Dim GWRootAccount As Account Dim GWApp As Application2 Dim oMessages As Messages Dim oMessage As Message Dim oFolder As Folder Dim sBuff As String
Set GWApp = New Application2
Set GWRootAccount = GWApp.Login(txtUser.Text, , txtPass.Text, egwNeverPrompt)
Set oFolder = GWRootAccount.MailBox Set oMessages = oFolder.Messages
sBuff = ""
For Each oMessage In oMessages If oMessage.BoxType = egwIncoming Then sBuff = sBuff & "From: " & oMessage.FromText & ", Subject: " & oMessage.Subject & ", Body: " & oMessage.BodyText & vbCrLf End If Next
Text1.Text = sBuff
Documentation for GroupWise Developer Components in the NDK contains information about how to program to the GroupWise Object API.
* Originally published in Novell AppNotes
Disclaimer
The origin of this information may be internal or external to Novell. While Novell makes all reasonable efforts to verify this information, Novell does not make explicit or implied claims to its validity.