From: William Morgan Date: Fri, 25 Jan 2008 05:39:20 +0000 (-0800) Subject: bugfix: rfc2047-encoded names shouldn't be saved (was email, should be name) X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=b4053ec462a0fefc2d89a859ed7ff3c24f981927;p=sup bugfix: rfc2047-encoded names shouldn't be saved (was email, should be name) --- diff --git a/lib/sup/person.rb b/lib/sup/person.rb index 5bd15a8..0e58534 100644 --- a/lib/sup/person.rb +++ b/lib/sup/person.rb @@ -21,7 +21,7 @@ class PersonManager File.open(@fn, "w") do |f| @@people.each do |email, p| next if p.email == p.name - next if p.email =~ /=/ # drop rfc2047-encoded, and lots of other useless emails. definitely a heuristic. + next if p.name =~ /=/ # drop rfc2047-encoded, and lots of other useless emails. definitely a heuristic. f.puts "#{p.email}: #{p.timestamp} #{p.name}" end end