Class: Redwood::SentLoader

Inherits:
MBox show all
Defined in:
lib/sup/sent.rb

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

Methods included from SerializeLabelsNicely

#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

#initializeSentLoader

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.exist? @filename
  super "mbox://" + @filename, true, $config[:archive_sent]
end

Instance Method Details

#default_labelsObject



54
# File 'lib/sup/sent.rb', line 54

def default_labels; []; end

#file_pathObject



47
# File 'lib/sup/sent.rb', line 47

def file_path; @filename end

#idObject



52
# File 'lib/sup/sent.rb', line 52

def id; 9998; end

#labelsObject



53
# File 'lib/sup/sent.rb', line 53

def labels; [:inbox, :sent]; end

#read?Boolean

Returns:

  • (Boolean)


55
# File 'lib/sup/sent.rb', line 55

def read?; true; end

#to_sObject



49
# File 'lib/sup/sent.rb', line 49

def to_s; 'sup://sent'; end

#uriObject



50
# File 'lib/sup/sent.rb', line 50

def uri; 'sup://sent' end