Defect #3592 » mailer-subject-base64.patch
| 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?
|
||