Patches: Browse | Submit New | Admin

[#24081] gpgme interface

2009-02-23 20:51
Submitted By:
Marc Dequènes (duck)
Assigned To:
Nobody (None)
gpgme interface

Detailed description
This is a separate file for inclusion when you need gpgme support. It adds new methods to the TMail::Mail class, from
low level sign/encrypt methods to high level create_signed()/create_encrypted() create_reply()-like methods. It tried
to be as most RFC3156-compliant as possible.

Add A Comment: Notepad

Please login


Date: 2010-05-26 12:28
Sender: Marc Dequènes

Any news ?
Date: 2010-04-05 16:51
Sender: Marc Dequènes

Not sure you still care about this, as i just discovered
your new Mail project...

This new version, mostly:
  * fix using the generated or raw message in to_rfc3156()
depending on usage (received mail to verify, or mail being
  * improve to_rfc3156()
  * raise an error if the user added non/bad-encoded
non-7bit content

Beware signing multipart messages is broken, see #28053 for
a patch.
Date: 2009-10-17 15:46
Sender: Marc Dequènes

Is this OK for TMail 1.3 ?
Date: 2009-08-09 18:58
Sender: Marc Dequènes

...and the associated fixture (but perhaps one already
included in the sources could be used).
Date: 2009-08-09 18:57
Sender: Marc Dequènes

Here are the tests.
Date: 2009-08-09 18:56
Sender: Marc Dequènes

While looking at tests, i made fixes and improvements.
Date: 2009-08-08 17:07
Sender: Marc Dequènes

BTW, the raw(), to_rfc3156(), and copy_headers_from()
methods could be moved in the general interface, as thay are
Date: 2009-08-08 16:46
Sender: Marc Dequènes

But i fucked-up my test... I forgot LoadError is not a
subclass of StandardError. So the rescue should be explicit.
Date: 2009-08-08 08:27
Sender: Marc Dequènes

I didn't have time to look at tests yet (as i don't have
much experience in this area). Nevertheless i could do the
small change you requested. I guess in this case it makes
sense to include all possible extensions to have them work
if the user installed the requirements.

I fear i don't have enough right to delete the old files,
but changed the name of this one to makes things clearer.
Date: 2009-08-07 06:26
Sender: Mikel Lindsaar

Heya Marc,

Two things:

1) Could you delete these files and reupload
2) Can you modify so that if the person does not have the gpgme
library then it rescues this load error and does not load up
the PGP extensions without an error.

Also.. some really basic broad test cases would be good.

If we do these two things, then I can bundle it in TMail 1.3

Date: 2009-07-09 03:23
Sender: Mikel Lindsaar

This is awesome!

I have sent you an email separately, but I need to get some test
cases so I can include this in 1.3

Date: 2009-03-08 12:16
Sender: Marc Dequènes

When composing a signed or encrypted message, the
build_intermediate_mail() was unquoting body by mistake.
Only non-multipart messages were affected. Attached a
corrected file.

Attached Files:

Name Description Download
tmail_gpg.rb Download
tmail_gpg.rb Download
tmail_gpg.rb.new3 fixed release Download Download
tmail_gpg.rb.new2 fixed release Download
test_gpgme.rb tests Download
raw_classic fixture Download


Field Old Value Date By
File Added4904: tmail_gpg.rb.new32010-04-05 16:51duck
File Added4676: raw_classic2009-08-09 18:58duck
File Added4675: test_gpgme.rb2009-08-09 18:57duck
File Added4674: tmail_gpg.rb.new22009-08-09 18:56duck
File Added4670: tmail_gpg.rb.new2009-08-08 08:27duck
File Added4402: tmail_gpg.rb2009-03-08 12:16duck
File Added4366: tmail_gpg.rb2009-02-23 20:53duck