Show From/Subject headers from messages with bad Dates.
This commit is contained in:
parent
9bcfb1bf21
commit
4063b48df7
@ -12,20 +12,34 @@
|
||||
the missing hashes. Maybe we can parse dates from there.
|
||||
*/
|
||||
SELECT
|
||||
l.hash, r.value
|
||||
h.hash,
|
||||
h.name,
|
||||
substring(h.value, 0, 40)
|
||||
FROM
|
||||
original l
|
||||
LEFT JOIN (
|
||||
header h
|
||||
INNER JOIN (
|
||||
SELECT
|
||||
hash,
|
||||
value
|
||||
l.hash
|
||||
FROM
|
||||
original l
|
||||
LEFT JOIN (
|
||||
SELECT
|
||||
hash
|
||||
FROM
|
||||
search_header
|
||||
WHERE
|
||||
name = 'Date'
|
||||
) r
|
||||
ON
|
||||
ON
|
||||
r.hash = l.hash
|
||||
WHERE
|
||||
WHERE
|
||||
r.hash IS NULL
|
||||
) missing
|
||||
ON
|
||||
missing.hash = h.hash
|
||||
WHERE
|
||||
-- name IN ('Subject', 'Received', 'Date')
|
||||
name IN ('From', 'Subject')
|
||||
ORDER BY
|
||||
h.value
|
||||
;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user