From 404c0b3858dcfa03da3e1fd59f5cde5a14da31f6 Mon Sep 17 00:00:00 2001 From: wmorgan Date: Fri, 2 Nov 2007 20:57:17 +0000 Subject: [PATCH] don't save person names with = signs in them git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@663 5c8cc53c-5e98-4d25-b20a-d8db53a31250 --- lib/sup/person.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/sup/person.rb b/lib/sup/person.rb index f5cbe53..ba27205 100644 --- a/lib/sup/person.rb +++ b/lib/sup/person.rb @@ -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 -- 2.45.2