Author: Eli Date: To: exim-users Subject: RE: [Exim] quota_warn_threshold specifics
Philip Hazel wrote: > On Wed, 23 Jun 2004, Eli wrote:
>
>> I guess you could do some trickery and rather than using the "quota"
>> variable to hold the users actual quota, use it to call a program to
>> compute the used disk space and compare against their actual quota,
>> and if they are over their quota, report a number less than the
>> incoming message thus having Exim think they're over their quota and
>> reject the message - BUT Exim would still go out and do it's own FS
>> check to find out how much space is currently used would it not?
>
> Yes, but you could do the whole thing without using "quota" at all.
> Just use a "condition" option on a redirect router that defers
> delivery if the quota is exceeded. It can have the quota screwed into
> the condition, or looked up from somewhere, and the disk usage
> obtained as previously discussed.
>
> True, this won't be deferred with the "quota exceeded" error, so a
> special retry won't be possible. But you could do your own "fail",
> conditional upon the value of $message_age if you wanted.
Ah, yes I guess that could be done :) I was looking for more of an
"official" way to do it rather than a kludge. It'd be nice to be able to
trigger the built in quota stuff (quota warn messages, etc...) without a
bunch of trickery. Worthy of a wishlist-ed item?
If I have time (and can figure it out), I'll even see about trying to make a
patch myself - no promises though ;P