151 bool logged_in =
False;
160 bool log_pass =
False;
162 const MaxDebugLine = 2048;
547 nothing
setWarningQueue(
int warning_ms,
int warning_bs, Queue queue, any arg, timeout min_ms = 1s);
587 final private disconnectIntern();
595 final private hash statIntern();
599 final private *
hash listIntern();
603 private string readLine(timeout to);
608 final private string getResponse();
613 final private list getResponseMulti();
619 final private string getResponseMultiStr();
622 private log(
string msg);
625 private logDbg(
string msg);
629 final private sendCommandIntern(
string str,
bool masked =
False);
633 final private list sendCommandMulti(
string str);
637 final private string sendCommandMultiStr(
string str);
641 final private string sendCommand(
string str);
645 final private string sendCommandMasked(
string str);
648 private loginIntern(
string r);
651 private doSSLIntern();
655 private connectIntern();
658 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:102
This class provides the interface to POP3 servers and supports optional TLS/SSL encryption.
Definition: Pop3Client.qm.dox.h:118
*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:175
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:169
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:99
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:172