Dekko2 && old mails



  • I was wondering why my free space in my UBphone went so law and one of the reasons is this:

    root@ubuntu-phablet:/home/phablet/.cache/dekko2.dekkoproject/mail# ls -lt | tail -5
    -rw------- 1 phablet phablet   6044 May 19  2019 1558278813.27281.UcGNf
    -rw------- 1 phablet phablet   3331 May 19  2019 1558278813.27281.WGFrA
    -rw------- 1 phablet phablet   7830 May 19  2019 1558278813.27281.xZpBz
    -rw------- 1 phablet phablet   9024 May 19  2019 1558278813.27281.Y46BJ
    -rw------- 1 phablet phablet  14128 May 19  2019 1558278813.27281.y9YBd
    root@ubuntu-phablet:/home/phablet/.cache/dekko2.dekkoproject/mail# du -sh .
    246M	.
    root@ubuntu-phablet:/home/phablet/.cache/dekko2.dekkoproject/mail# find . -type f | wc -l
    22217
    

    i.e. Dekko2 keeps some 22 thousands old mails there (I looked into some of them) which occupies around 246M.

    Can I just delete these files or will this cause some issue with some shadow database of Dekko2?

    Thx



  • Does Settings->Acoount->Manage Cache not work for you?
    I think dekko holds a table (in a database) of all mails (or parts of them in the cache) referencing those files. So you may delete the files, but the mails will stay in the message list in dekko and you'll then get a white page when clicking on the item in the message list instead of the content.



  • Thanks. I have to admit that I did not knew this (new?) feature. I have configured in Dekko2 three mail accounts and I cleared their cache now to the smalles backlog (one week). While this was running in the GUI (btw: there is no visible reaction on pressing the clear button and no progress meter), I ssh'ed to the device and run a for loop:

    phablet@ubuntu-phablet:~/.cache/dekko2.dekkoproject/mail$ while true ; do find . -type f | wc -l ; sleep 10 ; done
    2402
    2464
    2560
    2657
    2740
    2812
    2847
    2856
    2914
    3003
    ...
    

    The number of files went down from some 22000 to 3000, but why it's counting some times incrementing? A bit strange, isn't it? And on which date the backlog is counting backward? I have here an example of a file which originated from mid April, but the last modified date is of today:

    phablet@ubuntu-phablet:~/.cache/dekko2.dekkoproject/mail$ ls -l 1590987986.20456.47xC6
    -rw-rw-r-- 1 phablet phablet 6680 Jun  1 07:06 1590987986.20456.47xC6
    phablet@ubuntu-phablet:~/.cache/dekko2.dekkoproject/mail$ grep ^Date: 1590987986.20456.47xC6
    Date: Sat, 18 Apr 2020 15:09:09 +0000
    

    Why this old mail header file has been rewritten today?


Log in to reply