<table><tr><td style="">gkowal created this revision.<br />gkowal added a reviewer: KDE PIM.<br />Restricted Application added a project: KDE PIM.<br />Restricted Application added a subscriber: kde-pim.<br />gkowal requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D14629">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>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.</p>
<p>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.</p>
<p>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.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R44 KDE PIM Runtime</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D14629">https://phabricator.kde.org/D14629</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>resources/imap/retrievecollectionmetadatatask.cpp</div></div></div><br /><div><strong>To: </strong>gkowal, KDE PIM<br /><strong>Cc: </strong>kde-pim, dvasin, rodsevich, winterz, vkrause, mlaurent, knauss, dvratil<br /></div>