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.
|
the missing hashes. Maybe we can parse dates from there.
|
||||||
*/
|
*/
|
||||||
SELECT
|
SELECT
|
||||||
l.hash, r.value
|
h.hash,
|
||||||
|
h.name,
|
||||||
|
substring(h.value, 0, 40)
|
||||||
FROM
|
FROM
|
||||||
original l
|
header h
|
||||||
LEFT JOIN (
|
INNER JOIN (
|
||||||
SELECT
|
SELECT
|
||||||
hash,
|
l.hash
|
||||||
value
|
|
||||||
FROM
|
FROM
|
||||||
search_header
|
original l
|
||||||
|
LEFT JOIN (
|
||||||
|
SELECT
|
||||||
|
hash
|
||||||
|
FROM
|
||||||
|
search_header
|
||||||
|
WHERE
|
||||||
|
name = 'Date'
|
||||||
|
) r
|
||||||
|
ON
|
||||||
|
r.hash = l.hash
|
||||||
WHERE
|
WHERE
|
||||||
name = 'Date'
|
r.hash IS NULL
|
||||||
) r
|
) missing
|
||||||
ON
|
ON
|
||||||
r.hash = l.hash
|
missing.hash = h.hash
|
||||||
WHERE
|
WHERE
|
||||||
r.hash IS NULL
|
-- name IN ('Subject', 'Received', 'Date')
|
||||||
|
name IN ('From', 'Subject')
|
||||||
|
ORDER BY
|
||||||
|
h.value
|
||||||
;
|
;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user