Show From/Subject headers from messages with bad Dates.

This commit is contained in:
Bill Thiede 2014-04-16 23:33:01 -07:00
parent 9bcfb1bf21
commit 4063b48df7

View File

@ -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
original l
LEFT JOIN (
SELECT
hash
FROM FROM
search_header search_header
WHERE WHERE
name = 'Date' name = 'Date'
) r ) r
ON ON
r.hash = l.hash r.hash = l.hash
WHERE WHERE
r.hash IS NULL r.hash IS NULL
) missing
ON
missing.hash = h.hash
WHERE
-- name IN ('Subject', 'Received', 'Date')
name IN ('From', 'Subject')
ORDER BY
h.value
; ;