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
Detailsnull|resource $_socket = ''socket to pop3
Detailsnull|string $_timestamp = ''greeting timestamp for apop
Detailsnull|bool $hasTop = 'null'saves if server supports top
Details__construct(
string $host, int|null $port
=
null, bool|string $ssl
=
false
)
:
Public constructor
Details__destruct(
)
:
Public destructor
Detailscapa(
)
:
arrayGet capabilities from POP3 server
Detailsconnect(
string $host, int|null $port
=
null, string|bool $ssl
=
false
)
:
stringOpen connection to POP3 server
Detailsdelete(
$msgno
)
:
nullMake a DELE count to remove a message
DetailsgetList(
int|null $msgno
=
null
)
:
int|arrayMake LIST call for size of message(s)
Detailslogin(
string $user, string $password, $tryApop
=
true
)
:
voidLogin to POP3 server. Can use APOP
Detailslogout(
)
:
nullEnd communication with POP3 server (also closes socket)
Detailsnoop(
)
:
nullMake a NOOP call, maybe needed for keeping the server happy
DetailsreadResponse(
boolean $multiline
=
false
)
:
stringread a response
Detailsrequest(
string $request, bool $multiline
=
false
)
:
stringSend request and get resposne
Detailsretrieve(
int $msgno
)
:
stringMake a RETR call for retrieving a full message with headers and body
Detailsretrive(
int $msgno
)
:
stringMake a RETR call for retrieving a full message with headers and body
DetailssendRequest(
string $request
)
:
nullSend a request
Detailsstatus(
int $messages, int $octets
)
:
voidMake STAT call for message count and size sum
Detailstop(
int $msgno, int $lines
=
0, bool $fallback
=
false
)
:
stringMake 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.
Detailsundelete(
)
:
nullMake RSET call, which rollbacks delete requests
Detailsuniqueid(
int|null $msgno
=
null
)
:
string|arrayMake UIDL call for getting a uniqueid
Details