Novell Home

TID102310 (XSAVEC01) - Demonstrates how to save an attachment in Groupwise 5.5 using C-plus-plus

From Developer Community

Simple sample code that demonstrates how to create a session, login, and save an attachment from the incoming messages of the mailbox folder.

DETAILED DESCRIPTION

Creates a session. Login to Groupwise as default user. Gets mailbox folder (incoming messages). Gets the messages collection. Loops through each message of the collection. Within the loop, the application gets the attachments collection. Loops through each attachment of the attachments collection. Saves all messages of egwFile type to specified directory.

This is a simple console application that prints out the FromText of each incoming message of the mailbox folder and the number of attachments within each message. It then saves all messages of egwFile to the directory specified by the user.

xsavec01.exe

xsavec01.exe161.5 K2005-04-06

--devsup

Novell® Making IT Work As One

© 2009 Novell, Inc. All Rights Reserved.