VMime
IMAPCommand Class Reference
Inheritance diagram for IMAPCommand:
Collaboration diagram for IMAPCommand:

Public Member Functions

virtual void send (shared_ptr< IMAPConnection > conn)
 
virtual const string getText () const
 
virtual const string getTraceText () const
 

Static Public Member Functions

static shared_ptr< IMAPCommandLOGIN (const string &username, const string &password)
 
static shared_ptr< IMAPCommandAUTHENTICATE (const string &mechName)
 
static shared_ptr< IMAPCommandAUTHENTICATE (const string &mechName, const string &initialResponse)
 
static shared_ptr< IMAPCommandLIST (const string &refName, const string &mailboxName)
 
static shared_ptr< IMAPCommandSELECT (const bool readOnly, const string &mailboxName, const std::vector< string > &params)
 
static shared_ptr< IMAPCommandSTATUS (const string &mailboxName, const std::vector< string > &attribs)
 
static shared_ptr< IMAPCommandCREATE (const string &mailboxName, const std::vector< string > &params)
 
static shared_ptr< IMAPCommandDELETE (const string &mailboxName)
 
static shared_ptr< IMAPCommandRENAME (const string &mailboxName, const string &newMailboxName)
 
static shared_ptr< IMAPCommandFETCH (const messageSet &msgs, const std::vector< string > &params)
 
static shared_ptr< IMAPCommandSTORE (const messageSet &msgs, const int mode, const std::vector< string > &flags)
 
static shared_ptr< IMAPCommandAPPEND (const string &mailboxName, const std::vector< string > &flags, vmime::datetime *date, const size_t size)
 
static shared_ptr< IMAPCommandCOPY (const messageSet &msgs, const string &mailboxName)
 
static shared_ptr< IMAPCommandSEARCH (const std::vector< string > &keys, const vmime::charset *charset)
 
static shared_ptr< IMAPCommandSTARTTLS ()
 
static shared_ptr< IMAPCommandCAPABILITY ()
 
static shared_ptr< IMAPCommandNOOP ()
 
static shared_ptr< IMAPCommandEXPUNGE ()
 
static shared_ptr< IMAPCommandCLOSE ()
 
static shared_ptr< IMAPCommandLOGOUT ()
 
static shared_ptr< IMAPCommandcreateCommand (const string &text, const string &traceText="")
 

Protected Member Functions

 IMAPCommand (const string &text, const string &traceText)
 
 IMAPCommand (const IMAPCommand &)
 
- Protected Member Functions inherited from object
 object ()
 
 object (const object &)
 
objectoperator= (const object &)
 
virtual ~object ()
 

Detailed Description

An IMAP command that will be sent to the server.

Constructor & Destructor Documentation

◆ IMAPCommand() [1/2]

IMAPCommand ( const string text,
const string traceText 
)
protected

◆ IMAPCommand() [2/2]

IMAPCommand ( const IMAPCommand )
protected

Member Function Documentation

◆ APPEND()

shared_ptr< IMAPCommand > APPEND ( const string mailboxName,
const std::vector< string > &  flags,
vmime::datetime date,
const size_t  size 
)
static

◆ AUTHENTICATE() [1/2]

shared_ptr< IMAPCommand > AUTHENTICATE ( const string mechName)
static

◆ AUTHENTICATE() [2/2]

shared_ptr< IMAPCommand > AUTHENTICATE ( const string mechName,
const string initialResponse 
)
static

◆ CAPABILITY()

shared_ptr< IMAPCommand > CAPABILITY ( )
static

◆ CLOSE()

shared_ptr< IMAPCommand > CLOSE ( )
static

◆ COPY()

shared_ptr< IMAPCommand > COPY ( const messageSet msgs,
const string mailboxName 
)
static

◆ CREATE()

shared_ptr< IMAPCommand > CREATE ( const string mailboxName,
const std::vector< string > &  params 
)
static

◆ createCommand()

shared_ptr< IMAPCommand > createCommand ( const string text,
const string traceText = "" 
)
static

◆ DELETE()

shared_ptr< IMAPCommand > DELETE ( const string mailboxName)
static

◆ EXPUNGE()

shared_ptr< IMAPCommand > EXPUNGE ( )
static

◆ FETCH()

shared_ptr< IMAPCommand > FETCH ( const messageSet msgs,
const std::vector< string > &  params 
)
static

◆ getText()

const string getText ( ) const
virtual

Returns the full text of the command, including command name and parameters (if any).

This is the text that will be sent to the server.

Returns
command text (eg. "LOGIN myusername mypassword")

◆ getTraceText()

const string getTraceText ( ) const
virtual

Returns the full text of the command, suitable for outputing to the tracer.

Returns
trace text (eg. "LOGIN {username} {password}")

◆ LIST()

shared_ptr< IMAPCommand > LIST ( const string refName,
const string mailboxName 
)
static

◆ LOGIN()

shared_ptr< IMAPCommand > LOGIN ( const string username,
const string password 
)
static

◆ LOGOUT()

shared_ptr< IMAPCommand > LOGOUT ( )
static

◆ NOOP()

shared_ptr< IMAPCommand > NOOP ( )
static

◆ RENAME()

shared_ptr< IMAPCommand > RENAME ( const string mailboxName,
const string newMailboxName 
)
static

◆ SEARCH()

shared_ptr< IMAPCommand > SEARCH ( const std::vector< string > &  keys,
const vmime::charset charset 
)
static

◆ SELECT()

shared_ptr< IMAPCommand > SELECT ( const bool  readOnly,
const string mailboxName,
const std::vector< string > &  params 
)
static

◆ send()

void send ( shared_ptr< IMAPConnection >  conn)
virtual

Sends this command over the specified connection.

Parameters
connconnection onto which the command will be sent

Referenced by IMAPFolder::addMessage().

◆ STARTTLS()

shared_ptr< IMAPCommand > STARTTLS ( )
static

◆ STATUS()

shared_ptr< IMAPCommand > STATUS ( const string mailboxName,
const std::vector< string > &  attribs 
)
static

◆ STORE()

shared_ptr< IMAPCommand > STORE ( const messageSet msgs,
const int  mode,
const std::vector< string > &  flags 
)
static

The documentation for this class was generated from the following files: