sup

A curses threads-with-tags style email client

sup.git

git clone https://supmua.dev/git/sup/
commit 974c3731a0a91fca5dfef766d519ea108f0cbb68
parent 779ca7ea02a144d9833910bf229029f22e12bf55
Author: wmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Date:   Wed, 24 Jan 2007 20:56:53 +0000

bugfixes


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

Diffstat:
M lib/sup/mbox.rb | 2 +-
M lib/sup/mbox/ssh-file.rb | 1 -
M lib/sup/modes/reply-mode.rb | 1 -
M lib/sup/modes/thread-index-mode.rb | 1 +
4 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/lib/sup/mbox.rb b/lib/sup/mbox.rb
@@ -38,7 +38,7 @@ module MBox
       when /^$/: break
       when /:/: last = nil
       else
-        header[last] += line.gsub(/^\s+/, "") if last
+        header[last] += line.chomp.gsub(/^\s+/, "") if last
       end
     end
     header
diff --git a/lib/sup/mbox/ssh-file.rb b/lib/sup/mbox/ssh-file.rb
@@ -183,7 +183,6 @@ private
       say "Checking for #@fn..."
       @shell_mutex.synchronize { raise Errno::ENOENT, @fn unless @shell.test("-e #@fn").status == 0 }
     ensure
-      say "Not checking for #@fn any more"
       shutup
     end
   end
diff --git a/lib/sup/modes/reply-mode.rb b/lib/sup/modes/reply-mode.rb
@@ -128,7 +128,6 @@ protected
 
     if new_header.size != header.size ||
         header.any? { |k, v| new_header[k] != v }
-      #raise "nhs: #{new_header.size} hs: #{header.size} new: #{new_header.inspect} old: #{header.inspect}"
       @selected_type = :user
       @headers[:user] = new_header
     end
diff --git a/lib/sup/modes/thread-index-mode.rb b/lib/sup/modes/thread-index-mode.rb
@@ -280,6 +280,7 @@ class ThreadIndexMode < LineCursorMode
     t = @threads[curpos] or return
     m = t.latest_message
     return if m.nil? # probably won't happen
+    m.load_from_source!
     mode = ReplyMode.new m
     BufferManager.spawn "Reply to #{m.subj}", mode
   end