Class: Redwood::SentLoader
Constant Summary
Constants inherited
from MBox
MBox::BREAK_RE
Instance Attribute Summary
Attributes inherited from Source
#usual
Instance Method Summary
collapse
Methods inherited from MBox
#each_raw_message_line, #first_new_message, #go_idle, is_break_line?, #is_source_for?, #last_indexed_message, #load_header, #load_message, #next_offset, #poll, #raw_header, #raw_message, #store_message, suggest_labels_for
#after_unmarshal!, #before_marshal
Methods inherited from Source
#==, #go_idle, #is_source_for?, #labels?, parse_raw_email_header, #poll, #supported_labels?, #synchronize, #try_lock, #unlock, #valid?
Constructor Details
Returns a new instance of SentLoader.
41
42
43
44
45
|
# File 'lib/sup/sent.rb', line 41
def initialize
@filename = Redwood::SENT_FN
File.open(@filename, "w") { } unless File.exists? @filename
super "mbox://" + @filename, true, $config[:archive_sent]
end
|
Instance Method Details
#default_labels ⇒ Object
54
|
# File 'lib/sup/sent.rb', line 54
def default_labels; []; end
|
#file_path ⇒ Object
47
|
# File 'lib/sup/sent.rb', line 47
def file_path; @filename end
|
52
|
# File 'lib/sup/sent.rb', line 52
def id; 9998; end
|
53
|
# File 'lib/sup/sent.rb', line 53
def labels; [:inbox, :sent]; end
|
#read? ⇒ Boolean
55
|
# File 'lib/sup/sent.rb', line 55
def read?; true; end
|
49
|
# File 'lib/sup/sent.rb', line 49
def to_s; 'sup://sent'; end
|
50
|
# File 'lib/sup/sent.rb', line 50
def uri; 'sup://sent' end
|