Project

General

Profile

« Previous | Next » 

Revision b3a5479b

Added by Marc Dequènes about 14 years ago

  • ID b3a5479be04de2ba8c3542ceaee89376229c47ed

[fix] tmail_gpg: remove final CRLF added to respect OpenPGP convention

View differences:

lib/tmail_gpg.rb
parts[1].body
end
# don't forget lines may not be normalized
def pgp_signed_part
return nil unless is_pgp_signed?
parts[0]
# remove final CRLF added to respect OpenPGP convention
# (see note in chapter 5 of RFC3156)
signed_part = parts[0].raw.chomp
return TMail::Mail.parse(signed_part)
end
def verify_pgp_signature

Also available in: Unified diff