Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Webslice
ISPConfig 3
Commits
b019e483
Commit
b019e483
authored
Jul 03, 2019
by
Till Brehm
Browse files
Fixed #4946 Problems with email starst not being written into the database.
parent
f6150fe6
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/lib/classes/cron.d/100-mailbox_stats.inc.php
View file @
b019e483
...
...
@@ -173,6 +173,10 @@ class cronjob_mailbox_stats extends cronjob {
continue
;
}
}
$this
->
mail_boxes
=
$mail_boxes
;
$this
->
mail_rewrites
=
$mail_rewrites
;
$this
->
add_mailbox_traffic
(
$cur_line
[
'from'
],
$cur_line
[
'size'
],
$mail_boxes
,
$mail_rewrites
);
//echo "1\n";
//print_r($this->mailbox_traffic);
...
...
@@ -221,6 +225,7 @@ class cronjob_mailbox_stats extends cronjob {
$tstamp
=
date
(
'Y-m'
);
$sql
=
"SELECT mailuser_id,email FROM mail_user WHERE server_id = ?"
;
$records
=
$app
->
db
->
queryAllRecords
(
$sql
,
$conf
[
'server_id'
]);
$mailbox_traffic
=
$this
->
mailbox_traffic
;
foreach
(
$records
as
$rec
)
{
if
(
array_key_exists
(
$rec
[
'email'
],
$mailbox_traffic
))
{
$sql
=
"SELECT * FROM mail_traffic WHERE month = ? AND mailuser_id = ?"
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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