[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kmail-devel
Subject:    Re: CIA proposal
From:       Karl-Heinz Zimmer <khz () kde ! org>
Date:       2003-07-25 7:50:26
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Friday 25 July 2003 08:30, Don Sanders wrote:
> On Friday 25 July 2003 00:15, Marc Mutz wrote:
(...)
> > New mail is delivered into the new/ subdir for maildir. The
> > first instance of KMail to close the folder or have a user
> > click on the new message will move the mails from new/ to
> > cur/, updating the index along the way.
> >
> > Of course, MUAs wishing to modify ~/Mail need to conform to
> > CIA/4, but maildir-compliant MDAs work without modifications.
>
> Ok, but what about the case of another (non-KMail) mail client
> moving mail from new/ to cur/ while KMail is not running. It
> seems to me that in this case the KMail index for that folder
> will be out of sync with the cur/ directory. And hence currently
> in the KMail code the index would be completely recreated,
> losing status information and causing new sernums for all
> messages in that folder to be assigned, hence invalidating all
> search folders.
>
> Wouldn't traditional integration with other maildir clients
> require being able to handle this situation without these
> detrimental affects?

I am not sure if my idea if bright or dumb, but: Could the way
how an index is regenerated be modified to allow either complete
re-creation (loosing all status infos) or careful rebuilding
while trying to preserve status information?

This would mean: KMail detects that the index has to be build
because mails were moved or deleted... and it does this by
checking every mail and its index entry: if both are there,
the flags could be moved into the new index file's entry.

As I wrote: It might be that this idea is not so wise...  :-)

Karl-Heinz
- -- 
Karl-Heinz Zimmer, Senior Software Engineer, Klarälvdalens Datakonsult AB
<mailto:khz@klaralvdalens-datakonsult.se>            <mailto:khz@kde.org>
 "For every complex problem there is an
  answer that is clear, simple, and wrong."  H. L. Mencken, 1880 - 1956
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE/IOFCCcaVnbvggDcRApPnAKDti1eYn6rRxg3rl9suybNM28ampwCg46Cf
BYhsxySMwQepI1Kl2FUHZeo=
=C02p
-----END PGP SIGNATURE-----

_______________________________________________
KMail Developers mailing list
kmail@mail.kde.org
http://mail.kde.org/mailman/listinfo/kmail

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic