Novell is now a part of Micro Focus

I am programming to the GroupWise C3PO interface....

Articles and Tips: qna

01 Sep 2002


Q.

I am programming to the GroupWise C3PO interface. I am trying to write an object that does 3 things:

  • creates a toolbar button and context menu for sending/forwarding/replying to messages

  • alters the subject line

  • programmatically sends the message

So far I've gotten the first objective down via the C3PO wizard, but I haven't a clue as to how to meet the other two objectives. Trying to use the Novell documentation to figure it out is a nightmare. Can someone help me with this?

A.

I think that in order to alter the subject line, you have to use GroupWise Tokens (look in the GroupWise Tokens documentation). For example you can use these tokens for the following:

  • NewMail() - to create a new mail window

  • ItemMessageIDFromView() - to get message identifier (you need it later, to alter subject line)

  • ItemSetText(message id, 9, new subject line), where "9" identifies that you want to change subject.

  • message id - message identifier returned by ItemMessageIDFromView

  • new subject line - text with new subject

In order to send messages programmatically, you can use GroupWise Object API. Look for Message Object. As always, see http://developer.novell.com for all your GroupWise developer needs.

* 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.

© Copyright Micro Focus or one of its affiliates