
|
Mailbox Classes
The class to handle MH mailboxes.
Class Methods
new( dirname: String ) -> TMail::MhMailbox
-
creates new MhMailbox object.
dirname must be valid MH mailbox directory.
Instance Methods
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 -> Time
last_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::FilePort
-
creates a new file in the mailbox and returns its port.
close
-
does nothing.
The class to handle UNIX mbox.
Current implementation creates temporary MH mbox.
Class Methods
new( filename: String ) -> TMail::UNIXMbox
-
creates new TMail::UNIMbox object.
filename must be valid UNIX mbox file.
Instance Methods
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::FilePort
-
creates a new file in the mailbox and returns its port.
close
-
forces UNIXMbox to write back mails to real mbox file.
Once this method is called, any method calls causes to raise
IOError exception.
The class to handle "maildir" mailbox.
Class Methods
new( dirname: String ) -> TMail::Maildir
-
creates new TMail::Maildir object.
dirname must be valid maildir.
Instance Methods
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::FilePort
-
creates a new file in the mailbox and returns its port.
|