Re: [Exim] Maildirsize files: opinions sought

Top Page
Delete this message
Reply to this message
Author: jason
Date:  
To: exim-users
Subject: Re: [Exim] Maildirsize files: opinions sought
Philip

I have been running my own patch for maildir support for a little while now.
I have yet to move to 4.30 from 4.14 so can't comment on that particular
implementation. But from my own usage of Maildirs compatibility with
CourierIMAP is the most important thing. You can't have exim using one
policy and CourierIMAP using another. For good or bad CourierIMAP doesn't
count tmp so Exim should honour that. I agree with another poster that
support for an option to count the Trash folder should be included.

Also it is important that the actual quota values are checked every time a
message is delivered so that dynamic quota changes can happen, the
CourierMTA behaves in this way. I believe from messages on the list this
does not currently happen with exim. My particular setup uses a lookup from
LDAP for this in both Exim and CourierIMAP servers, so which ever server is
manipulating the Maildir they can both trigger a valid rebuild of the
maildirsize file if the Quota values change.

Compatibility between how Exim and CourierIMAP use this file is the most
important factor. My 2p worth.

Rgs
Jason

Jason Stratford
Altered Minds Limited

> Exim 4.30 was released with support for maildirsize files using some
> contributed code, which I didn't look at very closely, other than check
> that it seemed to work. There were a number of postings on the list
> about problems with maildirsize files.
>
> I have now got round to reading up about these beasts[*], and have
> decided to re-implement the code in my own inimitable style (the
> contributed code, mostly torn from somewhere else, has a lot of baggage
> not needed in Exim). Reading the description in
>
> http://www.inter7.com/courierimap/README.maildirquota.html
>
> raises some questions that I'd like people's opinions on.
>
> 1. It specifies that, when adding up the sizes of files to compute the
> size of a mailbox, only the contents of the "new" and "cur" directories
> should be counted, and *not* the "tmp" directory.
>
> 2. It also specifies that the contents of a maildirfolder called "Trash"
> should not be counted.
>
> Neither of these seem right to me. Surely you want to know how much disk
> is being used in the maildir, whatever the files are currently named?
>
> The existing code in Exim (when maildir_use_size_file is not set) just
> adds up the sizes of all the files. It seems to me that the same thing
> should happen when maildir_use_size_file *is* set.
>
> But maybe some of you disagree? As we don't use maildir round here, I
> don't have any actual experience to go on.
>
> Philip
>