Add support for identifying alerts by message. (resolves #246)