]> git.cworth.org Git - sup/commitdiff
bugfix: rfc2047-encoded names shouldn't be saved (was email, should be name)
authorWilliam Morgan <wmorgan-sup@masanjin.net>
Fri, 25 Jan 2008 05:39:20 +0000 (21:39 -0800)
committerWilliam Morgan <wmorgan-sup@masanjin.net>
Fri, 25 Jan 2008 05:39:20 +0000 (21:39 -0800)
lib/sup/person.rb

index 5bd15a82856095f7582f7f7c109218931d23d514..0e58534f0b2d93035f2200258e48d754fbcc3f6c 100644 (file)
@@ -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