Re: [Exim] [Exim]Over Quota Warnning Problem

Pàgina inicial
Delete this message
Reply to this message
Autor: Philip Hazel
Data:  
A: Charles Lee
CC: exim-users
Assumpte: Re: [Exim] [Exim]Over Quota Warnning Problem
On Thu, 10 May 2001, Charles Lee wrote:

>    It seems as "quota" * "quota_warn_threshold" > 20M , the quota
> warnning message fail (no warnning message sent).


Oops. It's a bug. 50 * 1024 * 1024 * 41 overflows a 32-bit integer.
I will fix this in the next release. Meanwhile, if you want a quick
patch, look for these lines in the source file src/transports/appendfile.c:

  if (ob->quota_warn_threshold_is_percent)
    threshold = (ob->quota_value * threshold) / 100;


In release 3.13 they are lines 2233/4. Change the second line to

    threshold = (int)(((float)ob->quota_value * threshold) / 100);


Thanks for the report.

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