Public constructor
| Parameters: |
|
|---|
Open connection to POP3 server
| Parameters: |
|
|---|---|
| Throws ExceptionRuntimeException: | |
| Return type: | string welcome message |
Send a request
| Parameters: | string – your request without newline |
|---|---|
| Throws ExceptionRuntimeException: | |
read a response
| Parameters: | bool – response has multiple lines and should be read until “<nl>.<nl>” |
|---|---|
| Throws ExceptionRuntimeException: | |
| Return type: | string response |
Send request and get response
| Parameters: |
|
|---|---|
| Return type: | string result from readResponse() |
End communication with POP3 server (also closes socket)
Get capabilities from POP3 server
| Return type: | array list of capabilities |
|---|
Login to POP3 server. Can use APOP
| Parameters: |
|
|---|
Make STAT call for message count and size sum
| Parameters: |
|
|---|
Make LIST call for size of message(s)
| Parameters: | int|null – number of message, null for all |
|---|---|
| Return type: | int|array size of given message or list with array(num => size) |
Make UIDL call for getting a uniqueid
| Parameters: | int|null – number of message, null for all |
|---|---|
| Return type: | string|array uniqueid of message or list with array(num => uniqueid) |
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 normal RETR call, which retrieves the whole message. Additional lines are not removed.
| Parameters: |
|
|---|---|
| Throws ExceptionRuntimeException: | |
| Throws ExceptionExceptionInterface: | |
| Return type: | string message headers with wanted body lines |
Make a RETR call for retrieving a full message with headers and body
| Parameters: | int – message number |
|---|---|
| Return type: | string message |
Make a NOOP call, maybe needed for keeping the server happy
Make a DELE count to remove a message
| Parameters: | $msgno – |
|---|
Make RSET call, which rollbacks delete requests