]> git.notmuchmail.org Git - sup/commitdiff
overwrote uri, otherwise not recognized
authorwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Tue, 9 Jan 2007 00:04:37 +0000 (00:04 +0000)
committerwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Tue, 9 Jan 2007 00:04:37 +0000 (00:04 +0000)
git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@232 5c8cc53c-5e98-4d25-b20a-d8db53a31250

lib/sup/draft.rb
lib/sup/sent.rb

index 6ba7a47a737a8ffa9535eee4ede3c184bc1ae656..2bed8fa6f536b15ef28c5cf1e72f324bd20e5ef3 100644 (file)
@@ -48,6 +48,7 @@ class DraftLoader < Source
 
   def id; DraftManager.source_id; end
   def to_s; DraftManager.source_name; end
+  def uri; DraftManager.source_name; end
 
   def each
     Dir.entries(@dir).select { |x| x =~ /^\d+$/ }.sort_by { |x| x.to_i }.each { |id| yield [id, [:draft]] }
index 05b2f70c7bc5105ecda90560824f7945aa87ebd0..1a82a94a5d88c2a1c5751af134be811a2fe763a2 100644 (file)
@@ -36,6 +36,7 @@ class SentLoader < MBox::Loader
     super "mbox://" + filename, cur_offset, true, true
   end
 
+  def uri; SentManager.source_name; end
   def to_s; SentManager.source_name; end
   def id; SentManager.source_id; end
   def labels; [:sent, :inbox]; end