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
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