James Antill wrote....
> michael@??? writes:
>
> > The following small patch adds a size suffix to the file name a la
> > Maildir++. Interestingly, message_size does not seem to include headers.
> > Is there an easy way to get full message size?
> >
> > A second patch that recognizes this suffix and uses it to avoid a stat()
> > would speed up Maildir quota calculation very much.
>
> You can't use it for quota because then you'll be putting trust in
> the values, and there is none.
> Unless you are have pop3/imap only accounts (but then the quota code
> is probably better in the imap/pop3 software anyway).
This sort of optomisation is only worth doing on a system which is
handling huge amounts of mail, which pretty much implies a sealed mail
server with pop/imap type access only. In that case you have to
delivery quotas in the MTA since thats the thing that delivers :-)
[The paranoid should also check quotas in the IMAP server since that
can upload messages]
Nigel.
--
[ - Opinions expressed are personal and may not be shared by VData - ]
[ Nigel Metheringham Nigel.Metheringham@??? ]
[ Phone: +44 1423 850000 Fax +44 1423 858866 ]