Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
TIMEOUT_CONNECTION = '30'
Default timeout in seconds for initiating session
null|resource $_socket = ''
socket to pop3
null|string $_timestamp = ''
greeting timestamp for apop
null|bool $hasTop = 'null'
saves if server supports top
__construct(
string $host, int|null $port
=
null, bool|string $ssl
=
false
)
:
Public constructor
__destruct(
)
:
Public destructor
capa(
)
:
array
Get capabilities from POP3 server
connect(
string $host, int|null $port
=
null, string|bool $ssl
=
false
)
:
string
Open connection to POP3 server
delete(
$msgno
)
:
null
Make a DELE count to remove a message
getList(
int|null $msgno
=
null
)
:
int|array
Make LIST call for size of message(s)
login(
string $user, string $password, $tryApop
=
true
)
:
void
Login to POP3 server. Can use APOP
logout(
)
:
null
End communication with POP3 server (also closes socket)
noop(
)
:
null
Make a NOOP call, maybe needed for keeping the server happy
readResponse(
boolean $multiline
=
false
)
:
string
read a response
request(
string $request, bool $multiline
=
false
)
:
string
Send request and get resposne
retrieve(
int $msgno
)
:
string
Make a RETR call for retrieving a full message with headers and body
retrive(
int $msgno
)
:
string
Make a RETR call for retrieving a full message with headers and body
sendRequest(
string $request
)
:
null
Send a request
status(
int $messages, int $octets
)
:
void
Make STAT call for message count and size sum
top(
int $msgno, int $lines
=
0, bool $fallback
=
false
)
:
string
Make TOP call for getting headers and maybe some body lines This method also sets hasTop - before it it's not known if top is supported
The fallback makes normale RETR call, which retrieves the whole message. Additional lines are not removed.
undelete(
)
:
null
Make RSET call, which rollbacks delete requests
uniqueid(
int|null $msgno
=
null
)
:
string|array
Make UIDL call for getting a uniqueid