Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
Open sidebar
Zvonimir
ISPConfig 3
Commits
5e10d2d2
Commit
5e10d2d2
authored
Feb 15, 2014
by
Till Brehm
Browse files
Fixed: S#3317 - Mail quota display shows weird values on some systems
parent
40e6e695
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/lib/classes/monitor_tools.inc.php
View file @
5e10d2d2
...
...
@@ -250,7 +250,9 @@ class monitor_tools {
$filename
=
$mb
[
'maildir'
]
.
'/.quotausage'
;
if
(
file_exists
(
$filename
)
&&
!
is_link
(
$filename
))
{
$quotafile
=
file
(
$filename
);
$data
[
$email
][
'used'
]
=
trim
(
$quotafile
[
'1'
]);
preg_match
(
'/storage.*?([0-9]+)/s'
,
implode
(
''
,
$quotafile
),
$storage_value
);
$data
[
$email
][
'used'
]
=
$storage_value
[
1
];
$app
->
log
(
"Mail storage
$email
: "
.
$storage_value
[
1
],
LOGLEVEL_DEBUG
);
unset
(
$quotafile
);
}
else
{
exec
(
'du -s '
.
escapeshellcmd
(
$mb
[
'maildir'
]),
$out
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment