def METHOD_NAME(request):
    try:
        email = (
            request.db.query(EmailMessage)
            .filter(EmailMessage.id == request.matchdict["email_id"])
            .one()
        )
    except NoResultFound:
        raise HTTPNotFound
    return {"email": email}