FIX: mbox importer should ignore emails without date

This commit is contained in:
Gerhard Schlager 2018-03-13 13:42:57 +01:00
parent 7d375690c1
commit 9b651adadb

View File

@ -131,7 +131,7 @@ module ImportScripts::Mbox
INSERT INTO user (email, name, date_of_first_message)
SELECT from_email, MIN(from_name) AS from_name, MIN(email_date)
FROM email
WHERE from_email IS NOT NULL
WHERE from_email IS NOT NULL AND email_date IS NOT NULL
GROUP BY from_email
ORDER BY from_email
SQL