-
Topic
-
I trying to get a seemingly simple script to work for several days now and I’m getting the feeling that something is seriously broken with attachments and shared folders.
For example open a message and try this trivial script.
Sub Main(Client, GWEvent)
set f = client.clientstate.commandmessage
msgbox f.subject
set m = groupwise.account.mailbox.messages.add(f)
End Sub
This works as expected with local messages, but when you try this on a shared msg, no msg is added. (you still get the subject msgbox, so the msg object is retrieved correctly )
It gets even more strange:
Sub Main(Client, GWEvent)
set f = client.clientstate.commandmessage.attachments.item(1).message
msgbox f.subject
set m = groupwise.account.mailbox.messages.add(f)
End Subtry this on any message with another msg attached (local or shared), and you (or at least I) get an “Unknown error” with Messages.Object.
I got similar errors with attachments.add(), but I haven’t found out yet under which cirumstances. (yes, the owning messages type is egwDraft).
- You must be logged in to reply to this topic.