11-29-2012 03:42 PM
I have a small issue -- the Message.getBodyText method is freezing when that method is called in an application that is intercepting an email going out on a device that is hooked up to a BES with PGP enabled on it. It seems that the PGP application has a lock on the Message object (or data, or something) and the call to the getBodyText is blocking, waiting for the lock to be released (or something). Does anyone have any ideas on how to work around this?
12-05-2012 07:39 PM
No stack trace. That's generally what "blocking" means. It works perfectly on BIS (meaning the debug logs -- via ALT-LGLG -- are showing correct execution), but on BES -- ONLY with messages being sent via the BES PGP program (i.e.: if the tag in the subject line turns off encryption, it works fine with intercepting the message and getting the body text) -- it blocks at the call. If you *really* want to see the source, here it is:
String messageText = message.getBodyText();
Wasn't that a useful piece of code?