There was an error when trying to edit a spam that was either text or html but not both, because I forgot to port the query spam_get_text to postgres.
This has already been checked in but accidentially on the HEAD branch, so this is a re-checkin to the oacs-4-5 branch. Conflicts are ok this time, Don said.