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::Portcreates new file in mailbox and returns its port.
class TMail::MhLoader < TMail::Loaderthe class to handle MH mailbox.
new( dirname: String ) -< TMail::MhLoadercreates new MhLoader object. dirname must be valid MH mailbox directory.
class TMail::MboxLoader < TMail::Loaderthe class to handle UNIX mbox.
new( filename: String ) -< TMail::MboxLoadercreates new TMail::MboxLoader object. filename must be valid UNIX mbox file.
closeforces 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::Loaderthe class to handle "maildir" mailbox.
new( dirname: String ) -< TMail::MaildirLoadercreates new TMail::MaildirLoader object. dirname must be valid maildir.