From: wmorgan Date: Tue, 9 Jan 2007 00:04:37 +0000 (+0000) Subject: overwrote uri, otherwise not recognized X-Git-Url: https://git.notmuchmail.org/git?a=commitdiff_plain;h=bc1cf3754c6c5baf43db64aed1f7f79c7df0300a;p=sup overwrote uri, otherwise not recognized git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@232 5c8cc53c-5e98-4d25-b20a-d8db53a31250 --- diff --git a/lib/sup/draft.rb b/lib/sup/draft.rb index 6ba7a47..2bed8fa 100644 --- a/lib/sup/draft.rb +++ b/lib/sup/draft.rb @@ -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]] } diff --git a/lib/sup/sent.rb b/lib/sup/sent.rb index 05b2f70..1a82a94 100644 --- a/lib/sup/sent.rb +++ b/lib/sup/sent.rb @@ -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