Defect #3592 » mailer-subject-base64.patch
app/models/mailer.rb (working copy) | ||
---|---|---|
245 | 245 |
# for the case of plain text only |
246 | 246 |
def body(*params) |
247 | 247 |
value = super(*params) |
248 |
subject "=?#{charset}?B?#{Base64.encode64(subject)}?=" |
|
248 | 249 |
if Setting.plain_text_mail? |
249 | 250 |
templates = Dir.glob("#{template_path}/#{@template}.text.plain.{rhtml,erb}") |
250 | 251 |
unless String === @body or templates.empty? |