classes/CIMAP.cpp
void CIMAP::sendCommandAPPEND(const std::string &commandLine)
    {
        sendIMAPCommand(commandLine.substr(0, commandLine.find_first_of('}') + 1) + kEOL);
        waitForIMAPCommandResponse(kContinuation, m_commandResponse);
        if (!m_commandResponse.empty())
        {
            sendIMAPCommand(commandLine.substr(commandLine.find_first_of('}') + 1));
            waitForIMAPCommandResponse(m_currentTag, m_commandResponse);
        }
    }
//
// Send APPPEND command (requires a special handler). The command up to  including the octet string
// size has a "\r\n" appended and is sent. It then waits for a "+' where upon it sends the rest of the
// octet string and the waits for the final APPEND response.Any response that is empty signals a server
// disconnect so stop processing and pass up.
//

Send APPPEND command (requires a special handler). The command up to  including the octet string
size has a "\r\n" appended and is sent. It then waits for a "+' where upon it sends the rest of the
octet string and the waits for the final APPEND response.Any response that is empty signals a server
disconnect so stop processing and pass up.
Send APPPEND command ( requires a special handler ) . The command up to including the octet string size has a " \ r \ n " appended and is sent . It then waits for a " + ' where upon it sends the rest of the octet string and the waits for the final APPEND response . Any response that is empty signals a server disconnect so stop processing and pass up .
void CIMAP::sendCommandAPPEND(const std::string &commandLine)
    {
        sendIMAPCommand(commandLine.substr(0, commandLine.find_first_of('}') + 1) + kEOL);
        waitForIMAPCommandResponse(kContinuation, m_commandResponse);
        if (!m_commandResponse.empty())
        {
            sendIMAPCommand(commandLine.substr(commandLine.find_first_of('}') + 1));
            waitForIMAPCommandResponse(m_currentTag, m_commandResponse);
        }
    }
void CIMAP :: sendCommandAPPEND ( const std :: string & commandLine ) { sendIMAPCommand ( commandLine . substr ( 0 , commandLine . find_first_of ( ' ' ) + 1 ) + kEOL ) ; waitForIMAPCommandResponse ( kContinuation , m_commandResponse ) ; if ( ! m_commandResponse . empty ( ) ) { sendIMAPCommand ( commandLine . substr ( commandLine . find_first_of ( ' ' ) + 1 ) ) ; waitForIMAPCommandResponse ( m_currentTag , m_commandResponse ) ; } }
Send APPPEND command (requires a special handler).
Send APPPEND command ( requires a special handler ) .