From 1d90276755ce5eef078354f5b438cf97c3e81e35 Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Tue, 20 Nov 2018 20:52:59 +0100 Subject: [PATCH] Revert "Actually update header fields when they have changed" That commit was backwards. Oops. --- loader/lib/storage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loader/lib/storage.py b/loader/lib/storage.py index 4d6de1c..50e96a3 100644 --- a/loader/lib/storage.py +++ b/loader/lib/storage.py @@ -57,7 +57,7 @@ class ArchivesParserStorage(ArchivesParser): # identifyer), and we don't update the raw text of the message. # (since we are expected to have used that raw text to do # the re-parsing initially) - curs.execute("UPDATE messages SET bodytxt=%(bodytxt)s WHERE id=%(id)s AND NOT (bodytxt=%(bodytxt)s) RETURNING id", { + curs.execute("UPDATE messages SET _from=%(from)s, _to=%(to)s, cc=%(cc)s, subject=%(subject)s, date=%(date)s, has_attachment=%(has_attachment)s, bodytxt=%(bodytxt)s WHERE id=%(id)s AND NOT (bodytxt=%(bodytxt)s) RETURNING id", { 'id': pk, 'from': self._from, 'to': self.to or '', -- 2.39.5