Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
None
-
1.1.x
-
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".