diff options
| author | Magnus Hagander | 2018-11-20 19:52:59 +0000 |
|---|---|---|
| committer | Magnus Hagander | 2018-11-20 19:52:59 +0000 |
| commit | 1d90276755ce5eef078354f5b438cf97c3e81e35 (patch) | |
| tree | 8055a4b8cb2ef07995a4da68a6a3f943f399ea0c /loader | |
| parent | 72ed3eea45697a1503c9bceaaa478e9c0fdc81dd (diff) | |
Revert "Actually update header fields when they have changed"
That commit was backwards. Oops.
Diffstat (limited to 'loader')
| -rw-r--r-- | loader/lib/storage.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 '', |
