+def prebuild_msg(succeeded, values, verbose=True, success=lambda x: x, failure=lambda x: x,
+ escape=lambda x: x):
+ for key in ['build_id', 'pocket', 'package', 'commit', 'principal', 'version', 'inserted_at']:
+ values[key] = escape(values[key])
+ msg = """Build started: %(package)s %(version)s in %(pocket)s.
+Base commit %(commit)s .
+Job submitted by %(principal)s at %(inserted_at)s.""" % values
+ return msg
+