Class: TMail::MaildirPort
- Includes:
- MailFlags
- Defined in:
- lib/gems/tmail-1.2.3.1/lib/tmail/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
254 255 256 257 258 |
# File 'lib/gems/tmail-1.2.3.1/lib/tmail/port.rb', line 254 def move_to_cur new = replace_dir(@filename, 'cur') File.rename @filename, new @filename = new end |
#move_to_new ⇒ Object
248 249 250 251 252 |
# File 'lib/gems/tmail-1.2.3.1/lib/tmail/port.rb', line 248 def move_to_new new = replace_dir(@filename, 'new') File.rename @filename, new @filename = new end |