NAME

Net::Telnet::Wrapper::Device::TCP::POP

DESCRIPTION

TCP::POP device class template.

This device class can be used to connect to POP3 servers and retrieve mails etc. via telnet.

Do not call this module directly.

DEVICE CLASS SPECIFIC PROCEDURES

Following device class specific procedures are defined. All commands can also be executed using the default cmd() command which is inherited from Net::Telnet.

pop_login user, pass

This procedure logs in to the POP3 server with the given username and password. Croaks if an error occurred.

get_count_messages

This procedure returns the number of messages for the POP3 account. It assumes that we are already logged in.

get_message id

Returns the first 10 lines of a message with a specifik id.

SUPPORTED MODES

CONNECT

SPECIFICS

- Net::Telnet is called with Telnetmode disabled
- Some custom procedures are defined
- close method overrides default method

AUTHOR

Maarten Wallraf <perl@2nms.com>