Class: TMail::MaildirPort

Inherits:
FilePort show all
Includes:
MailFlags
Defined in:
lib/gems/tmail-1.2.3.1/lib/tmail/port.rb

Instance Attribute Summary

Attributes inherited from FilePort

#filename

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

#reproducible?

Constructor Details

This class inherits a constructor from TMail::FilePort

Instance Method Details

#move_to_curObject



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_newObject



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