171 const POP3Port = 110;
174 const POP3SPort = 995;
177 const Protocols = ...;
181 const CtrlA = chr(1);
197 bool starttls = False;
208 bool logged_in = False;
214 timeout connectTimeout;
217 bool log_pass = False;
222 const MaxDebugLine = 2048;
673 nothing
setWarningQueue(
int warning_ms,
int warning_bs, Queue queue,
auto arg, timeout min_ms = 1s);
753 final disconnectIntern();
765 final hash statIntern();
771 final *hash<auto> listIntern();
777 string readLine(timeout to);
784 final string getResponse();
791 final list<string> getResponseMulti();
799 final string getResponseMultiStr();
804 log(
string msg, ...);
809 logError(
string msg, ...);
814 logDbg(
string msg, ...);
820 final sendCommandIntern(
string str, *
bool masked);
826 final list<string> sendCommandMulti(
string str, ...);
832 final string sendCommandMultiStr(
string str, ...);
838 final string sendCommand(
string str, ...);
844 final string sendCommandMasked(
string str, ...);
849 loginIntern(
string r);
854 doApopLogin(
string apop);
864 doSaslXoauth2Login();
880 forceDisconnectIntern();
nothing clearWarningQueue()
Removes any warning Queue object from the Socket.
del(list< auto > l)
Sends a "DELE" command to delete one or more messages on the server.
noquit(bool noquit)
Sets the "noquit" flag.
setConnectTimeout(timeout to)
sets the connect timeout
MailMessage::Message getMessage(string id)
Retrieves a particular mail message by its ID.
constructor(string url, *hash< auto > opts)
Creates the Pop3Client object.
connect()
Connect to the server with the connection parameters set in the constructor()
reset()
Send a "RSET" command to the POP3 server which will unmark messages marked for deletion.
setIoTimeout(timeout to)
sets the I/o timeout
*hash< auto > getMail()
returns a hash of mail messages keyed by message ID or NOTHING if no messages are available on the se...
destructor()
disconnects if connected and destroys the object
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)
tls(bool tls)
sets the TLS/SSL flag
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.
int getIoTimeoutMs()
returns the i/o timeout as an integer giving milliseconds
setEventQueue()
Removes any Queue object, prohibiting the collection of socket events.
hash< auto > getUsageInfo()
Returns performance statistics for the socket.
*hash< auto > list()
Returns a hash with message information from the "LIST" command.
bool isConnected()
return connection status
disconnect()
disconnect from the server
starttls(bool starttls)
sets the flag for using the "STLS" command after connecting
del(softstring msg)
Sends a "DELE" command to delete a single message on the server.
noop()
send a "NOOP" command to the POP3 server
hash< auto > stat()
Returns a hash with status information from the "STAT" command.
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...
clearStats()
Clears performance statistics.
string getTarget()
Returns the connection target string.
forceDisconnect()
force disconnect of socket without error
date getIoTimeoutDate()
returns the i/o timeout as a relative time value
class for POP3 connections; returns an object of class Pop3Client for receiving or polling for emails
Definition Pop3Client.qm.dox.h:893
constructor(hash< auto > config, *hash< auto > attr)
creates the Pop3Connection connection object
hash< ConnectionSchemeInfo > getConnectionSchemeInfoImpl()
Returns the ConnectionSchemeInfo hash for this object.
const ConnectionScheme
Connection entry info.
Definition Pop3Client.qm.dox.h:897
string getType()
returns "pop3"
constructor(string name, string description, string url, hash attributes={}, hash options={})
creates the Pop3Connection connection object
Pop3Client getImpl(bool connect=True, *hash< auto > rtopts)
returns a Pop3Client object
the main namespace for the Pop3Client module
Definition Pop3Client.qm.dox.h:132
const DefaultIoTimeout
15 second I/O timeout
Definition Pop3Client.qm.dox.h:134
const DefaultConnectTimeout
30 second connect timeout
Definition Pop3Client.qm.dox.h:137