instance method each_new_port

Ruby on Rails 2.2.3

Since v2.2.3 Last seen in v2.3.18

Available in: v2.2.3 v2.3.18

Signature

each_new_port( mtime = nil, &block )

old #each_mail returns Port def each_mail

each_port do |port|
  yield Mail.new(port)
end

end

Parameters

mtime opt = nil
block block
Source
# File actionmailer/lib/action_mailer/vendor/tmail-1.2.3/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

Defined in actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/mailbox.rb line 105 · View on GitHub · Improve this page · Find usages on GitHub

Defined in TMail::MhLoader

Type at least 2 characters to search.

↑↓ navigate · open · esc close