mailer-subject-base64.patch

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

Download (511 Bytes)

View differences:

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?