Project

General

Profile

« Previous | Next » 

Revision 93c35c11

Added by Marc Dequènes over 10 years ago

[fix] allow any disposition for GPG mail parts

RFC3156 does not specify anything about Content-Disposition.

followup on c3722b8

View differences:

lib/mail/gpg.rb
def pgp_signed_part
return nil unless is_pgp_signed?
parts.detect { |p| p.mime_type != "application/pgp-signature" && !p.attachment? }
parts.detect { |p| p.mime_type != "application/pgp-signature" }
end
def verify_pgp_signature
......
end
def pgp_crypt_info_part
parts.detect { |p| p.mime_type == "application/pgp-encrypted" && !p.attachment? }
parts.detect { |p| p.mime_type == "application/pgp-encrypted" }
end
def pgp_crypt_info
......
end
def pgp_encrypted_part
parts.detect { |p| p.mime_type == "application/octet-stream" && !p.attachment? }
parts.detect { |p| p.mime_type == "application/octet-stream" }
end
def pgp_decrypt(&passphrase_callback)

Also available in: Unified diff