Logo Search packages:      
Sourcecode: mailody version File versions  Download package

void Mailody::Imaplib::saveMessage ( const QString &  mb,
const QString &  message,
const QString &  flags = QString::null 
)

Store message with the content message in the mb mailbox, flags can be used to set extra flags. \Seen is default and set always.

Definition at line 458 of file imaplib.cpp.

References rfcDecoder::toIMAP().

Referenced by Mailody::ImapManager::saveMessage().

{
    // kdDebug() << k_funcinfo << message << endl;
    const QString mb2 = rfcDecoder::toIMAP(mb);
    QString flagsformatted = "\\seen";
    if (!flags.isEmpty())
         flagsformatted += " " + flags;
    m_queue.append( Queue(Queue::SaveMessage, mb,
                    "APPEND \"" + mb2 + "\" (" + flagsformatted + ") {"
                            + QString::number(message.length())
                            + "}"));
    m_queue.append( Queue(Queue::SaveMessageData, mb, message));
}


Generated by  Doxygen 1.6.0   Back to index