Sha256: d1f10f67526e2304c3fa128add03d49b8a50a4adc6d872feedb9963ea68e21bf

Contents?: true

Size: 336 Bytes

Versions: 5

Compression:

Stored size: 336 Bytes

Contents

require 'imap_processor'

##
# Creates folders in IMAP.

class IMAPProcessor::Mkdir < IMAPProcessor
  attr_reader :sep

  def self.process_args(args)
    super __FILE__, args
  end

  def initialize(options)
    super

    @imap = connect.imap
  end

  def run
    ARGV.each do |mailbox|
      create_mailbox mailbox
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
imap_processor-1.8.1 lib/imap_processor/mkdir.rb
imap_processor-1.8.0 lib/imap_processor/mkdir.rb
imap_processor-1.7 lib/imap_processor/mkdir.rb
imap_processor-1.6 lib/imap_processor/mkdir.rb
imap_processor-1.5 lib/imap_processor/mkdir.rb