]> git.cworth.org Git - sup/commitdiff
don't save person names with = signs in them
authorwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Fri, 2 Nov 2007 20:57:17 +0000 (20:57 +0000)
committerwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Fri, 2 Nov 2007 20:57:17 +0000 (20:57 +0000)
git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@663 5c8cc53c-5e98-4d25-b20a-d8db53a31250

lib/sup/person.rb

index f5cbe5391085c328398d6e14ea6392a5a48be19e..ba2720562e459a39b9cae7c0586b3fafe67e5c5f 100644 (file)
@@ -21,6 +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.
         f.puts "#{p.email}: #{p.timestamp} #{p.name}"
       end
     end