From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mimir.eigenstate.org ([206.124.132.107]) by ewsd; Thu Sep 17 19:01:30 EDT 2020 Received: from abbatoir.fios-router.home (pool-74-101-2-6.nycmny.fios.verizon.net [74.101.2.6]) by mimir.eigenstate.org (OpenSMTPD) with ESMTPSA id 6927bb8f (TLSv1.2:ECDHE-RSA-AES256-SHA:256:NO); Thu, 17 Sep 2020 16:01:21 -0700 (PDT) Message-ID: <4E408C698AD9B024668C36E92F594FBC@eigenstate.org> To: theinicke@bss-wf.de, 9front@9front.org Subject: Re: [9front] [Bug] [PATCH] Mail cannot cope with multi-line header fields Date: Thu, 17 Sep 2020 16:01:20 -0700 From: ori@eigenstate.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: abstract self-healing hardware-scale blockchain HTTP interface STM lifecycle-based locator >> I think I like your idea of doing it in copy822. How's this? > > This is fine except for the potential corner case of having CRLF inside a quoted string in one of the header fields treated by addr822. > > That is in rfc2855 it says in section 3.2.5 "Since a quoted-string is allowed to contain FWS, folding is permitted.". If we want to follow this path of fixing it here, then I think we also would have to at least amend the condition in /sys/src/cmd/upas/fs/mbox.c:763 (776 after applying your patch). Looks good -- committing. Thanks!