lib/sup/sent.rb in sup-0.0.8 vs lib/sup/sent.rb in sup-0.1

- old
+ new

@@ -28,20 +28,22 @@ end end end class SentLoader < MBox::Loader + yaml_properties :cur_offset + def initialize cur_offset=0 - filename = Redwood::SENT_FN - File.open(filename, "w") { } unless File.exists? filename - super "mbox://" + filename, cur_offset, true, true + @filename = Redwood::SENT_FN + File.open(@filename, "w") { } unless File.exists? @filename + super "mbox://" + @filename, cur_offset, true, true end + def file_path; @filename 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 end - -Redwood::register_yaml(SentLoader, %w(cur_offset)) end