From: wmorgan Date: Fri, 2 Nov 2007 23:03:49 +0000 (+0000) Subject: bugfix: draft loader not being detected properly by bin/sup X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=e44cc656d525ad91a66aa503c349f0e887912837;p=sup 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 --- diff --git a/bin/sup b/bin/sup index 6eabf56..d9e542c 100644 --- 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 index d5d61ee..5db89fd 100644 --- 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