Re: [Jmap] the large email (attachment) problem

Neil Jenkins <neilj@fastmailteam.com> Mon, 02 August 2021 01:38 UTC

Return-Path: <neilj@fastmailteam.com>
X-Original-To: jmap@ietfa.amsl.com
Delivered-To: jmap@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id DDCC63A09BE for <jmap@ietfa.amsl.com>; Sun, 1 Aug 2021 18:38:12 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.797
X-Spam-Level:
X-Spam-Status: No, score=-2.797 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_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=fastmailteam.com header.b=zppiBDNi; dkim=pass (2048-bit key) header.d=messagingengine.com header.b=ZxUEd1Xq
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7gBD3UAINS8e for <jmap@ietfa.amsl.com>; Sun, 1 Aug 2021 18:38:07 -0700 (PDT)
Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 8A9903A09BD for <jmap@ietf.org>; Sun, 1 Aug 2021 18:38:07 -0700 (PDT)
Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 14EF55C0100 for <jmap@ietf.org>; Sun, 1 Aug 2021 21:38:06 -0400 (EDT)
Received: from imap43 ([10.202.2.93]) by compute3.internal (MEProxy); Sun, 01 Aug 2021 21:38:06 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= fastmailteam.com; h=mime-version:message-id:in-reply-to :references:date:from:to:subject:content-type; s=fm3; bh=VJheZIX 2pvabuM7D5mjZ0Tn5b1imEUTfugrLuI2IQXc=; b=zppiBDNiJXGo/aEcSNsxKbz kPXHtx/JUTffFXj3xj1rKJHNPEpUjh3PXNjlf/IBocZR03kOXfARMBw1JFO5hLbk I1WHjAFgQvFk7S4ozoaltm0dfHegq8Z1tqdjJpbsv/4RJoRGCxOVgZb4j79Y5eOU eyj2gH+Y58Jig1Acjfm4nwmBlhWFrUoIa0J/TGxKzC6MRRk49NSxJz9wr4qv5oL5 kl+fzGjcAXHpApi0vKXhs5E8yGJrMUtlKeeq1CLRI7HDCMmBpPWXRjuD5sK2KxLK eE6plkfXEuITSMtzhNeF6yO1o1B1kNXI4Conm2COCxkWLTtnJ58TEfaQJhc+9EQ= =
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=VJheZI X2pvabuM7D5mjZ0Tn5b1imEUTfugrLuI2IQXc=; b=ZxUEd1XqsBOwqu5HftoZ7q EDhLh4wuS4uqKltB/Q6TbXWWbP+2MYsW9H+yAwHPbLRmyxlBlPew89z8O754MH97 CORR+e8YgleeoB21YTDAb2K4qrSyBx1lEyJ1ajaeLHuYbZzQrxAwagcqHO7nPWDu DMbUq6MNY1A/IXH7NJsYUcEuPOqVT5E7YIk0JQUxotzRdawIvY+LXsqWWEg5qWo/ 3WzIlcXQ2ngWj7B/zsFBfps017uXEO07TZoW8C720nDq/WnzdTT1CJcycKrsnKWH IMWFZAxzPCLduOQNhJ8sHOY8cSkNSbS+/wFVChBu/REi+C3eBu+lCSBomuJbnsSQ ==
X-ME-Sender: <xms:fUwHYSsKsZBQD9y_TqSMUNrJyPFtAeheKuQFE6uC_Dosw1Mf2PYIPA> <xme:fUwHYXcSHpzsGisamqNYc5_-p4HYYIfbm21OCLuzMCOBUYhR6a89ie3dUsXnCilID lXI7inCbEaIYQ>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddriedugdefudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvufgtsegrtderreerredtnecuhfhrohhmpedfpfgvihhl ucflvghnkhhinhhsfdcuoehnvghilhhjsehfrghsthhmrghilhhtvggrmhdrtghomheqne cuggftrfgrthhtvghrnhepvedvtedvudelkefhgefhteeftedtlefhheefveffveelkedu tdduffeiveejvefhnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh hfrhhomhepnhgvihhljhesfhgrshhtmhgrihhlthgvrghmrdgtohhm
X-ME-Proxy: <xmx:fUwHYdweeazvOwI5Wf1du6lVd6BvwOm5SwbumV5Ojy70qt6EjCSVPw> <xmx:fUwHYdM3_8ALk5JT_S_9M4Nu1YiBTif1dPDS8kJhv5zMlHEO9IyY-g> <xmx:fUwHYS8bmiUrOl08BHic4Yf1vvDAnFcaEFvaVA1aEmZ8KEIYM_vsOg> <xmx:fkwHYVJvqlUr4qIN6EJRhFwxWuGkpRc9Z4Fs9z-AyvSHDqub_TXH2Q>
Received: by mailuser.nyi.internal (Postfix, from userid 501) id 9B71CAC0E77; Sun, 1 Aug 2021 21:38:05 -0400 (EDT)
X-Mailer: MessagingEngine.com Webmail Interface
User-Agent: Cyrus-JMAP/3.5.0-alpha0-1002-g563fbe43fc-fm-ubox-20210727.001-g563fbe43
Mime-Version: 1.0
Message-Id: <f4f83442-e8c0-42f3-98c6-4c3cb73340c4@dogfood.fastmail.com>
In-Reply-To: <44b8d21-afd9-6563-bcb0-2ad0d23154a1@taugh.com>
References: <CAJi=jadiwMGvLXG7nK93Ht=TzN-QdmAqyE4Nf7UnGG47f3zSwg@mail.gmail.com> <20210731170047.DE0772563EB0@ary.qy> <YQbPLiMLCVowKgyj@eh> <44b8d21-afd9-6563-bcb0-2ad0d23154a1@taugh.com>
Date: Mon, 02 Aug 2021 11:37:47 +1000
From: "Neil Jenkins" <neilj@fastmailteam.com>
To: "IETF JMAP Mailing List" <jmap@ietf.org>
Content-Type: multipart/alternative; boundary=20062732f5ee4ab08fa07c4fe5be5aba
Archived-At: <https://mailarchive.ietf.org/arch/msg/jmap/0okhZjJuG2khcvAl5ITnDb4VQQU>
Subject: Re: [Jmap] the large email (attachment) problem
X-BeenThere: jmap@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: JSON Message Access Protocol <jmap.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/jmap>, <mailto:jmap-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/jmap/>
List-Post: <mailto:jmap@ietf.org>
List-Help: <mailto:jmap-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/jmap>, <mailto:jmap-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 02 Aug 2021 01:38:13 -0000

On Mon, 2 Aug 2021, at 03:43, John R Levine wrote:
> I agree there is a bootstrap problem.  Some mail programs implemented it 
> back in the 1990s when people still dialed in to download their mail, then 
> it went away when we all got permanently online, now we need it again as 
> the size of bloatware has pulled away from what mail systems do.

I *think* the bootstrap problem can be solved if most clients support multiple MIME parts correctly (which I think they probably must, because Apple's clients often produce bodies like that). You have something like this:

multipart/mixed
    text/html *(The message body)*
    multipart/alternative
        text/html *(HTML representation of attachments, just like current G Drive etc.)*
        message/external-body *(For external attachment aware clients)*

Neil.