sup

A curses threads-with-tags style email client

sup.git

git clone https://supmua.dev/git/sup/
commit d3e384627eec5e8910c1788518bbbb8eb0543306
parent e6a28b6d0cfb36c3af8bdf33f60dec42125af4de
Author: wmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Date:   Sat, 25 Aug 2007 17:41:17 +0000

drafts bugfix: saving

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

Diffstat:
M lib/sup/draft.rb | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/lib/sup/draft.rb b/lib/sup/draft.rb
@@ -100,11 +100,7 @@ class DraftLoader < Source
   end
 
   def raw_full_message offset
-    ret = ""
-    File.open fn_for_offset(offset) do |f|
-      ret += l until f.eof?
-    end
-    ret
+    IO.readlines(fn_for_offset(offset)).join
   end
 
   def start_offset; 0; end