Class: IMAPProcessor::Mkdir
- Inherits:
-
IMAPProcessor
- Object
- IMAPProcessor
- IMAPProcessor::Mkdir
- Defined in:
- lib/imap_processor/mkdir.rb
Overview
Creates folders in IMAP.
Constant Summary
Constants inherited from IMAPProcessor
Instance Attribute Summary collapse
-
#sep ⇒ Object
readonly
Returns the value of attribute sep.
Attributes inherited from IMAPProcessor
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(options) ⇒ Mkdir
constructor
A new instance of Mkdir.
- #run ⇒ Object
Methods inherited from IMAPProcessor
add_move, #capability, #connect, #create_mailbox, #delete_messages, #each_message, #each_part, #log, #mime_parts, #move_messages, #noop?, run, #show_messages, #verbose?
Constructor Details
#initialize(options) ⇒ Mkdir
Returns a new instance of Mkdir.
13 14 15 16 17 |
# File 'lib/imap_processor/mkdir.rb', line 13 def initialize() super @imap = connect.imap end |
Instance Attribute Details
#sep ⇒ Object (readonly)
Returns the value of attribute sep.
7 8 9 |
# File 'lib/imap_processor/mkdir.rb', line 7 def sep @sep end |
Class Method Details
.process_args(args) ⇒ Object
9 10 11 |
# File 'lib/imap_processor/mkdir.rb', line 9 def self.process_args(args) super __FILE__, args end |
Instance Method Details
#run ⇒ Object
19 20 21 22 23 |
# File 'lib/imap_processor/mkdir.rb', line 19 def run ARGV.each do |mailbox| create_mailbox mailbox end end |