lib/vmail/address_quoter.rb in vmail-1.3.2 vs lib/vmail/address_quoter.rb in vmail-1.3.4
- old
+ new
@@ -1,8 +1,9 @@
module Vmail
module AddressQuoter
def quote_addresses(string)
+ return string
email_addrs = []
string.scan(/\s*(.*?)\s*<(.+?)>(?:,|\Z)/) do |match|
# yields ["Bob Smith", "bobsmith@gmail.com"]
# then ["Jones, Rich A.", "richjones@gmail.com"]
email_addrs << "\"#{match.first}\" <#{match.last}>"