]> git.cworth.org Git - sup/blobdiff - lib/sup/draft.rb
don't downcase names before looking them up in the alias to person map, since keys...
[sup] / lib / sup / draft.rb
index 8d3c4a53f77548b7af11568aeb638de4523a4f49..21de1513a18a71330a8a3ce0679de68e69f86b8c 100644 (file)
@@ -36,7 +36,7 @@ class DraftManager
     raise ArgumentError, "not a draft: source id #{entry[:source_id].inspect}, should be #{DraftManager.source_id.inspect} for #{m.id.inspect} / docno #{docid}" unless entry[:source_id].to_i == DraftManager.source_id
     Index.drop_entry docid
     File.delete @source.fn_for_offset(entry[:source_info])
-    UpdateManager.relay self, :deleted, m
+    UpdateManager.relay self, :single_message_deleted, m
   end
 end
 
@@ -106,7 +106,7 @@ class DraftLoader < Source
   end
 
   def raw_message offset
-    IO.readlines(fn_for_offset(offset)).join
+    IO.read(fn_for_offset(offset))
   end
 
   def start_offset; 0; end