Hi again.
I finally managed to find a way to get the raw message, by following
instructions in here:
http://simon-cozens.org/programmer/articles/thunderbird-js.pod
It works beautifully, but now I have a new problem: because I need to
use the streamlistener to get the raw message for IMAP mails, I lose the
message header object during the process. I need it to process the
message further, along with the raw message body.
Thus, I need one of the following:
1. Pass the message header object to the StreamListener
2. Wait for the raw message body in my function which starts the
messageService.CopyMessage(...) request
3. Somehow generate the header object from the raw message body
I guess number one is out... unless I use some kind of global variable
to store the header (which infact, I will try now =)