diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-05-02 17:15:21 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-05-02 17:15:21 +0000 |
commit | a2eb744dfbd53f1b7117834201957f60181ad78f (patch) | |
tree | 1aee06c1cb647e036fac8a5cf361da8b993845c2 /actionmailer/lib | |
parent | c8bd316754d43f237412de19a8044ef854d1ecba (diff) | |
download | rails-a2eb744dfbd53f1b7117834201957f60181ad78f.tar.gz rails-a2eb744dfbd53f1b7117834201957f60181ad78f.tar.bz2 rails-a2eb744dfbd53f1b7117834201957f60181ad78f.zip |
Added automatic decoding of base64 bodies #1214 [Jamis Buck]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1275 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionmailer/lib')
-rw-r--r-- | actionmailer/lib/action_mailer/base.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/actionmailer/lib/action_mailer/base.rb b/actionmailer/lib/action_mailer/base.rb index faade19e9e..9afe5138d9 100644 --- a/actionmailer/lib/action_mailer/base.rb +++ b/actionmailer/lib/action_mailer/base.rb @@ -181,7 +181,9 @@ module ActionMailer #:nodoc: def receive(raw_email) logger.info "Received mail:\n #{raw_email}" unless logger.nil? - new.receive(TMail::Mail.parse(raw_email)) + mail = TMail::Mail.parse(raw_email) + mail.base64_decode + new.receive(mail) end private |