Commit 0d349d62 authored by tbrehm's avatar tbrehm
Browse files

FS#1843 - mail quota usage statistics with courier

parent 49f49d66
......@@ -175,7 +175,13 @@ class monitor_tools {
$quotafile = file($filename);
$data[$email]['used'] = trim($quotafile['1']);
unset($quotafile);
}
} else {
exec('du -s '.escapeshellcmd($filename),$out);
$parts = explode(' ',$out);
$data[$email]['used'] = intval($parts[0])*1024;
unset($out);
unset($parts);
}
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment