Add Message-Id header to emails
authorStephen Frost <sfrost@snowman.net>
Mon, 13 Jan 2014 03:49:41 +0000 (22:49 -0500)
committerStephen Frost <sfrost@snowman.net>
Mon, 13 Jan 2014 03:49:41 +0000 (22:49 -0500)
commit4c058a0013c97707956557d173d99462bfb1cf29
tree3caac68863bf03562b92971a80a1070c128f7713
parentbfa9b2a1052671fd76dab76d1cd8a05a9d50e557
Add Message-Id header to emails

The previous code, which was submitting locally, apparently didn't
need to provide a Message-Id header.  However, now that we're
directly submitting to a remote system, we need to make sure that
a Message-Id header exists or the emails will get bounced.

In addition, the Python docs for this module state that Message-Id
is really one of the required fields anyway.  It's unclear how many
real bugs we lost because of this, but I got involved when there
was complaining on IRC that a bug submitted didn't show up on the
-bugs list.

In case folks are wondering why I'm committing/pushing this (or how),
I've already fixed this on wrigleys (thanks to Andrew Gierth for
helping me debug and test the changes) and subsequently gave myself
access to this repo, to get this commit in, before anyone else
commits and overwrites my local hacks and breaks the bugs form again.
pgweb/mailqueue/util.py