# File lib/tmail/mailbox.rb, line 61 def directory @dirname end
old #each_mail returns Port
def each_mail
each_port do |port| yield Mail.new(port) end
end
# File lib/tmail/mailbox.rb, line 105 def each_new_port( mtime = nil, &block ) mtime ||= @last_atime return each_port(&block) unless mtime return unless File.mtime(@dirname) >= mtime mail_files().each do |path| yield PORT_CLASS.new(path) if File.mtime(path) > mtime end @last_atime = Time.now end
# File lib/tmail/mailbox.rb, line 80 def each_port mail_files().each do |path| yield PORT_CLASS.new(path) end @last_atime = Time.now end
# File lib/tmail/mailbox.rb, line 69 def inspect "#<#{self.class} #{@dirname}>" end
# File lib/tmail/mailbox.rb, line 76 def new_port PORT_CLASS.new(next_file_name()) end
# File lib/tmail/mailbox.rb, line 89 def reverse_each_port mail_files().reverse_each do |path| yield PORT_CLASS.new(path) end @last_atime = Time.now end
Generated with the Darkfish Rdoc Generator 2.