Don't create duplicate headers in outgoing email
authorMagnus Hagander <magnus@hagander.net>
Thu, 10 Sep 2020 14:45:38 +0000 (16:45 +0200)
committerMagnus Hagander <magnus@hagander.net>
Thu, 10 Sep 2020 14:45:38 +0000 (16:45 +0200)
commit7d1248bc23609ea2cdefee5d92bf934ba15ee7c2
tree2f5c99d22ab4e65a16711b7559191a6712c56bcb
parent7a9e5320914838379f7c626d21c826984a148ece
Don't create duplicate headers in outgoing email

The python libraries will *append* a header if it's just added again,
which would cause the news to go out with two date headers. Oops. So
instead check if each header is present and in that case replace it
rather than appending.
pgweb/mailqueue/util.py