172 bool starttls = False;
182 bool logged_in = False;
191 bool log_pass = False;
193 const MaxDebugLine = 2048;
199 const POP3Port = 110;
202 const POP3SPort = 995;
206 "pop3": {
"tls": False,
"port": POP3Port},
207 "pop3s": {
"tls": True,
"port": POP3SPort},
581 nothing
setWarningQueue(
int warning_ms,
int warning_bs, Queue queue,
auto arg, timeout min_ms = 1s);
655 final disconnectIntern();
667 final hash statIntern();
673 final *hash listIntern();
679 string readLine(timeout to);
686 final string getResponse();
693 final list getResponseMulti();
701 final string getResponseMultiStr();
717 final sendCommandIntern(
string str,
bool masked = False);
723 final list sendCommandMulti(
string str);
729 final string sendCommandMultiStr(
string str);
735 final string sendCommand(
string str);
741 final string sendCommandMasked(
string str);
746 loginIntern(
string r);
762 forceDisconnectIntern();
780 "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:775
hash< ConnectionSchemeInfo > getConnectionSchemeInfoImpl()
Returns the ConnectionSchemeInfo hash for this object.
const ConnectionScheme
Connection entry info.
Definition: Pop3Client.qm.dox.h:779
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:128
const DefaultConnectTimeout
30 second connect timeout
Definition: Pop3Client.qm.dox.h:133
const DefaultReadTimeout
15 second read timeout
Definition: Pop3Client.qm.dox.h:130