class TMail::MhMailbox The class to handle MH mailboxes.
new( dirname: String ) -> TMail::MhMailboxcreates new MhMailbox object. dirname must be valid MH mailbox directory.
each_port {|port: TMail::FilePort| ... }each {|port: TMail::FilePort| ... }iterates for each mail in the mailbox, in assendant order (older mail first).
reverse_each_port {|port: TMail::FilePort| ... }reverse_each {|port: TMail::FilePort| ... }iterates for each mail in the mailbox, in descendant order (newer mail first).
last_atime -> Timelast_atime=(t)time last each_new_port/each_port/reverse_each_port is called.
each_new_port( time: Time = last_atime() ) {|port| .... }iterates for each mails in mailbox, which are newer than time.
new_port -> TMail::FilePortcreates a new file in the mailbox and returns its port.
closedoes nothing.
class TMail::UNIXMbox The class to handle UNIX mbox. Current implementation creates temporary MH mbox.
new( filename: String ) -> TMail::UNIXMboxcreates new TMail::UNIMbox object. filename must be valid UNIX mbox file.
each_port {|port: TMail::FilePort| ... }each {|port: TMail::FilePort| ... }iterates for each mail in the mailbox, in assendant order (older mail first).
reverse_each_port {|port: TMail::FilePort| ... }reverse_each {|port: TMail::FilePort| ... }iterates for each mail in the mailbox, in descendant order (newer mail first).
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::FilePortcreates a new file in the mailbox and returns its port.
closeforces UNIXMbox to write back mails to real mbox file. Once this method is called, any method calls causes to raise IOError exception.
class TMail::Maildir The class to handle "maildir" mailbox.
new( dirname: String ) -> TMail::Maildircreates new TMail::Maildir object. dirname must be valid maildir.
each_port {|port: TMail::FilePort| ... }each {|port: TMail::FilePort| ... }iterates for each mail in the mailbox, in assendant order (older mail first).
reverse_each_port {|port: TMail::FilePort| ... }reverse_each {|port: TMail::FilePort| ... }iterates for each mail in the mailbox, in descendant order (newer mail first).
each_new_port {|port| .... }iterates for each mails in MAILDIR/new.
new_port -> TMail::FilePortcreates a new file in the mailbox and returns its port.