Re: Updating Kmail folders outside of KMail
Peter <[email protected]>
| Newsgroups | gmane.comp.kde.users.pim |
|---|---|
| Message-ID | <1839610.oAEfZTTPil@asus64> |
On Mon, 26 Jan 2015 04:24:02 PM Martin Steigerwald wrote: > 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. I have found that adding a file manually (outside of KMail) results in the file showing up in the KMail folders, however if I change the content outside of KMail, it doesn't display the changes in KMail. From memory, even a reboot doesn't fix it. It's as though akonadi needs to refresh or similar ? > 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@merkaba:~> find -type d | wc -l > # 34515 > # > # merkaba:/proc/sys/fs/inotify> cat max_user_watches > # 8192 > > fs.inotify.max_user_watches = 200000 I don't (think) I use Baloo. I did try that command here and got a 'No such file or directory' > Basically inotify needs a watch for every folder to monitor, also every > sub folder. I have under ~Mail folder - 57,684 files and 2,336 sub-folders, a total of 2.7 Gb I don't know if file attachments are allowed in this mailing list, but I'll attach a file and see what happens. It shows 2 KMail directories, and you can see the duplicate emails, matched by CRC and filesize. If I simply delete the duplicate files on the RHS, will Kmail and akonadi be in synch after the changes ? I think so, it is only file removal. Peter ----------------------------------------- _______________________________________________ KDE PIM users mailing list Subscription management: https://mail.kde.org/mailman/listinfo/kdepim-users
beyond_compare1.png
(image/png, 39.8 KB) - not displayed