Class: TMail::MaildirPort
- Includes:
- MailFlags
- Defined in:
- lib/tmail-pure/port.rb
Instance Attribute Summary
Attributes inherited from FilePort
Instance Method Summary collapse
Methods included from MailFlags
#flagged=, #flagged?, #replied=, #replied?, #seen=, #seen?
Methods inherited from FilePort
#==, #aopen, #copy_to, #hash, #initialize, #inspect, #move_to, #read_all, #remove, #reproducible?, #ropen, #size, #wopen
Methods inherited from Port
Constructor Details
This class inherits a constructor from TMail::FilePort
Instance Method Details
#move_to_cur ⇒ Object
228 229 230 231 232 |
# File 'lib/tmail-pure/port.rb', line 228 def move_to_cur new = replace_dir(@path, 'cur') File.rename @path, new @path = new end |
#move_to_new ⇒ Object
222 223 224 225 226 |
# File 'lib/tmail-pure/port.rb', line 222 def move_to_new new = replace_dir(@path, 'new') File.rename @path, new @path = new end |