Uploaded image for project: 'Qt Mobility'
  1. Qt Mobility
  2. QTMOBILITY-248

QMailRetrievalAction::retrieveMessageList() default "minimum" value returns no messages, in contradiction with documentation.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • None
    • 1.1.x
    • Messaging: QMF
    • None

    Description

      With

      QMailRetrievalAction::retrieveMessageList ( const QMailAccountId & accountId, const QMailFolderId & folderId, uint minimum = 0, const QMailMessageSortKey & sort = QMailMessageSortKey() )

      documentation says:

      "If minimum is non-zero, then that value will be used to restrict the number of messages to be retrieved from each folder; otherwise, all messages will be retrieved."

      Checking with GMail IMAP, when we pass a "0" "minimum" value or don't pass the parameter at all, using the default value, no messages are retrieved.

      Maybe it is working OK with POP but kind of think, after a quick look to the code, that here there are mixed "int" and "uint" types and defines. While the API uses "uint" with "0" as default meaning "ALL", in the internal code it is used "int" with "-1" meaning "ALL".

      Attachments

        Activity

          People

            sanders Don Sanders (closed Nokia identity) (Inactive)
            tanty Andres Gomez
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: