class Net::InternetMessageIO

def each_list_item

*library private* (cannot handle 'break')
def each_list_item
  while (str = readuntil("\r\n")) != ".\r\n"
    yield str.chop
  end
end