[Akonadi] [Bug 344937] New: Akonadi keeps multiple revisions of the same message in .local/share/akonadi/file_db_data

Jan K jprofesorek at o2.pl
Sat Mar 7 11:47:39 GMT 2015


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

            Bug ID: 344937
           Summary: Akonadi keeps multiple revisions of the same message
                    in .local/share/akonadi/file_db_data
           Product: Akonadi
           Version: 1.13.0
          Platform: Gentoo Packages
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: IMAP resource
          Assignee: chrigi_1 at fastmail.fm
          Reporter: jprofesorek at o2.pl
                CC: kdepim-bugs at kde.org, vkrause at kde.org

For some reason in .local/share/akonadi/file_db_data I can see multple copies
of the same message, e.g.,: 1983_r0 1983_r1 1983_r10 1983_r11 1983_r12 1983_r13
1983_r14 1983_r15 1983_r2 1983_r3 1983_r4 1983_r5 1983_r6 1983_r7 1983_r8
1983_r9
The files are identical (at least for cmp) and are single ordinary files.

That caused akonadi share folder to grow to some 7G!

I got no idea what caused this, I did some not-so-wise things to diagnose it,
and I still got no idea what causes that. 

I do have (and I want to) "keep local copies" checked in my IMAP config dialog,
but I wish one local copy for each message, not 16.

To work around this, I did:
===========
cd $HOME/.local/share/akonadi/file_db_data
ls -1 > /tmp/filellist
pushd /tmp
sort -n filellist | sed 's/_.*//' | uniq -c | awk '$1 > 1 {print $2}' > dups
popd
for x in `cat /tmp/dups`; do read f n <<< `echo ${x}_r*`; echo "$f : $n"; for y
in `echo $n`; do rm $y; ln $f $y; done; done
===========
This helped me to go from 
# /dev/mapper/vg_ssd-lv_jasiu         9,8G  9,3G  475M  96% /home
to
# /dev/mapper/vg_ssd-lv_jasiu         9,8G  2,7G  7,1G  28% /home

Has anyone an idea why did I end up with multiple copies? Is this true for
anyone, or just for me?


Reproducible: Always

-- 
You are receiving this mail because:
You are on the CC list for the bug.



More information about the Kdepim-bugs mailing list