-
Topic
-
Hi,
I have an applet that [does a few things] then sends the message. The applet is integrated as a toolbar button on MAIL, APPOINTMENTS and TASKS. The problem is that this button appears also on INCOMING messages where its use is invalid and causes an error.
To deal with this, I tried to read the BoxType of the message to determine if it is Incoming or Outgoing, then if it’s incoming just do nothing, only execute my applet if it’s an outgoing message. However the value I get for boxtype is not always accurate.
When I create a new message, the BoxType is Outgoing (correct) and my applet executes correctly. When I read a received email, the BoxType is Incoming (correct) and my applet does not execute (good). The problem is when I REPLY to that incoming message, even though I am essentially composing a new email (and should in my mind have a boxtype of outgoing), it still thinks the current composing message has a BoxType of INCOMING, so my applet doesn’t execute though it should.
Worse, is when I try to FORWARD a received message, getting the BoxType of that message throws a Token Failed execution error. This is no good.
Is there another way to accurately determine the direction of the message (incoming or outgoing)?
Thanks.
- You must be logged in to reply to this topic.