diff options
author | Don Sanders <don.sanders@nokia.com> | 2012-04-04 14:47:58 +0300 |
---|---|---|
committer | Don Sanders <don.sanders@nokia.com> | 2012-04-04 14:49:28 +0300 |
commit | e24c0d1fa1ced608df2056d1215f56c30c234f75 (patch) | |
tree | b6bed40b404c5636a1b6f946761bda9ef74be606 | |
parent | 377d0d5b92bf96eff7b24d2749cd5749ef6f7c36 (diff) |
Fix QMailMessageMetaData::receivedDate().
Doc was buggy, and so was pop plugin setting of this field.
-rw-r--r-- | src/libraries/qmfclient/qmailmessage.cpp | 5 | ||||
-rw-r--r-- | src/plugins/messageservices/pop/popclient.cpp | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/libraries/qmfclient/qmailmessage.cpp b/src/libraries/qmfclient/qmailmessage.cpp index b0645f57..08a972f2 100644 --- a/src/libraries/qmfclient/qmailmessage.cpp +++ b/src/libraries/qmfclient/qmailmessage.cpp @@ -7119,7 +7119,8 @@ void QMailMessageMetaData::setDate(const QMailTimeStamp &timeStamp) } /*! - Returns the timestamp placed in the message during reception by the messageserver, if present; + Returns the timestamp when the message was recieved by the remote server, if known; + otherwise returns the timestamp contained in the origination date header field of the message, if present; otherwise returns an empty timestamp. */ QMailTimeStamp QMailMessageMetaData::receivedDate() const @@ -7128,7 +7129,7 @@ QMailTimeStamp QMailMessageMetaData::receivedDate() const } /*! - Sets the timestamp indicating the time of message reception by the messageserver to \a timeStamp. + Sets the timestamp indicating the time of message reception by the remote server to \a timeStamp. */ void QMailMessageMetaData::setReceivedDate(const QMailTimeStamp &timeStamp) { diff --git a/src/plugins/messageservices/pop/popclient.cpp b/src/plugins/messageservices/pop/popclient.cpp index d2771270..a7b9199d 100644 --- a/src/plugins/messageservices/pop/popclient.cpp +++ b/src/plugins/messageservices/pop/popclient.cpp @@ -1100,7 +1100,7 @@ void PopClient::createMail() } else { mail->setStatus(QMailMessage::Incoming, true); mail->setStatus(QMailMessage::New, true); - mail->setReceivedDate(QMailTimeStamp::currentDateTime()); + mail->setReceivedDate(mail->date()); } mail->setCustomField( "qmf-detached-filename", detachedFile ); |