Permalink
Browse files

Fixed that email address like "Jamis Buck, M.D." <wild.medicine@examp…

…le.net> would cause the quoter to generate emails resulting in "bad address" errors from the mail server #1220 [Jamis Buck]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1247 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent fe00c27 commit be27caf92db41f1a5dc94e7c2913467e7e493eeb @dhh dhh committed Apr 30, 2005
Showing with 6 additions and 1 deletion.
  1. +5 −0 actionmailer/CHANGELOG
  2. +1 −1 actionmailer/lib/action_mailer/base.rb
View
@@ -1,3 +1,8 @@
+*SVN*
+
+* Fixed that email address like "Jamis Buck, M.D." <wild.medicine@example.net> would cause the quoter to generate emails resulting in "bad address" errors from the mail server #1220 [Jamis Buck]
+
+
*0.9.1* (20th April, 2005)
* Depend on Action Pack 1.8.1
@@ -168,7 +168,7 @@ def quote_address_if_necessary(address, charset)
elsif address =~ /^(\S.*)\s+(<.*>)$/
address = $2
phrase = quote_if_necessary($1.gsub(/^['"](.*)['"]$/, '\1'), charset)
- "#{phrase} #{address}"
+ "\"#{phrase}\" #{address}"
else
address
end

0 comments on commit be27caf

Please sign in to comment.