Project

General

Profile

« Previous | Next » 

Revision 837fd85c

Added by Marc Dequènes almost 15 years ago

  • ID 837fd85c45552c37b39331023fd3c54043965615

[evol] added changes requested by upstream author to be included in TMail 1.3

View differences:

lib/tmail_gpg.rb
#
#++
require 'gpgme' # >= 1.0.2 needed for :always_trust sign option
# Attempt to handle PGP/GPG features in a RFC3156-compliant way
#
# notes: These methods have been designed to be able to sign, crypt,
......
# support (yet?) for the combined method described in chapter
# 6.2 of RFC3156.
module TMail
class Mail
module GpgExtension
def is_pgp_signed?
content_type == "multipart/signed" and
header['content-type'].params['protocol'] == "application/pgp-signature" and
......
end
end
end
begin
require 'gpgme' # >= 1.0.2 needed for :always_trust sign option
TMail::Mail.send(:include, TMail::GpgExtension)
rescue
end

Also available in: Unified diff