[kdepim-users] Updating Kmail folders outside of KMail

Martin Steigerwald martin at lichtvoll.de
Mon Jan 26 15:24:02 GMT 2015


Am Montag, 26. Januar 2015, 17:05:36 schrieb Peter:
> I have several KMail folders that have duplicate emails in them.
> Hundreds of emails. Rather than go through each one and try and compare
> the contents, to determine if deletion is required, I can use a few
> different methods to compare the contents, to find the duplicates.
> 
> Tools like fdupes or Beyond compare,etc.
> 
> However , I know from past experiences, that if I change a KMail folders
> contents, outside of KMail (file copy, remove,etc), it does not appear
> as it is on the hard drive.
> 
> No doubt it is the akonadi backend. Can I change a Kmail folder
> (content) and then issue some command to akonadi ?
> 
> Or, is it as simple as "Update folder" ?

I think Akonadi maildir resource puts Inotify watches on all directories 
to recognize changes there. Back then I did place some mails manually 
there and Akonadi picked it up immediately.

If you also use Baloo and have lots of subfolders, maybe Baloo has 
consumed all inotify watches up to the low kernel default limit and then 
you may need to raise it, like this:

merkaba:~> cat /etc/sysctl.d/inotify.conf 
# martin at merkaba:~> find -type d | wc -l
# 34515
#
# merkaba:/proc/sys/fs/inotify> cat max_user_watches 
# 8192

fs.inotify.max_user_watches = 200000

Basically inotify needs a watch for every folder to monitor, also every 
sub folder.

Ciao,
-- 
Martin 'Helios' Steigerwald - http://www.Lichtvoll.de
GPG: 03B0 0D6C 0040 0710 4AFA  B82F 991B EAAC A599 84C7
_______________________________________________
KDE PIM users mailing list
Subscription management: https://mail.kde.org/mailman/listinfo/kdepim-users



More information about the kdepim-users mailing list