11 messages in net.sourceforge.lists.courier-usersRe: [courier-users] disk quotas
FromSent OnAttachments
Brian KolaciNov 3, 2000 8:08 am 
Brian KolaciNov 4, 2000 3:01 pm 
Michael Ju. TokarevNov 6, 2000 8:29 pm 
Leonid AndreevNov 7, 2000 10:21 am 
Leonid AndreevNov 7, 2000 3:00 pm 
Michael Ju. TokarevNov 7, 2000 3:44 pm 
Mike JacksonNov 8, 2000 4:41 am 
Mike JacksonNov 9, 2000 2:49 am 
Brian KolaciNov 10, 2000 4:38 am 
Brian KolaciNov 10, 2000 8:09 am 
Brian KolaciNov 13, 2000 7:43 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [courier-users] disk quotasActions...
From:Michael Ju. Tokarev (mj@tls.msk.ru)
Date:Nov 7, 2000 3:44:55 pm
List:net.sourceforge.lists.courier-users

Sam Varshavchik wrote:

On Tue, 7 Nov 2000, Michael Ju. Tokarev wrote:

Sam, one slightly-related note. As I can see, this cache file contains only mapping of messagefilename <=> uuid. Why not drop it at all, and use filename as it's uuid? I.e. when we see new/hostname.timestamp file, we'll move it to cur/nnnn;flags, where nnnn is a next message number. With this, the only thing that needs to be stored is last used message number, and this is in a very small file that can be written "atomically" (i.e. using only one write, guaranteed). I know that this is a "violation" of maildir format with that other programs that have access to new/ will "not work" (or well, courier will not work with them), and one will need to have a harder deal with locking. But I doesn't see any _real_ troubles here. Can you comment this approach?

The problem here occurs when you move a message from one folder to another. Maildir clients do not change the name of the name when they move messages between different folders, and it is quite easy to see the problem that this naming convention would have.

All courier-imap folders except of inbox are incompatible with almost all other maildir clients (especially shared folders but that's another story). So I see no reason on having a compatibility with other mail readers for any folders _except of inbox_. Yes, it isn't a good idea to have different format for different folders. But anyway, the "proposed maildir format" have some significant advantages so it can just replace "plain maildir" IMHO. Moreover, it may be ok to rename files in cur/ directory also (not only when moving from new/ to cur/) -- when courier used together with some other program to access maildir. Just see a message name and rename to next msgno (with possible preserved flags) if a name isn't numeric. This will break some e.g. pop3 clients that will see some messages twice (if pop3 daemon uses message name as an uidl), but even if both are true -- maildir accessed by courier _and_ some other software and if that other software uses filename as an uidl or something like this. Courier already comes with pop daemon -- for that, there is no conflicts since it uses the same code to access maildir. People may prefer to use other pop daemons (e.g. qmail-pop3d), but those can easily be patched. Also, as a last resort, if maildir isn't exported via nfs, one can modify LDA to use last message number as filename when initially creating file in tmp/&new/)...

Wooh... That to say is that in _most_ (not in all) cases this scheme will work out-of-the-box, and in some rest it is easy enouth to avoid. Sounds like a good think to try... :)

for handling such a folders, or at least some imap clients are -- my netscape loads folder summary (all message numbers with flags) very

Netscape should only load summary of new messages. Netscape shouldn't always request headers of every message when you open a folder -- it should cache that information.

As I said, NS loads folder summary only (numbers and flags). But IMAP protocol is "fat" here -- about 30..50 bytes for each message "* 137 FETCH (UID 555 FLAGS (\Seen))", so if there are many messages, this will require big network traffic (probably 10mbit ethernet is yesterday... ;)