Method: IMAPClient.run

Defined in:
lib/imap_client.rb

.run(args = ARGV) ⇒ Object

Sets up an IMAPClient options then runs.



178
179
180
181
182
183
184
185
186
# File 'lib/imap_client.rb', line 178

def self.run(args = ARGV)
  options = process_args args
  client = new options
  client.run
rescue => e
  $stderr.puts "Failed to finish with exception: #{e.class}:#{e.message}"
  $stderr.puts "\t#{e.backtrace.join "\n\t"}"
  exit 1
end