]> git.cworth.org Git - sup/blobdiff - lib/sup/person.rb
add --search option to sup (thanks to Marcus Williams)
[sup] / 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