[Exim] Maildirsize files: opinions sought

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Philip Hazel
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: [Exim] Maildirsize files: opinions sought
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

--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.