Actually update header fields when they have changed
authorMagnus Hagander <magnus@hagander.net>
Tue, 20 Nov 2018 14:18:04 +0000 (15:18 +0100)
committerMagnus Hagander <magnus@hagander.net>
Tue, 20 Nov 2018 14:18:46 +0000 (15:18 +0100)
loader/lib/storage.py

index b2bc7031369b600033f68c13ccda500e8a0b9ae2..eadcaa91a10cef7756d6d32dc1c3240979517ab0 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 _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", {
+                               curs.execute("UPDATE messages SET bodytxt=%(bodytxt)s WHERE id=%(id)s AND NOT (bodytxt=%(bodytxt)s) RETURNING id", {
                                                'id': pk,
                                                'from': self._from,
                                                'to': self.to or '',