D14629: Process IMAP Quota roots with associated quotas only

Grzegorz Kowal noreply at phabricator.kde.org
Sun Aug 5 17:08:08 BST 2018


gkowal created this revision.
gkowal added a reviewer: KDE PIM.
Restricted Application added a project: KDE PIM.
Restricted Application added a subscriber: kde-pim.
gkowal requested review of this revision.

REVISION SUMMARY
  According to IMAP4 QUOTA extension (RFC2087) each mailbox may have zero or more quota roots, and each quota root may have zero or more resource limits (quotas). It means that depending on implementation QUOTAROOT command may return some roots with no corresponding QUOTA responses. Such roots simply have no limitations of resource. Moreover, the RFC explains that quota root names do not have to match the names of existing mailboxes.
  
  This commit tries to make the IMAP Quota roots retrieval more conformant with RFC2087. It processes all quota roots returned by QUOTAROOT command and filters out roots with no corresponding QUOTA responses. As previously, it sets newCurrent and newMax variables from the root which matches the mailbox name, however, it uses the first existing QUOTA response for a given mailbox otherwise.
  
  This change guarantees that lists newRoots, newLimits, and newUsage always have the same number of elements and that newCurrent and newMax values are retrieved even for mailboxes with multiple roots.

REPOSITORY
  R44 KDE PIM Runtime

REVISION DETAIL
  https://phabricator.kde.org/D14629

AFFECTED FILES
  resources/imap/retrievecollectionmetadatatask.cpp

To: gkowal, #kde_pim
Cc: kde-pim, dvasin, rodsevich, winterz, vkrause, mlaurent, knauss, dvratil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20180805/80bd1ebf/attachment.html>


More information about the kde-pim mailing list