Project

General

Profile

« Previous | Next » 

Revision 56793619

Added by Marc Dequènes almost 16 years ago

  • ID 56793619de70bf79a709917c56581ee31364f171

[evol] preliminary work on crypting mail response

View differences:

postman
mail_reply.transfer_encoding = "quoted-printable"
mail_reply.body = reply_txt
else
boundary = TMail.new_boundary
mail_reply.set_content_type("multipart", "mixed", {'boundary' => boundary})
mail_reply.set_content_type("multipart", "mixed", {'boundary' => TMail.new_boundary})
parts = []
p = TMail::Mail.new()
p = TMail::Mail.new
p.set_content_type("text", "plain", {'charset' => "utf-8"})
p.set_disposition("inline")
p.transfer_encoding = "quoted-printable"
......
mail_reply.parts << p
reply_attachments.each do |attachment|
p = TMail::Mail.new()
p = TMail::Mail.new
p.set_content_type("text", "plain", {'charset' => "utf-8"})
p.set_disposition("attachment", {'filename' => "test.rb"})
p.transfer_encoding = "quoted-printable"
p.body = [Mail.normalize_new_lines(attachment)].pack("M*")
mail_reply.parts << p
end
end
end
mail_reply.crypt(order.user.keyFingerPrint)
mail_reply.deliver
end
end

Also available in: Unified diff