[Kde-pim] Maildir directory structure [Re: A sigh]

Anders Lund anders at alweb.dk
Sat Feb 11 16:59:52 GMT 2012


Lørdag den 11. februar 2012 18:17:50 Andras Mantia skrev:
> Anders Lund wrote:
> > Lørdag den 11. februar 2012 16:28:28 Kevin Krammer skrev:
> >> On Saturday, 2012-02-11, Anders Lund wrote:
> >> > In kmail 1 there was both visible and hidden subdirectories, some of
> >> > which had localized names. In kmail 2 ~/Mail (or wereever you store
> >> > your mail) is a joke - it is ALWAYS empty apart from empty cur, new and
> >> > tmp subdirectories.
> >> > 
> >> > Personally, I don't care much what the layout looks like, as long as
> >> > mail is stored where the user thinks, in my case indside ~/Mail, as
> >> > long as it is just functional inside kmail. This was true until kmail
> >> > 2, and it should be again.
> >> 
> >> That can't be quite accurate. The KMail folders resource was specifically
> >> designed to work with a KMail1 mail store directory and it does not move
> >> mails outside of that tree.
> >> 
> >> Thus is uses exactly the same on-disk layout KMail 1 did.
> > 
> > Well, that might have been the intention, but it does not appear to be the
> > reality.
> > 
> > When doing the switch from kmail1 to kmail2, I first archieved all my
> > folders in kmail1, moved ~/Mail away and recreated it by pointing a new
> > maildir akonadi resource there. After starting kmail 2, I imported all the
> > acrhieves. The result of that was that most of that mail (all that was
> > sucessfully imported) was moved into ~/.Mail.directory/<subfoldername>,
> > which is also where kmail2 stores new mail.
> 
> Please clarify this. So you had mail in ~/Mail in KMail1 and archived it.
> Then you removed the whole content of ~/Mail? And then you created a maildir
> resource and pointed to ~/Mail, right?
> And how did you import back the archives?

Using File->import in kmail, which  brings up kmailcvt. The archieves are zip 
files of the directories, the one containg my old inbox has the localized 
folder:

indbakke/
    cur/
         <lots of files named by nine ciphered numbers>
    new/
    tmp/

> My problem following this:
> - if I create a folder (eg. ~/MailFoo) and point a maildir resource to it,
> the content does not even appear in KMail, so I have no idea how could I
> import to it (this looks like a bug in itself)

I can't do that either, so that is defineately a bug. I did not try to use it 
though (like pointing a accounts storage to it).

> - I can see the content in akonadiconsole though, and if I create there a
> Bar folder, on the file system it will look like ~/MailFoo/Bar. Like you
> want.

It looks like that in kmail, for me no folders was created inside ~/Mail.

> - after restart now MailFoo appears in KMail. Now if I create a Foo2 inside
> Bar, i'll get~/MailFoo/.Bar.directory/Foo2. Again, just like in KMail1.
> - creating another toplevel Foo3 (under MailFoo) add ~/MailFoo/Foo3.
> Again as you expect.

See above.

> The problem you mention I saw only with the default created account under
> ~/.local/share.

My goal is to have my mail stored inside ~/Mail. So maybe I should try with 
another resource, but right now ~/Mail is taken by the broken resource.

Maybe I can rename it and change the akonadi configuration, if I can find some 
courage to change it, as it is mail is at least partially working.

Anders

_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/



More information about the kde-pim mailing list