Revision 56947466
Added by Marc Dequènes over 14 years ago
- ID 569474668768d147b8c52665bd9113b2c2e7f83d
bin/postman | ||
---|---|---|
if reply_attachments.empty?
|
||
transcript_part = mail_reply
|
||
else
|
||
mail_reply.set_content_type("multipart", "mixed", {'boundary' => TMail.new_boundary})
|
||
mail_reply.transfer_encoding = "7bit"
|
||
mail_reply.quoted_body = "This mail is in MIME format.\n"
|
||
parts = []
|
||
mail_reply.to_multipart!
|
||
|
||
p = CyborgHood::Mail.blank
|
||
transcript_part = p
|
lib/cyborghood/mail.rb | ||
---|---|---|
reply
|
||
end
|
||
|
||
def to_multipart!
|
||
self.set_content_type("multipart", "mixed", {'boundary' => TMail.new_boundary})
|
||
self.transfer_encoding = "7bit"
|
||
self.quoted_body = "This mail is in MIME format.\n"
|
||
self.parts.clear
|
||
end
|
||
|
||
def set_custom_headers
|
||
@mail['Organization'] = @config.mail.organization
|
||
end
|
Also available in: Unified diff
[evol] added to_multipart! method to remove such low level manipulations from postman