commit e44cc656d525ad91a66aa503c349f0e887912837
parent 404c0b3858dcfa03da3e1fd59f5cde5a14da31f6
Author: wmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Date: Fri, 2 Nov 2007 23:03:49 +0000
bugfix: draft loader not being detected properly by bin/sup
git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@664 5c8cc53c-5e98-4d25-b20a-d8db53a31250
Diffstat:
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/bin/sup b/bin/sup
@@ -99,12 +99,14 @@ begin
if(s = Index.source_for DraftManager.source_name)
DraftManager.source = s
else
+ Redwood::log "no draft source, auto-adding..."
Index.add_source DraftManager.new_source
end
if(s = Index.source_for SentManager.source_name)
SentManager.source = s
else
+ Redwood::log "no sent mail source, auto-adding..."
Index.add_source SentManager.new_source
end
diff --git a/lib/sup/draft.rb b/lib/sup/draft.rb
@@ -47,7 +47,7 @@ class DraftLoader < Source
def initialize cur_offset=0
dir = Redwood::DRAFT_DIR
Dir.mkdir dir unless File.exists? dir
- super "draft://#{dir}", cur_offset, true, false
+ super DraftManager.source_name, cur_offset, true, false
@dir = dir
end