#8104
sam
Participant

Hi,

With the help of this post: http://www.advansyscorp.com/forums/topic/7454029072/

I created a work around:

  

intParentAttachmentCount = GroupWise.ItemAttachmentGetCount("X00")
       for intCounter = 0 to intParentAttachmentCount - 1
         ' extract from email attachement as other classes don't have attachments
         if GroupWise.ItemAttachmentGetClass("X00", intCounter) = 2 then
           ' current account
           set tmpMsg = groupwise.Account.GetMessage(groupwise.ItemAttachmentGetName("X00", intCounter))
           if tmpMsg <> "" then
             ExtractAttachments tmpMsg
           else
            ' proxies
            for intPrx = 0 to groupwise.Account.Application.ProxyHistory.Count - 1
               set tmpAccount = groupwise.Account.proxy(groupwise.Account.Application.ProxyHistory(intPrx))
               set tmpMsg = tmpAccount.GetMessage(groupwise.ItemAttachmentGetName("X00", intCounter))
               if tmpMsg <> "" then
                 ExtractAttachments tmpMsg
                 set tmpAccount = nothing
                 set tmpMsg = nothing
                 exit for
               end if
             next
             set tmpAccount = nothing
             set tmpMsg = nothing
           end if
         else
           ' normal attachment code
         end if
       next

gonna go optimize it…