[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: KDEPIM ready to be more broadly tested



Am Mittwoch, 27. Juli 2016, 14:22:22 CEST schrieb Tim Ruehsen:
> On Wednesday, July 27, 2016 1:16:18 PM CEST Martin Steigerwald wrote:
> > Am Mittwoch, 27. Juli 2016, 10:36:36 CEST schrieb Tim Ruehsen:
> > > And just another thing to check:
> > > 
> > > In KMail under Accounts/Receiving I see "Local Folders" pointing to
> > > /usr/
> > > oms/.local/share/local-mail/, Archive hook if off.
> > > And I see "KMail Folder" pointing to /usr/oms/Mail, but doesn't show the
> > > Archive tab.
> > > 
> > > Is that correct  - do you have the same ?
> > > I am not sure what this 'Local Folders' is for... it always stays empty.
> > 
> > I don´t have any KMail Folder resource anymore, just plain Maildir
> > resource.
> It is just named "KMail Folders" - it is of course a Maildir resource.

Are you sure it is a Maildir resource? There was a resource in earlier contact 
which was a mixed maildir resource, allowing mbox files within a maildir 
structure – pretty cool if you ask me, for archiving mails, yet, not as well 
supported as the plain maildir resource.

> I have indexing / searching working now, but is was very spooky to get
> there... What I did:
> 
> I drag&drop'ped all folders from "KMail Folders" to "Local Folders" (my idea
> was to remove "KMail Folders" afterwards, thinking it was some kind of
> 'remnant' from upgrades). For a while it looked like it worked - all the
> folders/messages appeared in "Local Folders" - even indexed !

Well, on moving local folder basically Akonadi *copies* all mails into it into 
its cache and *then* in the destination folder. I proved this behavior in an 
upstream bug report with a local maildir resource:

[Akonadi] [Bug 364114] New: moving a folder within one maildir resource is 
extremely slow and inefficient
https://bugs.kde.org/364114

So I am not surprised that this may trigger indexing. However in my eyes while 
I somewhat tend to understand the technical design behind this from an user 
point of view this is completely broken behavior. As a user I´d expect: Move 
the local directory containing the folder, record the location in the 
database, done.

> But than, folders started to reappear in "KMail Folders". After a while I
> had all my emails twice (checked this via 'ls' in ~/Mail/ and
> ~/.local/share/ local-mail/). After another while all folder from "Local
> Folders" where gone... At least my emails are indexed now and searching
> works.

So that I think should not happen. But unlike me you transferred between two 
resources, I moved between the same resource – maybe thats somehow related.

> But I really transpired while fearing about my emails :-)

I understand that. I didn´t see any data loss in Akonadi since a long time 
however, so while some things in Akonadi may work strange to very strange, I 
didn´t see it delete any mails it should not.

> After moving the folders, the filter directories (I have ~120 filters)
> automatically changed to the new "Local Folder" directory. Pretty cool, I
> thought. Now that all folders where automagically moved back, the filter
> directories are at "Please select a folder".... nice stupid work for the
> afternoon to select 120 directories one by one.

I think that automagically moving back is a bug there. Feel free to research 
upstream bugtracker.

> I will have the same issue at home, on my second Sid installation. But now I
> know how to get indexing working - and I just have ~15 filters to work on
> :-)

Hm, I still think it should be more easy than that to get indexing working.

> Thanks for all your great hints & help and for your patience & time !

You are welcome. And my hand quite well again :)

Ciao,
-- 
Martin


Reply to: