Skip to content

Instantly share code, notes, and snippets.

@vuchl
Created January 7, 2015 13:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vuchl/c397470bd04eb374f7b3 to your computer and use it in GitHub Desktop.
Save vuchl/c397470bd04eb374f7b3 to your computer and use it in GitHub Desktop.
Gets the sender address of the messages previously selected
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