Revision 4311d63d
Added by Marc Dequènes almost 16 years ago
- ID 4311d63df6a37a8baa348344919aa2555135f11b
lib/cyborghood/mail.rb | ||
---|---|---|
reply
|
||
end
|
||
|
||
def create_simple_reject_reply(msg)
|
||
reply = create_reply()
|
||
reply.set_content_type("text", "plain", {'charset' => "utf-8"})
|
||
relay.set_disposition("inline")
|
||
reply.quoted_printable_body = msg
|
||
reply.sign
|
||
reply
|
||
end
|
||
|
||
def set_custom_headers
|
||
@mail['Organization'] = @config.mail.organization
|
||
end
|
postman | ||
---|---|---|
next
|
||
elsif not order.ok
|
||
logger.info "Sending reply for rejected message (#{order.msg})"
|
||
mail_reply = mail.create_reply
|
||
mail_reply.set_content_type("text", "plain", {'charset' => "utf-8"})
|
||
mail_reply.set_disposition("inline")
|
||
mail_reply.quoted_printable_body = "A message (ID: #{mail.message_id}) apparently from you was rejected for the following reason:\n #{order.msg}"
|
||
mail_reply.sign
|
||
mail_reply = mail.create_simple_reject_reply("A message (ID: #{mail.message_id}) apparently from you was rejected for the following reason:\n #{order.msg}")
|
||
mail_reply.crypt(order.user.keyFingerPrint) unless order.user.nil?
|
||
mail_reply.deliver
|
||
msg.delete
|
Also available in: Unified diff
[evol] new Mail facility create_simple_reject_reply(msg)