aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailer/lib/action_mailer/vendor/tmail_compat.rb
blob: 0e240eb478cb913b8541fa001c31d7a5a8414664 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# TMail Compatibility File
# Created in 1.2 of Mail.  Will be deprecated
STDERR.puts("DEPRECATION WARNING, Mail running in TMail compatibility mode.  This will be deprecated soon.")

class Mail::Message
  
  def set_content_disposition(*args)
    STDERR.puts("DEPRECATION WARNING, Message#set_content_disposition is deprecated, please use Message#content_disposition")
    content_disposition(args)
  end

  def encoding=(val)
    STDERR.puts("DEPRECATION WARNING, Message#encoding= is deprecated, please use Message#content_transfer_encoding")
    content_transfer_encoding(val)
  end
  
  def quoted_body
    STDERR.puts("DEPRECATION WARNING, Body#quoted_body is deprecated, please use Message => Body#encoded")
    body.decoded
  end
  
end