You are currently viewing a snapshot of taken on April 21, 2008. Most of this content is highly out of date (some pages haven't been updated since the project began in 1998) and exists for historical purposes only. If there are any pages on this archive site that you think should be added back to, please file a bug.

Adding PGP support to mozilla
Seth Spitzer

S/MIME support was recently added to mozilla.  
If you are interested in adding PGP support, start by looking at how 
we added S/MIME support.

1) account manager UI:  mozilla/mailnews/extensions/smime
2) backend code, hooks into the cert db, etc:  mozilla/mailnews/extensions/smime
3) compose window overlays:  mozilla/mailnews/extensions/smime
4) msg header view overlays:  mozilla/mailnews/extensions/smime
5) The compose UI is done using overlays and XPCOM tricks.  
6) The only hacked in part was to the mime back end. 

We (the mailnews modules owners) would be receptive to similar changes 
to PGP extension and similar hard coded hacks to mime for PGP.

see, and the bugs it 
depends on for additional information about the S/MIME extension.

I don't know how works, so I can't comment on it.

I do know how the NAI PGP plugin works, and it was not done right, which is
why it was rejected.

For some out of date discussions on that, see and  

For a lengthy discussion, see