lib/vmail/address_quoter.rb in vmail-1.3.5 vs lib/vmail/address_quoter.rb in vmail-1.3.6

- old
+ new

@@ -16,10 +16,17 @@ savebin = part + ", " end end #Quote the names - addrs.map { |addr| addr.gsub(/^(.*) (<.*)/, '"\1" \2') }.join(', ') + addrs.map { |addr| + # a little hackish + if addr =~ /"/ + addr + else + addr.gsub(/^(.*) (<.*)/, '"\1" \2') + end + }.join(', ') end end end