7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# File 'lib/mail/gpg/mime_signed_message.rb', line 7
def self.setup(signed_mail, options = {})
content_part, signature = signed_mail.parts
success, vr = SignPart.verify_signature(content_part, signature, options)
self.new do
verify_result vr
signed_mail..fields.each do |field|
[field.name] = field.value
end
content_part..fields.each do |field|
[field.name] = field.value
end
if content_part.multipart?
content_part.parts.each{|part| add_part part}
else
body content_part.body.raw_source
end
end
end
|