You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
localhost.login("username", "password") { |c| print c }
32
+
localhost.cmd("command") { |c| print c }
33
+
localhost.close
34
+
```
35
+
36
+
### Check a POP server to see if you have mail
37
+
38
+
```ruby
39
+
pop =Net::Telnet::new("Host" => "your_destination_host_here",
40
+
"Port" => 110,
41
+
"Telnetmode" => false,
42
+
"Prompt" => /^\+OK/n)
43
+
pop.cmd("user "+"your_username_here") { |c| print c }
44
+
pop.cmd("pass "+"your_password_here") { |c| print c }
45
+
pop.cmd("list") { |c| print c }
46
+
```
47
+
23
48
## Development
24
49
25
50
After checking out the repo, run `bin/setup` to install dependencies. Then, run `bin/console` for an interactive prompt that will allow you to experiment.
0 commit comments