Highlighted
mdirkse Absent Member.
Absent Member.
1482 views

Can't send RTF messages in CreateItemRequest?

Hi,
I'm developing an archiving app that downloads messages from Groupwise, and gives user the ability to restore them to their inbox. I've come across something I can't find much information about, so I'll ask here:

Basically, my app reads in the mail item XML that was retrieved via the soap interface, and uses that for the createItemRequest. This works, as long as the <part> element in the <message> element has the content type "text/plain". If it has content type "text/rtf", I get the following error: "59926:The specified contentType is not support with this call."

Is there any way to work around this? Most of the mails in question have been retrieved using the view keyword "message/RTF", so they're in RTF. They all seem to have an HTML attachment with the actual message in it, so I'm not sure how much the <part> element really matters at all, but it would still be nice to not have this error.

I'm testing against Groupwise 8.0.2.

Thanks in advance,
Maarten
Labels (1)
0 Likes
2 Replies
Anonymous_User Absent Member.
Absent Member.

Re: Can't send RTF messages in CreateItemRequest?

The short answer is you can only set a text/plain message
body. Do you need to get the rtf message body? If you get
the message as plain text, you wouldn't have a problem.
The GW client will use the most rich format for the message
body. If you set the HTML message body,the GW Client will
use that,

We haven't had anyone ask to save the message body as rtf
text. If you need, we can open an enhancement.

Preston

>>> On Monday, September 20, 2010 at 10:36 AM,

mdirkse<mdirkse@no-mx.forums.novell.com> wrote:

> Hi,
> I'm developing an archiving app that downloads messages from Groupwise,
> and gives user the ability to restore them to their inbox. I've come
> across something I can't find much information about, so I'll ask here:
>
> Basically, my app reads in the mail item XML that was retrieved via the
> soap interface, and uses that for the createItemRequest. This works, as
> long as the <part> element in the <message> element has the content type
> "text/plain". If it has content type "text/rtf", I get the following
> error: "59926:The specified contentType is not support with this call."
>
> Is there any way to work around this? Most of the mails in question
> have been retrieved using the view keyword "message/RTF", so they're in
> RTF. They all seem to have an HTML attachment with the actual message in
> it, so I'm not sure how much the <part> element really matters at all,
> but it would still be nice to not have this error.
>
> I'm testing against Groupwise 8.0.2.
>
> Thanks in advance,
> Maarten

0 Likes
mdirkse Absent Member.
Absent Member.

Re: Can't send RTF messages in CreateItemRequest?

Hi Preston,
Thanks for your answer. You're completely right, I don't need the RTF body, and can just ask for the plaintext version as I believe all mails are either plaintext or html.
I've changed my view keyword on the capture side from "message/RTF" to "message". No need for an enhancement, I can understand why no one has asked for it before 😉
Thanks,
Maarten
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.