Skip to content

Instantly share code, notes, and snippets.

@le0pard
Created September 22, 2015 20:37
Show Gist options
  • Select an option

  • Save le0pard/e2ee0fdf8738eb33f67b to your computer and use it in GitHub Desktop.

Select an option

Save le0pard/e2ee0fdf8738eb33f67b to your computer and use it in GitHub Desktop.
pop3 by ruby from mailtrap
2.2.0 :014 > s.puts "LIST\r"
=> nil
2.2.0 :015 > s.gets
=> "+OK 50 messages (4192565 octets)\r\n"
2.2.0 :016 > s.gets
=> "1 14181\r\n"
2.2.0 :017 > s.gets
=> "2 127\r\n"
2.2.0 :018 > s.gets
=> "3 127\r\n"
2.2.0 :019 > s.gets
=> "4 127\r\n"
2.2.0 :020 > s.gets
=> "5 127\r\n"
2.2.0 :021 > s.gets
=> "6 129\r\n"
2.2.0 :022 > s.gets
=> "7 127\r\n"
2.2.0 :023 > s.gets
=> "8 127\r\n"
2.2.0 :024 > s.gets
=> "9 793\r\n"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment