get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/1839949/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 1839949,
    "url": "http://patchwork.ozlabs.org/api/patches/1839949/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20230926203946.3303600-2-eblake@redhat.com/",
    "project": {
        "id": 14,
        "url": "http://patchwork.ozlabs.org/api/projects/14/?format=api",
        "name": "QEMU Development",
        "link_name": "qemu-devel",
        "list_id": "qemu-devel.nongnu.org",
        "list_email": "qemu-devel@nongnu.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20230926203946.3303600-2-eblake@redhat.com>",
    "list_archive_url": null,
    "date": "2023-09-26T20:39:47",
    "name": "maint: Tweak comment in mailmap to sound friendlier",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "30972842d20f945adc0c11ad0baa4f3178f0d547",
    "submitter": {
        "id": 6591,
        "url": "http://patchwork.ozlabs.org/api/people/6591/?format=api",
        "name": "Eric Blake",
        "email": "eblake@redhat.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20230926203946.3303600-2-eblake@redhat.com/mbox/",
    "series": [
        {
            "id": 375004,
            "url": "http://patchwork.ozlabs.org/api/series/375004/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=375004",
            "date": "2023-09-26T20:39:47",
            "name": "maint: Tweak comment in mailmap to sound friendlier",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/375004/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/1839949/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/1839949/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming@legolas.ozlabs.org",
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256\n header.s=mimecast20190719 header.b=IDHiiB0C;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org\n (client-ip=209.51.188.17; helo=lists.gnu.org;\n envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n receiver=patchwork.ozlabs.org)"
        ],
        "Received": [
            "from lists.gnu.org (lists.gnu.org [209.51.188.17])\n\t(using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4RwBWD2fDBz1ynX\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 27 Sep 2023 06:42:16 +1000 (AEST)",
            "from localhost ([::1] helo=lists1p.gnu.org)\n\tby lists.gnu.org with esmtp (Exim 4.90_1)\n\t(envelope-from <qemu-devel-bounces@nongnu.org>)\n\tid 1qlEsG-0007t5-I1; Tue, 26 Sep 2023 16:41:40 -0400",
            "from eggs.gnu.org ([2001:470:142:3::10])\n by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <eblake@redhat.com>) id 1qlEsE-0007st-O5\n for qemu-devel@nongnu.org; Tue, 26 Sep 2023 16:41:38 -0400",
            "from us-smtp-delivery-124.mimecast.com ([170.10.133.124])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <eblake@redhat.com>) id 1qlEsD-0002up-1V\n for qemu-devel@nongnu.org; Tue, 26 Sep 2023 16:41:38 -0400",
            "from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73])\n by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id\n us-mta-126-4LKw7lWoM0yjw_T6WFssMw-1; Tue, 26 Sep 2023 16:41:32 -0400",
            "from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com\n [10.11.54.10])\n (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n (No client certificate requested)\n by mimecast-mx02.redhat.com (Postfix) with ESMTPS id E592338008BA;\n Tue, 26 Sep 2023 20:41:31 +0000 (UTC)",
            "from green.redhat.com (unknown [10.2.16.59])\n by smtp.corp.redhat.com (Postfix) with ESMTP id 7FC7B492C37;\n Tue, 26 Sep 2023 20:41:31 +0000 (UTC)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1695760896;\n h=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n to:to:cc:cc:mime-version:mime-version:content-type:content-type:\n content-transfer-encoding:content-transfer-encoding;\n bh=EbdztlSZn+Pz0TIkzhyLScFk7wNq8KfhwBOoWhkoVnM=;\n b=IDHiiB0CsrucvAfxcjzQWJ4AFnzcOMww6CpVFHO8JsHeJp/Qwd2N0XM2k8lh+YEkk/Fal3\n Ya/kKBPW9ZnxvF1bqjEhWW4b3sLs4SPh59UpMTuqOLWKLpIM/HiDcHVrnualcyv8Rd7BJ7\n a2oodw8mbt48blFjrjX6hUVTNtu/Jr4=",
        "X-MC-Unique": "4LKw7lWoM0yjw_T6WFssMw-1",
        "From": "eblake@redhat.com",
        "To": "qemu-devel@nongnu.org",
        "Cc": "Eric Blake <eblake@redhat.com>,\n Andrey Drobyshev <andrey.drobyshev@virtuozzo.com>,\n Peter Maydell <peter.maydell@linaro.org>",
        "Subject": "[PATCH] maint: Tweak comment in mailmap to sound friendlier",
        "Date": "Tue, 26 Sep 2023 15:39:47 -0500",
        "Message-ID": "<20230926203946.3303600-2-eblake@redhat.com>",
        "MIME-Version": "1.0",
        "Content-type": "text/plain",
        "Content-Transfer-Encoding": "8bit",
        "X-Scanned-By": "MIMEDefang 3.1 on 10.11.54.10",
        "Received-SPF": "pass client-ip=170.10.133.124; envelope-from=eblake@redhat.com;\n helo=us-smtp-delivery-124.mimecast.com",
        "X-Spam_score_int": "12",
        "X-Spam_score": "1.2",
        "X-Spam_bar": "+",
        "X-Spam_report": "(1.2 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001,\n DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,\n RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001,\n RCVD_IN_SBL_CSS=3.335, SPF_HELO_NONE=0.001,\n SPF_PASS=-0.001 autolearn=no autolearn_force=no",
        "X-Spam_action": "no action",
        "X-BeenThere": "qemu-devel@nongnu.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "<qemu-devel.nongnu.org>",
        "List-Unsubscribe": "<https://lists.nongnu.org/mailman/options/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>",
        "List-Archive": "<https://lists.nongnu.org/archive/html/qemu-devel>",
        "List-Post": "<mailto:qemu-devel@nongnu.org>",
        "List-Help": "<mailto:qemu-devel-request@nongnu.org?subject=help>",
        "List-Subscribe": "<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=subscribe>",
        "Errors-To": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org",
        "Sender": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org"
    },
    "content": "From: Eric Blake <eblake@redhat.com>\n\nDocumenting that we should not add new lines to work around SPF\nrewrites sounds foreboding; the intent is instead that new lines here\nare okay, but indicate a second problem elsewhere in our build process\nthat we should also consider fixing at the same time, to keep the\nsection from growing without bounds.\n\nMentioning DMARC alongside SPF may also help people grep for this\nscenario, as well as documenting the 'git config' workaround that can\nbe used by submitters to avoid the munging issue in the first place.\n\nFixes: 3bd2608d (\"maint: Add .mailmap entries for patches claiming list authorship\")\nCC: Andrey Drobyshev <andrey.drobyshev@virtuozzo.com>\nCc: Peter Maydell <peter.maydell@linaro.org>\nSigned-off-by: Eric Blake <eblake@redhat.com>\n---\n\nI'm sending this email with a temporary 'git config sendemail.from\neblake@redhat.com', to see if the added advice actually adds the extra\nline. It did not show up in my editor window, though, so this patch\nmay need further tweaking to get the instructions right.  Since I\ndon't normally suffer from SPF/DMARC munging, I may not be the best\nperson to test the right workaround.  Or maybe 'git config' does not\nyet have the right workaround already available as a turnkey solution\nwe can suggest.\n\n .mailmap | 11 ++++++++++-\n 1 file changed, 10 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/.mailmap b/.mailmap\nindex 64ef9f4de6f..6fb8202715a 100644\n--- a/.mailmap\n+++ b/.mailmap\n@@ -40,7 +40,16 @@ Nick Hudson <hnick@vmware.com> hnick@vmware.com <hnick@vmware.com>\n # for the cvs2svn initialization commit e63c3dc74bf.\n\n # Next, translate a few commits where mailman rewrote the From: line due\n-# to strict SPF, although we prefer to avoid adding more entries like that.\n+# to strict SPF and DMARC.  Usually, our build process should be flagging\n+# commits like these before maintainer merges; if you find the need to add\n+# a line here, please also report a bug against the part of the build\n+# process that let the mis-attribution slip through in the first place.\n+#\n+# If the mailing list munges your emails, consider using something like\n+# 'git config --global sendemail.from your.email@example.com'\n+# to add an extra From: line in the body of your email that takes\n+# precedence over any munged From: in the mail's headers.\n+# See https://lists.openembedded.org/g/openembedded-core/message/166515\n Ed Swierk <eswierk@skyportsystems.com> Ed Swierk via Qemu-devel <qemu-devel@nongnu.org>\n Ian McKellar <ianloic@google.com> Ian McKellar via Qemu-devel <qemu-devel@nongnu.org>\n Julia Suvorova <jusual@mail.ru> Julia Suvorova via Qemu-devel <qemu-devel@nongnu.org>\n",
    "prefixes": []
}