[Enigmail] Development question about MIME format

otrmail02 otrmail otrmail02 at gmail.com
Mon Jun 16 02:09:37 PDT 2008


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> wrote:

> -----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-----
> _______________________________________________
> Enigmail mailing list
> Enigmail at mozdev.org
> https://www.mozdev.org/mailman/listinfo/enigmail
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.mozdev.org/pipermail/enigmail/attachments/20080616/bed74db8/attachment.html 


More information about the Enigmail mailing list