146 bool logged_in =
False;
155 bool log_pass =
False;
157 const MaxDebugLine = 2048;
542 nothing
setWarningQueue(
int warning_ms,
int warning_bs, Queue queue, any arg, timeout min_ms = 1s);
582 final private disconnectIntern();
590 final private hash statIntern();
594 final private *
hash listIntern();
598 private string readLine(timeout to);
603 final private string getResponse();
608 final private list getResponseMulti();
614 final private string getResponseMultiStr();
617 private log(
string msg);
620 private logDbg(
string msg);
624 final private sendCommandIntern(
string str,
bool masked =
False);
628 final private list sendCommandMulti(
string str);
632 final private string sendCommandMultiStr(
string str);
636 final private string sendCommand(
string str);
640 final private string sendCommandMasked(
string str);
643 private loginIntern(
string r);
646 private doSSLIntern();
650 private connectIntern();
653 private forceDisconnectIntern();
disconnect()
disconnect from the server
bool isConnected()
return connection status
setReadTimeout(timeout to)
sets the read timeout
bool starttls()
returns the "starttls" flag (RFC 2595)
int getConnectTimeoutMs()
returns the connect timeout as an integer giving milliseconds
nothing setWarningQueue(int warning_ms, int warning_bs, Queue queue, any arg, timeout min_ms=1s)
Sets a Queue object to receive socket warnings.
const DefaultConnectTimeout
30 second connect timeout
Definition: Pop3Client.qm.dox.h:97
This class provides the interface to POP3 servers and supports optional TLS/SSL encryption.
Definition: Pop3Client.qm.dox.h:113
*hash list()
returns a hash with message information from the "LIST" command (http://tools.ietf.org/html/rfc1939#page-6)
forceDisconnect()
force disconnect of socket without error
del(softstring msg)
sends a "DELE" command (http://tools.ietf.org/html/rfc1939#page-8) to the POP3 server to mark the giv...
bool logPassword()
returns the log password flag
nothing clearWarningQueue()
Removes any warning Queue object from the Socket.
hash getUsageInfo()
Returns performance statistics for the socket.
connect()
Connect to the server with the connection parameters set in the constructor()
int getReadTimeoutMs()
returns the read timeout as an integer giving milliseconds
*hash getMail()
returns a hash of mail messages keyed by message ID or NOTHING if no messages are available on the se...
bool noquit()
return the "noquit" flag; if this flag is True, then no "QUIT" command is sent to the POP3 server whe...
setConnectTimeout(timeout to)
sets the connect timeout
noop()
send a "NOOP" command (http://tools.ietf.org/html/rfc1939#page-9) to the POP3 server ...
const Protocols
accepted protocols
Definition: Pop3Client.qm.dox.h:170
hash stat()
returns a hash with status information from the "STAT" command (http://tools.ietf.org/html/rfc1939#page-6)
const POP3Port
default POP3 port
Definition: Pop3Client.qm.dox.h:164
clearStats()
Clears performance statistics.
date getReadTimeoutDate()
returns the read timeout as a relative time value
date getConnectTimeoutDate()
returns the connect timeout as a relative time value
constructor(string url, *code log, *code dbglog)
creates the Pop3Client object
const DefaultReadTimeout
15 second read timeout
Definition: Pop3Client.qm.dox.h:94
reset()
send a "RSET" command (http://tools.ietf.org/html/rfc1939#page-9) to the POP3 server which will unmar...
bool tls()
returns the TLS/SSL flag
destructor()
disconnects if connected and destroys the object
const POP3SPort
default POP3S port
Definition: Pop3Client.qm.dox.h:167