[Enigmail] Development question about MIME format
Patrick Brunschwig
patrick at mozilla-enigmail.org
Thu Jun 12 05:32:36 PDT 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
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
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQEVAwUBSFEXYncOpHodsOiwAQIW8Af/UpuVH4b6Zzw2HfTkkyCWhPvwxieDhiks
ejx0YrX9BVVKXogvi/eCI+sDLNAd4wqDe2pUep6YPaXby91yGGmP7PBIMP1bLFcq
ulu9AfMxFlBe9n4zo/CIrDf2XTr6R8XzrFFpa3M92VSsFfywb06cWpeomuBzeTym
RyBi40Kd3g8bGlKp8OB5uWCVjYglvHp28C9GorwUqmVWzzBUHrAWVErGPB9R4/Q6
9sNAi9LIu1dtWdi1X4+pJM8IrIf6kOM8FsWBvwjgt2LbeI243zTTWlsGvJC9LgG3
LWyFmZDJ83KEJg8b4XSNBmcvJ3npdQNl1p7Cul5coGigcZDKNBDvTA==
=KVKO
-----END PGP SIGNATURE-----
More information about the Enigmail
mailing list