Project

General

Profile

« Previous | Next » 

Revision 45cd6107

Added by Marc Dequènes almost 14 years ago

  • ID 45cd61077c144a831511281db38321edbe551304

[fix] corrected crash introduced when working on body signature

View differences:

bin/postman
logger.debug "Message accepted, processing orders..."
result_list = CommandRunner.run(order)
# create transcript and attachments
logger.debug "Preparing reply"
reply_txt = reply_intro.to_s + "\n\n"
reply_txt += _("Follows the transcript of your commands:").to_s + "\n"
reply_attachments = []
result_list.each do |result|
reply_txt += "> #{result.cmd}\n"
reply_txt += "#{result.message}\n"
reply_attachments += result.refs unless result.refs.nil?
end
reply_txt += "\n"
# create mail
logger.debug "Preparing mail"
mail_reply = mail.create_reply
......
end
end
# create transcript
logger.debug "Preparing reply"
reply_txt = reply_intro.to_s + "\n\n"
reply_txt += _("Follows the transcript of your commands:").to_s + "\n"
reply_attachments = []
result_list.each do |result|
reply_txt += "> #{result.cmd}\n"
reply_txt += "#{result.message}\n"
reply_attachments += result.refs unless result.refs.nil?
end
reply_txt += "\n" + mail_reply.default_body_signature
# insert transcript
transcript_part.set_content_type("text", "plain", {'charset' => 'utf-8', 'format' => 'flowed'})
transcript_part.set_disposition("inline")
transcript_part.quoted_printable_body = reply_txt
transcript_part.quoted_printable_body = reply_txt + mail_reply.default_body_signature
# send reply
logger.debug "Sending mail"

Also available in: Unified diff