def METHOD_NAME(request, patch_id):
    patch = get_object_or_404(Patch, id=patch_id)
    url = reverse(
        'patch-mbox',
        kwargs={
            'project_id': patch.project.linkname,
            'msgid': patch.encoded_msgid,
        },
    )
    return HttpResponseRedirect(url)