Changing of Content-Type

This forum is for discussions regarding Enigmail alpha and beta versions (Nightly Builds). The versions discussed in this forum are not stable and should not be used in production.

Re: Changing of Content-Type

Postby tehhz » 31st Jul 2012 16:48

Hi Patrick,

Currently, in your view, can nsEnigMsgComposeSecure.cpp be adapted to handle change of content-type headers without the use of X.509 certificates, as mandated by Thunderbird codebase? In my project, the encryption and decryption of email messages will only involve the use of public keys and password-based encryption (PBE)?.

Appreciate if you can kindly reply to my email as soon as possible. Thank you.

Regards,
Brian Teh
tehhz
Novice User
Novice User
 
Posts: 12
Joined: 9th Dec 2011 03:51

Re: Changing of Content-Type

Postby patrick » 1st Aug 2012 08:58

Enigmail doesn't use X.509 certificates, so yes. The only rule you have to observe is this: nsEnigMsgComposeSecure.cpp is only called if you set the securityInfo object in gMsgCompose.compFields properly.
User avatar
patrick
Developer
Developer
 
Posts: 517
Joined: 13th Nov 2005 22:16
Location: Zurich, Switzerland

Re: Changing of Content-Type

Postby tehhz » 12th Aug 2012 10:58

Hi Patrick,

So far, does Thunderbird supports customization of content-type for emails without any encryption enabled? I am trying to change the content-type headers to say "multipart/mixed" to all outgoing emails. But it looks like nsIMsgComposeSecure and nsIStreamListener must be always active for the content-type headers change to take effect. Can nsIStreamListener alone do this?

As my keys are generated and stored into the database after the mail listeners have finished executing, there is an delay in attaching the key to the email as attachment due to user supplying one-time password to the email.

Appreciate if you can kindly reply to my message as soon as possible. Thank you.

Regards,
Brian Teh, Singapore
tehhz
Novice User
Novice User
 
Posts: 12
Joined: 9th Dec 2011 03:51

Re: Changing of Content-Type

Postby patrick » 12th Aug 2012 11:57

You will always need nsIMsgComposeSecure if you want to modify anything in outgoing messages. The stream listener alone won't help.
User avatar
patrick
Developer
Developer
 
Posts: 517
Joined: 13th Nov 2005 22:16
Location: Zurich, Switzerland

Re: Changing of Content-Type

Postby tehhz » 15th Sep 2012 07:02

Hi Patrick,

First of all I would like to say a big "thank you" to you and your team for the excellent Enigmail codes. In particular, your assistance was a big help to my project.

I have now successfully created an extension that encrypts email using public keys encryption and password-based encryption (PBE) using Mozilla NSS that has the desired Content-Type of "multipart/encrypted" for all outgoing emails, without the use of external application.

But unfortunately, Mozilla NSS currently only has C++ implementation available and I can't get rid of C++ code for the time being. For now, I will just have to re-compile the component every 6 weeks for the time being.

Regards,
Brian Teh, Singapore
tehhz
Novice User
Novice User
 
Posts: 12
Joined: 9th Dec 2011 03:51

Previous

Return to Development Discussions