[Enigmail] Development question about MIME format

Patrick Brunschwig patrick at mozilla-enigmail.org
Mon Jun 16 04:43:32 PDT 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

There is no at mozilla.org available on this topic :-(

The code is automatically invoked by Mozilla if you set the
securityInfo. If you want to know more, you'll have to study the Mozilla
code in mailnews/compose/src, in particular nsMsgSend.cpp and
nsMsgSendPart.cpp

- -Patrick


otrmail02 otrmail wrote:
> Hi,
> 
> Thanks for reply, Patrick. I have study about the
> enigmailMsgComposeOverlay.js. But i still confuse about how does the
> method is invoked automatically. Could you tell me more about it? Or any
> reference that i can refer to it. Thanks.
> 
> Regards
> Lai
> 
> On Thu, Jun 12, 2008 at 8:32 PM, Patrick Brunschwig
> <patrick at mozilla-enigmail.org <mailto:patrick at mozilla-enigmail.org>> wrote:
> 
> otrmail02 otrmail wrote:
>> Hi,
> 
>> I am doing an extension for Thunderbird. The extension will send a
> mail
>> with MIME Security with OpenPGP format (RFC3156).
>> Understand that enigmail is using a method WriteEncryptedHeaders() in
>> nsEnigMsgCompose.cpp to write the format. I am wondering how does the
>> method is called and when is called. Hope any of can answer my
> question.
>> Thanks in advance.
> 
>> regards
>> Lai
> 
> You have to register your class in with the component registrar, like
> it's done in enigmail.js in Enigmail.prototype.initialize(). 1st thing
> in that method does is to register nsEnigMsgCompose for secure message
> sending.
> 
> The methods are automatically invoked if
> gMsgCompose.compFields.securityInfo is defined and specifies that the
> message should be encrypted. See enigmailMsgComposeOverlay.js, function
> enigEncryptMsg().
> 
> -Patrick
> 
_______________________________________________
Enigmail mailing list
Enigmail at mozdev.org <mailto:Enigmail at mozdev.org>
https://www.mozdev.org/mailman/listinfo/enigmail

> ------------------------------------------------------------------------

> _______________________________________________
> Enigmail mailing list
> Enigmail at mozdev.org
> https://www.mozdev.org/mailman/listinfo/enigmail

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEVAwUBSFZR43cOpHodsOiwAQLwjwgAiII0Hi85i4iEfqVoR31h5Ge/ANWSQr+3
fxu/aUW9xMvii+ZDm9Aq82/LkcO6pWa/bQ1ZWIKpaUHQzO9v0S0V+8VUVcCJtNim
efk7CNmH0jHHuxYx6aVMgiTTwLxq2LHH2xzP+Rgh/UyPnnYO+92bpop3zXgA3rzg
QM8BDUQ02tafbnCw4vf34l+cYMPq727tly1xBvLARMwNNWl2n7eNqeWRCNmzLXnF
aVJLqC9NajsY68SNfF0RF7MQd1Hmvl7x8v61ryq7LMJW1TFHP8ODFyEX40/p5agg
3Om2GD7bkJX+lUMYVLnfF/qjmRPWCH5i0eupGYGJEq/ecRTBHErriw==
=b8mz
-----END PGP SIGNATURE-----


More information about the Enigmail mailing list