I created a toolbar button in message Compose Toolbar Palette.
<toolbarpalette id="MsgComposeToolbarPalette">
<toolbarbutton id="myextension-button1" class="toolbarbutton-1"
label="Cryption_compose" tooltiptext="Encrypts or decrypts your email"
oncommand="Cryption.open_options();" />
</toolbarpalette>
OnClick opens the options.xul, where I created a XUL page that can handle text encryption and decryption when the user enters the text into the text box.
Now what I am trying is, once the user composes the email and clicks on the toolbar button, the textbox should be filled with the composed email text. Any idea how to do this?