[kmail2] [Bug 440524] Expiry settings not holding

Thiago Macieira bugzilla_noreply at kde.org
Mon Aug 2 19:25:04 BST 2021


https://bugs.kde.org/show_bug.cgi?id=440524

--- Comment #6 from Thiago Macieira <thiago at kde.org> ---
(In reply to Thiago Macieira from comment #5)
> MariaDB [akonadi]> select type, hex(value) from collectionattributetable
> where type='expirationcollectionattribute';
> +-------------------------------+--------------------------------------------
> ------------------+
> | type                          | hex(value)                                
> |
> +-------------------------------+--------------------------------------------
> ------------------+
> | expirationcollectionattribute |
> FFFFFFFFFFFFFFFF000000000000000100000078000000000000001E0100 |
> | expirationcollectionattribute |
> FFFFFFFFFFFFFFFF00000000000000010000016D000000000000001E0100 |
> | expirationcollectionattribute |
> 00000000000000F500000001000000010000001E000000000000001E0100 |
> | expirationcollectionattribute |
> 00000000000000F6000000010000000100000015000000000000001E0100 |
> +-------------------------------+--------------------------------------------
> ------------------+
> 4 rows in set (0.001 sec)

Given:

QByteArray ExpireCollectionAttribute::serialized() const
{
    QByteArray result;
    QDataStream s(&result, QIODevice::WriteOnly);

    s << mExpireToFolderId;
    s << (int)mExpireAction;
    s << (int)mReadExpireUnits;
    s << mReadExpireAge;
    s << (int)mUnreadExpireUnits;
    s << mUnreadExpireAge;
    s << mExpireMessages;

    return result;
}

Decode as:
                       Read messages   Unread mesgs
FolderId    Action    Units   ReadAge  Units   Age   ExpireMessages
-1          0         1       120      0       30    true
-1          0         1       365      0       30    true
245         1         1       30       0       30    true
246         1         1       21       0       30    true

So I have 4 folders with expiry settings. Two of them delete (target folder ID
is -1) and two of them move to another folder.

The settings appear to be correct. This is indeed what I had configured.

But the settings page is not reloading the settings.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Kdepim-bugs mailing list