Created
January 7, 2015 13:15
-
-
Save vuchl/c397470bd04eb374f7b3 to your computer and use it in GitHub Desktop.
Gets the sender address of the messages previously selected
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for (int i = 1; i <= messageList.Count; i++) | |
{ | |
// the .Item() method expects either a string or a long | |
// see http://www.novell.com/documentation/developer/groupwise_sdk/gwsdk_gwobjapi/data/h20s5bdo.html | |
long index = (long)i; | |
// instantiate a Message object to get access to the different properties like subject, sender etc | |
GroupwareTypeLibrary.Message oMessage = (GroupwareTypeLibrary.Message)ml.Item(index); | |
// get the email address of the sender | |
MessageBox.Show(oMessage.Sender.EMailAddress); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment