alphagov/whitehall — pull request #1284 by vinayvinay (2014-02-24 14:21:45+00:00)
Title: Fix email formatter

When a first major edition is published we
enqueue a job to alert subscribers about it.
An editor updated a freshly published edition
while this job was in queue. So when this job
was picked up for processing, it added a line
to indicate that an update happened.

This is misleading as the editor marked the
update as a minor one and in spite of that
this email was sent out.

Updated the logic to use a better way to
determine if the email is for a create or
update, which even takes care of the email
job getting processed very late.