sup

A curses threads-with-tags style email client

sup.git

git clone https://supmua.dev/git/sup/
commit 73e7f29aa24c2e964c04d88f1f30eef18cea5861
parent 22b9237fa5b7124ef7774d6a40a8f93bc1ff8d56
Author: wmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Date:   Mon,  5 Feb 2007 00:00:40 +0000

various bugfixes


git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@302 5c8cc53c-5e98-4d25-b20a-d8db53a31250

Diffstat:
M lib/sup/index.rb | 1 +
M lib/sup/thread.rb | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/sup/index.rb b/lib/sup/index.rb
@@ -85,6 +85,7 @@ class Index
 
     raise "deleting non-corresponding entry #{docid}" unless @index[docid][:message_id] == m.id
 
+    m.labels = entry[:label].split(/\s+/).map { |x| x.intern }
     @index.delete docid
     add_message m
     docid, entry = load_entry_for_id m.id
diff --git a/lib/sup/thread.rb b/lib/sup/thread.rb
@@ -298,7 +298,7 @@ class ThreadSet
   end
 
   ## loads in all messages needed to thread m
-  def load_thread_for_message m, opts
+  def load_thread_for_message m, opts={}
     @index.each_message_in_thread_for m, opts.merge({:limit => 100}) do |mid, builder|
       next if contains_id? mid
       add_message builder.call