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 6, 2000 8:29:05 pm
List:net.sourceforge.lists.courier-users

Sam Varshavchik wrote:

[]

Well, temporary files have to be created when a folder is synchronized.

It appears a cache file needs to be created before anyone can even see/read any mail in their INBOX so they can delete & expunge it.

Correct. I see no immediate solutions.

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?

BTW, one more thing about maildir "format". Is it ok to have cur directory hashed, like e.g. spool in squid? Don't know real advantages of this, but at least one comes to mind -- server will not need to rescan the whole directory if it losts a message (in case of changed flags), but only one hashed subdir (hash by message number). I now have about 4000 messages average in my folders that are handled by courier-imapd. For now, system handles this well. Maybe if there will be more messages, I'll try to use e.g. reiserfs (all of this on linux) if access will be slow. But I'm not shure if imap protocol is sutable for handling such a folders, or at least some imap clients are -- my netscape loads folder summary (all message numbers with flags) very often, and most of the time system spend sending/receiving that data over network... (sorry for "thread offtopic" -- all this completely irrelevant for quotas).

Regards, Michael.