]> git.cworth.org Git - sup/commitdiff
bugfixes
authorwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Wed, 24 Jan 2007 20:56:53 +0000 (20:56 +0000)
committerwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Wed, 24 Jan 2007 20:56:53 +0000 (20:56 +0000)
git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@282 5c8cc53c-5e98-4d25-b20a-d8db53a31250

lib/sup/mbox.rb
lib/sup/mbox/ssh-file.rb
lib/sup/modes/reply-mode.rb
lib/sup/modes/thread-index-mode.rb

index 7086a798c0b73a0888837d362c90ec669042c9c3..5b346ef5c1b0725b149b106f098f07057b2324b9 100644 (file)
@@ -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
index 0338490228b43789542a31b618657b8374b77cb0..6e91c2089f96c77b62430077120d0d0c63a6db27 100644 (file)
@@ -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
index 5f2de09490aa2e8620a1254ba5b9b5e92fcab993..d6a8ecfca1915701417f07d0d00b928d4173d628 100644 (file)
@@ -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
index 4fb7840f39e8041fb96f861302c241e7321b23f7..c2d227ef35bd34ef598f21c2d1db5c4eb70d3d00 100644 (file)
@@ -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