Show domain part of message-id sorted by popularity.
This commit is contained in:
12
pg/top-message-ids.sql
Normal file
12
pg/top-message-ids.sql
Normal file
@@ -0,0 +1,12 @@
|
||||
SELECT
|
||||
COUNT(value),
|
||||
LOWER(COALESCE(SUBSTRING(value from '.*@(.*)>'), value)) AS id
|
||||
FROM
|
||||
header
|
||||
WHERE
|
||||
name = 'Message-Id'
|
||||
GROUP BY
|
||||
id
|
||||
ORDER BY
|
||||
count DESC
|
||||
;
|
||||
Reference in New Issue
Block a user