class TMail::Loader
each_port {|port| ... }
each {|port| ... }
iterates for each mail in mailbox. PORT is a TMail::Port object.
each_new_port( time: Time = @last_loaded_time ) {|port| .... }
iterates for each mails in mailbox, which are newer than time. @last_loaded_time is updated when each_new_port/each_port is called.
new_port
-< TMail::Port
creates new file in mailbox and returns its port.
class TMail::MhLoader < TMail::Loader
the class to handle MH mailbox.
new( dirname: String )
-< TMail::MhLoader
creates new MhLoader object. dirname must be valid MH mailbox directory.
class TMail::MboxLoader < TMail::Loader
the class to handle UNIX mbox.
new( filename: String )
-< TMail::MboxLoader
creates new TMail::MboxLoader object. filename must be valid UNIX mbox file.
close
forces MboxLoader to write back mails to real mbox file. Once this method is called, any method calls causes to raise IOError exception.
class TMail::MaildirLoader < TMail::Loader
the class to handle "maildir" mailbox.
new( dirname: String )
-< TMail::MaildirLoader
creates new TMail::MaildirLoader object. dirname must be valid maildir.