173        bool starttls = False;
 
  183        bool logged_in = False;
 
  192        bool log_pass = False;
 
  194        const MaxDebugLine = 2048;
 
  200        const POP3Port = 110;
 
  203        const POP3SPort = 995;
 
  207            "pop3": {
"tls": False, 
"port": POP3Port},
 
  208            "pop3s": {
"tls": True, 
"port": POP3SPort},
 
  582    nothing 
setWarningQueue(
int warning_ms, 
int warning_bs, Queue queue, 
auto arg, timeout min_ms = 1s);
 
  656    final  disconnectIntern();
 
  668    final  hash statIntern();
 
  674    final  *hash listIntern();
 
  680     string readLine(timeout to);
 
  687    final  string getResponse();
 
  694    final  list getResponseMulti();
 
  702    final  string getResponseMultiStr();
 
  718    final  sendCommandIntern(
string str, 
bool masked = False);
 
  724    final  list sendCommandMulti(
string str);
 
  730    final  string sendCommandMultiStr(
string str);
 
  736    final  string sendCommand(
string str);
 
  742    final  string sendCommandMasked(
string str);
 
  747     loginIntern(
string r);
 
  763     forceDisconnectIntern();
 
  781            "cls": Class::forName(
"Pop3Connection"),
 
nothing clearWarningQueue()
Removes any warning Queue object from the Socket.
 
del(list l)
sends a "DELE" command (http://tools.ietf.org/html/rfc1939#page-8) to the POP3 server to mark the giv...
 
setConnectTimeout(timeout to)
sets the connect timeout
 
connect()
Connect to the server with the connection parameters set in the constructor()
 
reset()
send a "RSET" command (http://tools.ietf.org/html/rfc1939#page-9) to the POP3 server which will unmar...
 
noquit(bool n_noquit)
sets the "noquit" flag
 
starttls(bool n_starttls)
sets the flag for using the "STLS" command after connecting (RFC 2595); this is only used if the TLS/...
 
destructor()
disconnects if connected and destroys the object
 
setReadTimeout(timeout to)
sets the read timeout
 
setEventQueue(Qore::Thread::Queue queue, auto arg, *bool with_data)
Sets a Queue object to receive socket events.
 
bool tls()
returns the TLS/SSL flag
 
bool starttls()
returns the "starttls" flag (RFC 2595)
 
logPassword(bool pwd)
log password
 
int getConnectTimeoutMs()
returns the connect timeout as an integer giving milliseconds
 
nothing setWarningQueue(int warning_ms, int warning_bs, Queue queue, auto arg, timeout min_ms=1s)
Sets a Queue object to receive socket warnings.
 
setEventQueue()
Removes any Queue object so that socket events are no longer added to the Queue.
 
hash< auto > getUsageInfo()
Returns performance statistics for the socket.
 
*hash list()
returns a hash with message information from the "LIST" command (http://tools.ietf....
 
constructor(string url, *code log, *code dbglog)
creates the Pop3Client object
 
hash stat()
returns a hash with status information from the "STAT" command (http://tools.ietf....
 
bool isConnected()
return connection status
 
disconnect()
disconnect from the server
 
tls(bool n_tls)
sets the TLS/SSL flag
 
del(softstring msg)
sends a "DELE" command (http://tools.ietf.org/html/rfc1939#page-8) to the POP3 server to mark the giv...
 
noop()
send a "NOOP" command (http://tools.ietf.org/html/rfc1939#page-9) to the POP3 server
 
date getConnectTimeoutDate()
returns the connect timeout as a relative time value
 
bool logPassword()
returns the log password flag
 
bool noquit()
return the "noquit" flag; if this flag is True, then no "QUIT" command is sent to the POP3 server whe...
 
date getReadTimeoutDate()
returns the read timeout as a relative time value
 
clearStats()
Clears performance statistics.
 
*hash getMail()
returns a hash of mail messages keyed by message ID or NOTHING if no messages are available on the se...
 
string getTarget()
Returns the connection target string.
 
forceDisconnect()
force disconnect of socket without error
 
int getReadTimeoutMs()
returns the read 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:776
 
hash< ConnectionSchemeInfo > getConnectionSchemeInfoImpl()
Returns the ConnectionSchemeInfo hash for this object.
 
const ConnectionScheme
Connection entry info.
Definition: Pop3Client.qm.dox.h:780
 
string getType()
returns "pop3"
 
*hash< auto > getRuntimeOptions()
returns runtime options
 
Pop3Client getImpl(bool connect=True, *hash rtopts)
returns a Pop3Client object
 
constructor(string name, string description, string url, hash attributes={}, hash options={})
creates the RestConnection connection object
 
the main namespace for the Pop3Client module
Definition: Pop3Client.qm.dox.h:129
 
const DefaultConnectTimeout
30 second connect timeout
Definition: Pop3Client.qm.dox.h:134
 
const DefaultReadTimeout
15 second read timeout
Definition: Pop3Client.qm.dox.h:131