1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2026-03-05 15:57:23 +01:00

Merge branch 'master' into reporting

This commit is contained in:
downtownallday
2021-04-07 08:28:31 -04:00
18 changed files with 171 additions and 86 deletions

View File

@@ -24,6 +24,9 @@ Vue.component('chart-table', {
'items': this.items,
'caption-top': true
},
attrs: {
'thead-tr-class': 'h-1'
},
scopedSlots: scopedSlots
});

View File

@@ -1,12 +1,13 @@
--
-- top 10 senders by message count
--
select count(mta_accept_id) as count, sasl_username as username
from mta_connection
join mta_accept on mta_accept.mta_conn_id = mta_connection.mta_conn_id
where mta_connection.service = "submission" AND
SELECT count(mta_accept_id) AS count, sasl_username AS username
FROM mta_connection
JOIN mta_accept ON mta_accept.mta_conn_id = mta_connection.mta_conn_id
WHERE mta_connection.service = "submission" AND
queue_time IS NOT NULL AND
connect_time >= :start_date AND
connect_time < :end_date
group by sasl_username
order by count(mta_accept_id) DESC
limit 10
GROUP BY sasl_username
ORDER BY count(mta_accept_id) DESC
LIMIT 10

View File

@@ -5,6 +5,7 @@ SELECT sum(message_size) AS message_size_total, sasl_username AS username
FROM mta_connection
JOIN mta_accept ON mta_accept.mta_conn_id = mta_connection.mta_conn_id
WHERE mta_connection.service = "submission" AND
queue_time IS NOT NULL AND
connect_time >= :start_date AND
connect_time < :end_date
GROUP BY sasl_username