Revert "Actually update header fields when they have changed"
authorMagnus Hagander <magnus@hagander.net>
Tue, 20 Nov 2018 19:52:59 +0000 (20:52 +0100)
committerMagnus Hagander <magnus@hagander.net>
Tue, 20 Nov 2018 19:52:59 +0000 (20:52 +0100)
That commit was backwards. Oops.

loader/lib/storage.py

index 4d6de1c35f286ce7b0156e5b226e8765524ef348..50e96a321b7ff93ae58785778422181105fc4fd5 100644 (file)
@@ -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 '',