sup

A curses threads-with-tags style email client

sup.git

git clone https://supmua.dev/git/sup/
commit 404c0b3858dcfa03da3e1fd59f5cde5a14da31f6
parent 08b79777eef4b460d3696d997c3daeb0fd9e5709
Author: wmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Date:   Fri,  2 Nov 2007 20:57:17 +0000

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

Diffstat:
M lib/sup/person.rb | 1 +
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git 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