diff options
author | Philip Hazel <ph10@hermes.cam.ac.uk> | 2005-04-27 10:06:00 +0000 |
---|---|---|
committer | Philip Hazel <ph10@hermes.cam.ac.uk> | 2005-04-27 10:06:00 +0000 |
commit | be22d70ed94d35cf07966eac6fd9032be4f6abab (patch) | |
tree | d8c5635a1e14a5aceb97e184b3c20e6f5941b326 /src | |
parent | cfe75fc353d701560110e26fe3b1a6bab8cae2b4 (diff) |
Quota values can be followed by G as well as K and M.
Diffstat (limited to 'src')
-rw-r--r-- | src/src/transports/appendfile.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/src/transports/appendfile.c b/src/src/transports/appendfile.c index 27e87cf0b..43575d15b 100644 --- a/src/src/transports/appendfile.c +++ b/src/src/transports/appendfile.c @@ -1,4 +1,4 @@ -/* $Cambridge: exim/src/src/transports/appendfile.c,v 1.5 2005/02/17 11:58:27 ph10 Exp $ */ +/* $Cambridge: exim/src/src/transports/appendfile.c,v 1.6 2005/04/27 10:06:00 ph10 Exp $ */ /************************************************* * Exim - an Internet mail transport agent * @@ -286,12 +286,13 @@ for (i = 0; i < 5; i++) d = Ustrtod(s, &rest); - /* Handle following characters K, M, %, the latter being permitted + /* Handle following characters K, M, G, %, the latter being permitted for quota_warn_threshold only. A threshold with no quota setting is just ignored. */ if (tolower(*rest) == 'k') { d *= 1024.0; rest++; } else if (tolower(*rest) == 'm') { d *= 1024.0*1024.0; rest++; } + else if (tolower(*rest) == 'g') { d *= 1024.0*1024.0*1024.0; rest++; } else if (*rest == '%' && i == 2) { if (ob->quota_value <= 0 && !ob->maildir_use_size_file) d = 0; |