163 bool logged_in =
False;
172 bool log_pass =
False;
174 const MaxDebugLine = 2048;
559 nothing
setWarningQueue(
int warning_ms,
int warning_bs, Queue queue,
auto arg, timeout min_ms = 1s);
601 final disconnectIntern();
615 final hash statIntern();
622 final *
hash listIntern();
629 string readLine(timeout to);
637 final string getResponse();
645 final list getResponseMulti();
654 final string getResponseMultiStr();
673 final sendCommandIntern(
string str,
bool masked =
False);
680 final list sendCommandMulti(
string str);
687 final string sendCommandMultiStr(
string str);
694 final string sendCommand(
string str);
701 final string sendCommandMasked(
string str);
707 loginIntern(
string r);
726 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
class for POP3 connections; returns an object of class Pop3Client for receiving or polling for emails...
Definition: Pop3Client.qm.dox.h:739
const DefaultConnectTimeout
30 second connect timeout
Definition: Pop3Client.qm.dox.h:114
constructor(string name, string desc, string url, bool monitor, *hash opts, hash urlh)
creates the Pop3Connection object
This class provides the interface to POP3 servers and supports optional TLS/SSL encryption.
Definition: Pop3Client.qm.dox.h:130
nothing setWarningQueue(int warning_ms, int warning_bs, Queue queue, auto arg, timeout min_ms=1s)
Sets a Queue object to receive socket warnings.
*hash list()
returns a hash with message information from the "LIST" command (http://tools.ietf.org/html/rfc1939#page-6)
Pop3Client getImpl(bool connect=True, *hash rtopts)
returns a Pop3Client object
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()
static Pop3Connection make(string name, string desc, string url, bool monitor, *hash opts, hash urlh)
static 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
*hash getRuntimeOptions()
returns runtime options
string getType()
returns "pop3"
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:187
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:181
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:111
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:184