Jeff Hayward [mailto:[EMAIL PROTECTED]] wrote:
> Forgive my ignorance of this IMAP issue, but does the IMAP spec
> permit a mail message to be modified (excluding flags) without
> assigning it a new UID? If not, there is no need for stat as long
> as the maildir file name changes.
Hey, you are right!
I don't know much about the nitty-gritty details of the IMAP protocol, so I
just did a test. I'm using Outloook 98 as my IMAP client, and the server is the
latest RPM available from www.davideous.com/imap-maildir/
I setup a maildir with one message:
$ md5sum `find Maildir -type f`
b862d13ec755ade64c204f83ca994e48
Maildir/cur/934827988.10150.hobbes.drh.net:2,S
d41d8cd98f00b204e9800998ecf8427e Maildir/.uidvalidity
Then modified that message and saved the changes, and this is how the maildir
looked:
$ md5sum `find Maildir -type f`
b862d13ec755ade64c204f83ca994e48
Maildir/cur/934827988.10150.hobbes.drh.net:2,ST
c2784ffaa223c6fab44e64108a5c0536
Maildir/cur/934842373.15905.000000000.hobbes.drh.net:2,S
d41d8cd98f00b204e9800998ecf8427e Maildir/.uidvalidity
So, I think we are guaranteed at least the IMAP client will not go changing
the messages without changing their name.
In my mind, this makes an IMAP server with a side-by-side database a real
possibility. Any thoughts?
- David Harris
Principal Engineer, DRH Internet Services