Re: [exim] Quota Limits - Setting Greater Amounts

Pàgina inicial
Delete this message
Reply to this message
Autor: Todd Lyons
Data:  
A: Brian Spraker
CC: exim-users
Assumpte: Re: [exim] Quota Limits - Setting Greater Amounts
On Thu, May 17, 2012 at 6:15 PM, Todd Lyons <tlyons@???> wrote:
>> I just have a few users that complain that they don't get the notice their mailbox is at 90% capacity and don't know that e-mails are bouncing because they have reached their limit.
> You have quota_is_inclusive = false.  The only thing I can conceive
> that may be an issue is that one message comes in when it's at 89% or
> less, and that one message is bigger than the 11% remaining.  The
> message gets delivered and the account is over-quota, but the warning
> message never got generated because the state of the mailbox never was
> in the range of 90-99%, where it would be detected and the warning
> message generated.  I've not yet evaluated whether this is actually
> the flow of the code, so take it with a grain of salt.


It appears that this can in fact happen. The fix seems like it would
need to be one additional check along the lines of this pseudo-code:

if ( quota_is_not_inclusive AND
     current_size < quota_warning_size AND
     current_size + incoming_msg_size > quota )


then do the warning message

Thinking about it...
--
Always code as if the guy who ends up maintaining your code will be a
violent psychopath who knows where you live. -- Martin Golding