Revision 6ed10f49
Added by Marc Dequènes almost 14 years ago
- ID 6ed10f493be6070b321fc83e82b024de5b150adb
lib/cyborghood/mail.rb | ||
---|---|---|
reply = create_reply()
|
||
reply.set_content_type("text", "plain", {'charset' => "utf-8"})
|
||
reply.set_disposition("inline")
|
||
reply.quoted_printable_body = msg
|
||
reply.quoted_printable_body = msg + self.default_body_signature
|
||
reply.sign
|
||
reply.crypt(reply.user.keyFingerPrint) unless reply.user.nil?
|
||
reply
|
||
... | ... | |
end
|
||
end
|
||
|
||
def default_body_signature
|
||
s = "\n" +
|
||
"-- \n" +
|
||
"#{CyborgHood::PRODUCT} v#{CyborgHood::VERSION}\n"
|
||
s += _("Contact eMail:").to_s + " \"#{@config.contact.name}\" <#{@config.contact.email}>\n" if @config.contact.email
|
||
s += _("Contact URL:").to_s + " #{@config.contact.url}\n" if @config.contact.url
|
||
s
|
||
end
|
||
|
||
def deliver
|
||
check_headers
|
||
|
Also available in: Unified diff
[evol] move default body signature in Mail class