On Tue, May 22, 2012 at 08:03:30AM -0700, Todd Lyons wrote:
> Could you do a sg{$var}{,,}{,}  (Equivalent to $var =~ s/,,/,/g) on
> that returned value?  I don't know that there is a clean way to
> actually do this :-/
> 

Actually, here is what I had (I'm using macros):
ALLQUOTA = ${extract {mailquota} { GETITALL }}
QUOTAVAL = ${extract {1} {","} { ALLQUOTA }}
QUOTAFILEVAL = ${extract {2} {","} { ALLQUOTA }}

just replacing QUOTAFILEVAL by

QUOTAFILEVAL = ${extract {3} {","} { ALLQUOTA }}

seems to be doing the trick.

I was just a bit puzzled by the fact the the size quota was obviously
still working while the file count quota wasn't. ;)

Well, all good now. 

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

Best regards,

Chris

-- 
Christopher Bodenstein   -   [email protected]
           CB8461-RIPE   -   Systems Administrator
    Easynet Belgium SA   -   http://www.be.easynet.net/
     "Great acts are made up of small deeds." Lao Tsu

Attachment: signature.asc
Description: Digital signature

-- 
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to