[Ietf-dkim] Change recipes and reordering

Bron Gondwana <brong@fastmailteam.com> Sat, 14 March 2026 06:25 UTC

Return-Path: <brong@fastmailteam.com>
X-Original-To: ietf-dkim@mail2.ietf.org
Delivered-To: ietf-dkim@mail2.ietf.org
Received: from localhost (localhost [127.0.0.1]) by mail2.ietf.org (Postfix) with ESMTP id E3F46C9B8BA4 for <ietf-dkim@mail2.ietf.org>; Fri, 13 Mar 2026 23:25:14 -0700 (PDT)
X-Virus-Scanned: amavisd-new at ietf.org
X-Spam-Flag: NO
X-Spam-Score: -2.798
X-Spam-Level:
X-Spam-Status: No, score=-2.798 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: mail2.ietf.org (amavisd-new); dkim=pass (2048-bit key) header.d=fastmailteam.com header.b="divTUr9+"; dkim=pass (2048-bit key) header.d=messagingengine.com header.b="QxyRUki1"
Received: from mail2.ietf.org ([166.84.6.31]) by localhost (mail2.ietf.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uxbQ_qrVaW0V for <ietf-dkim@mail2.ietf.org>; Fri, 13 Mar 2026 23:25:14 -0700 (PDT)
Received: from fhigh-a5-smtp.messagingengine.com (fhigh-a5-smtp.messagingengine.com [103.168.172.156]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail2.ietf.org (Postfix) with ESMTPS id 7E9D0C9B8B9D for <ietf-dkim@ietf.org>; Fri, 13 Mar 2026 23:25:14 -0700 (PDT)
Received: from phl-compute-10.internal (phl-compute-10.internal [10.202.2.50]) by mailfhigh.phl.internal (Postfix) with ESMTP id 502A21400202 for <ietf-dkim@ietf.org>; Sat, 14 Mar 2026 02:25:08 -0400 (EDT)
Received: from phl-imap-15 ([10.202.2.104]) by phl-compute-10.internal (MEProxy); Sat, 14 Mar 2026 02:25:08 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= fastmailteam.com; h=cc:content-type:content-type:date:date:from :from:in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to; s=fm2; t=1773469508; x= 1773555908; bh=BxNvQqEG8+7/WSwOvBzsLoRnvey4Jkttk9LFVSz/ix0=; b=d ivTUr9+A6FS9/zN8fY+Nh17bE6eQPOPHICur+dBIMxEHGgIEOsYWF0zERkbwCuo6 Rr46/Plejoy68GNGHhqXDsL/e3MHcZgYHYbiJvUQ2E8TOtibnIX6E5AzAj3ZKLGD RU7LnrS/Fbt1IlJhRCqbY3fsMtS4EyH6MaZqWibhk74rJ4NjOtajQ07/Wyj0HpPT 2M1tkq4L/DyhPOcIUmgZxTZ9hEdz2lu4i6CM1U85yde2wV7CIyGlX31ceoAO/E2H MEZhNM2yoMwJV3FcyYm73nT9Jwp3/W6AMSyfl/57FZG+qzXkdj9jgx7mkqclemVg s9kMBBBjbYTikidQZgs1w==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1773469508; x=1773555908; bh=BxNvQqEG8+7/WSwOvBzsLoRnvey4Jkttk9L FVSz/ix0=; b=QxyRUki1eTnRGN7v56L8uBcSsvjc02A3fth1yeTJPkeIuqQ9HVp 8CYedhUFNuI5/yZByW1KwUtn4kVsmo0ZG+4H7bMXDuBQ7LZQwhTVrjahKkKHLYJL 974ODJZIsMK8HXNoY8WvCreBzL+br0DqT7feynoIO1e7DhxQMlqN5FbEdytigOu4 5cHNeWzvsX+VE54mE7sKJq+77HPE0PldYNF4IUcqLRJ5bTTfphgbSwtd4Bbix4L/ 92mlYoXrjMlnhtgu35BPf9XoPueBNmsqpvBboyiHHY+QwOxZ4Kh4wy/dVJEWfpMz a2GvgcLWHq8kLhhuotk0RAF1G3pVii7sOPA==
X-ME-Sender: <xms:RP-0aYZH0CuffBGCnYCLNq-wuwtYzXfnFWfWhwMJwZpc4OAgLc8jFw> <xme:RP-0aeOrB8fB73ghNcbYasaQRWjhm0wLKI0Ws2qzFr5zc-AEiymNs_7TIOK9Ip_Pr tlyv03X4vEmH1QOWfO0vLZBW0NnI1kigWpYpSSp8hHNe_H0>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgddvledukeefucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucenucfjughrpefoggffhffvkfgjfhfutgesrgdtreerre dttdenucfhrhhomhepfdeurhhonhcuifhonhgufigrnhgrfdcuoegsrhhonhhgsehfrghs thhmrghilhhtvggrmhdrtghomheqnecuggftrfgrthhtvghrnhepfeevjeevkedukeffff evveeuteefheeuudefffetgfeghfehleetleeggeehffdtnecuvehluhhsthgvrhfuihii vgeptdenucfrrghrrghmpehmrghilhhfrhhomhepsghrohhnghesfhgrshhtmhgrihhlth gvrghmrdgtohhmpdhnsggprhgtphhtthhopedupdhmohguvgepshhmthhpohhuthdprhgt phhtthhopehivghtfhdqughkihhmsehivghtfhdrohhrgh
X-ME-Proxy: <xmx:RP-0aV89AX8YA-UXWTfTywUar4OTUQEGWBoX6N_1GPjNVGQc9gmNTw> <xmx:RP-0aQqQ3sy5CTjyEkBzYyJApFVtquCr9QlC9FvYkRcdz3jtu54Rpg> <xmx:RP-0aYq7hiFaoka3r2iUffATOo8r_Zii5iHHvisi1Y7MCfDIBUFFcA> <xmx:RP-0aelWiUpKSy_Rxp9dKiSSDHHfDPjKit05EO3IKjU7DOP3rim-NA> <xmx:RP-0aS3qxZyGgp5tK25cr5SIFTRLl5teQXjYtkdJ8kFWQm0txbYXYm62>
Feedback-ID: i2d7042ce:Fastmail
Received: by mailuser.phl.internal (Postfix, from userid 501) id 126E8780070; Sat, 14 Mar 2026 02:25:08 -0400 (EDT)
X-Mailer: MessagingEngine.com Webmail Interface
MIME-Version: 1.0
Date: Sat, 14 Mar 2026 14:24:45 +0800
From: Bron Gondwana <brong@fastmailteam.com>
To: ietf-dkim@ietf.org
Message-Id: <ac156eae-3250-4176-8034-cc2b6c65766a@app.fastmail.com>
In-Reply-To: <7c6fd859-db0f-4839-b207-f783f1810c93@1und1.de>
References: <ZKQV0jWiNJTpFAF2@highwayman.com> <ff2b4566-f56e-4d38-8f3d-e20eb75a692b@1und1.de> <7c6fd859-db0f-4839-b207-f783f1810c93@1und1.de>
Content-Type: multipart/alternative; boundary="5eb13b581b944cfca519bbc1f477af5c"
Message-ID-Hash: QHY5O5LB3YZIWVOBXOEUMXO5MMKCIBDM
X-Message-ID-Hash: QHY5O5LB3YZIWVOBXOEUMXO5MMKCIBDM
X-MailFrom: brong@fastmailteam.com
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-ietf-dkim.ietf.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
X-Mailman-Version: 3.3.9rc6
Precedence: list
Subject: [Ietf-dkim] Change recipes and reordering
List-Id: IETF DKIM List <ietf-dkim.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/ietf-dkim/W3nS5Y_jwGMytn_mpHxIzNbEiSU>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ietf-dkim>
List-Help: <mailto:ietf-dkim-request@ietf.org?subject=help>
List-Owner: <mailto:ietf-dkim-owner@ietf.org>
List-Post: <mailto:ietf-dkim@ietf.org>
List-Subscribe: <mailto:ietf-dkim-join@ietf.org>
List-Unsubscribe: <mailto:ietf-dkim-leave@ietf.org>

I'm replying to an old message because it contained a reference to this text.
> 
>     c: startnumber-endnumber
> 
>     Copy the lines numbered startnumber up to and including the line
>     numbered endnumber. The first line of the body (immediately after
>     the blank line that indicates that there are no more header fields)
>     is numbered 1. If the endnumber is omitted then all lines
>     (from the startnumber line onwards) are to be copied.
> 
>     The startnumber of every "c" instruction MUST be in ascending order
>     and MUST be greater than
>     the endnumber of all preceding "c" instructions. There MUST NOT
>     be any further "c" instructions after a "c" instruction with
>     an omitted endnumber. In other words a recipe is not allowed to
>     use "c" instructions to duplicate or re-order lines.

Thinking about replacing components of MIME structures but not having to rewrite entire attachments where bits have been restructured, I think what we actually need is slightly less strict:

* copy ranges (for both header AND body recipes) MUST not overlap or repeat.

This allows for some examples I plan to put together, where a body gets re-encoded (and the old version gets smuggled inside the MIME structure somehow) but an attachment is kept unchanged.

Bron.


--
  Bron Gondwana, CEO, Fastmail Pty Ltd / Fastmail US LLC
  brong@fastmailteam.com