class IMAPProcessor::Mkdir

Creates folders in IMAP.

Attributes

sep[R]

Public Class Methods

new(options) click to toggle source
Calls superclass method IMAPProcessor::new
# File lib/imap_processor/mkdir.rb, line 13
def initialize(options)
  super

  @imap = connect.imap
end
process_args(args) click to toggle source
Calls superclass method IMAPProcessor::process_args
# File lib/imap_processor/mkdir.rb, line 9
def self.process_args(args)
  super __FILE__, args
end

Public Instance Methods

run() click to toggle source
# File lib/imap_processor/mkdir.rb, line 19
def run
  ARGV.each do |mailbox|
    create_mailbox mailbox
  end
end