Difference between revisions of "Chewie71-Notes"

Line 1: Line 1:
{{{
+
== Headline text ==
#selectMailbox
+
 
def sm(user)
+
 
  $cmdin.puts("sm #{user}")
+
 
  $cmdout.each do |line|
+
#selectMailbox
    if line.include?("mailbox:")
+
def sm(user)
      return
+
  $cmdin.puts("sm #{user}")
    elsif line.include?("NO_SUCH_ACCOUNT")
+
  $cmdout.each do |line|
      $logger.fatal(line)
+
    if line.include?("mailbox:")
      puts "EXITING:: #{line}"
+
      return
      exit
+
    elsif line.include?("NO_SUCH_ACCOUNT")
    else
+
      $logger.fatal(line)
      $logger.fatal(line)
+
      puts "EXITING:: #{line}"
      puts "UNKNOWN ERROR: #{line}"
+
      exit
      exit
+
    else
    end
+
      $logger.fatal(line)
  end
+
      puts "UNKNOWN ERROR: #{line}"
end
+
      exit
}}}
+
    end
 +
  end
 +
end

Revision as of 04:16, 23 August 2008

Headline text

#selectMailbox
def sm(user)
  $cmdin.puts("sm #{user}")
  $cmdout.each do |line|
    if line.include?("mailbox:")
      return
    elsif line.include?("NO_SUCH_ACCOUNT")
      $logger.fatal(line)
      puts "EXITING:: #{line}"
      exit
    else
      $logger.fatal(line)
      puts "UNKNOWN ERROR: #{line}"
      exit
    end
  end
end
Jump to: navigation, search