Highlighted
Anonymous_User Absent Member.
Absent Member.
2489 views

Can You Delete Attachments?

Hello,
I would like to parse through all messages and delete attachments in order to save space. This would be similar to the GWSTRIP utility or the Formative Delete Attachment applet. However, both of these only delete selected messages, they can't do it in batch.

Can this be accomplished with the GW Object API? I tried the attachment delete method but got an error. The documentation states only attachments on drafts and personal items can be deleted. I tried the message clone method but got an error because received messages can't be cloned.

Any thoughs?

Kent Wicker
Labels (1)
Tags (3)
0 Likes
3 Replies
Anonymous_User Absent Member.
Absent Member.

Re: Can You Delete Attachments?

The only option you would have is to replace the
item. In 8.0, we are introducing stubbing. Stubbing
is not available in the Object API.

Preston

>>> On Thursday, June 18, 2009 at 1:46 PM,

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

> Hello,
> I would like to parse through all messages and delete attachments in
> order to save space. This would be similar to the GWSTRIP utility or
> the Formative Delete Attachment applet. However, both of these only
> delete selected messages, they can't do it in batch.
>
> Can this be accomplished with the GW Object API? I tried the
> attachment delete method but got an error. The documentation states
> only attachments on drafts and personal items can be deleted. I tried
> the message clone method but got an error because received messages
> can't be cloned.
>
> Any thoughs?
>
> Kent Wicker

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Can You Delete Attachments?

Thank you.

Can you elaborate on replacing the item?
0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Can You Delete Attachments?

I believe some developers have implemented a version
of stubbing by archiving the original item, deleting
the item and creating a new item with the original
subject. The new item has a link to their web server
where the user can get access to the data of the
original item.

The stubbing API introduced in GW 8.0 allows an archive
server to stub the items. After the item has been
archived to the archive server, the archive server can
tell GroupWise to stub the item. The original item is
deleted. A new item is created from the original item.
All of the data except for attachment data (attachments,
distribution lists and the message body) is copied to
the new item. An new identifier (archiveId) is also
created in the new item that only has meaning to the
archive server and is used by the archive server to
identify the archived item.

These stubbed items have a flag set in them and have
a different icon. When the user clicks on one of these
stubbed items, the Win32 GWClient will make a call to
the POA to retrieve the attachment data. The POA will
use SOAP to call the archive server to retrieve the
data from the original item. The POA will return the
data to the GWClient which will display the data for
the item. As far as the user is concerned, the stubbed
item is just a normal item. The functionality should
work the same as a normal item.

We are still working on producing the documentation
for stubbing.

Preston

>>> On Friday, June 19, 2009 at 1:36 PM,

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

> Thank you.
>
> Can you elaborate on replacing the item?

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.