Project

General

Profile

Defect #3592 » mailer-subject-base64.patch

Stanislav German-Evtushenko, 2009-07-07 08:24

View differences:

app/models/mailer.rb (working copy)
# for the case of plain text only
def body(*params)
value = super(*params)
subject "=?#{charset}?B?#{Base64.encode64(subject)}?="
if Setting.plain_text_mail?
templates = Dir.glob("#{template_path}/#{@template}.text.plain.{rhtml,erb}")
unless String === @body or templates.empty?
(1-1/3)