Class TMail::MaildirPort
In: lib/tmail/port.rb
Parent: FilePort

Methods

Included Modules

MailFlags

Constants

MAIL_FILE = /\A(\d+\.[\d_]+\.[^:]+)(?:\:(\d),(\w+)?)?\z/

Public Instance methods

[Source]

# File lib/tmail/port.rb, line 228
    def move_to_cur
      new = replace_dir(@path, 'cur')
      File.rename @path, new
      @path = new
    end

[Source]

# File lib/tmail/port.rb, line 222
    def move_to_new
      new = replace_dir(@path, 'new')
      File.rename @path, new
      @path = new
    end

[Validate]