Re: [ietf-822] Question about line folding and maximum line length
Hector Santos <hsantos@isdg.net> Fri, 07 May 2021 00:47 UTC
Return-Path: <hsantos@isdg.net>
X-Original-To: ietf-822@ietfa.amsl.com
Delivered-To: ietf-822@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id A03293A37EA for <ietf-822@ietfa.amsl.com>; Thu, 6 May 2021 17:47:24 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.101
X-Spam-Level:
X-Spam-Status: No, score=-2.101 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, NICE_REPLY_A=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=isdg.net header.b=Le6GULcN; dkim=pass (1024-bit key) header.d=beta.winserver.com header.b=AxYcl5un
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 ZqgZvT1tFCin for <ietf-822@ietfa.amsl.com>; Thu, 6 May 2021 17:47:19 -0700 (PDT)
Received: from mail.winserver.com (secure.winserver.com [76.245.57.69]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D8BCE3A37D2 for <ietf-822@ietf.org>; Thu, 6 May 2021 17:33:24 -0700 (PDT)
DKIM-Signature: v=1; d=isdg.net; s=tms1; a=rsa-sha256; c=simple/relaxed; l=2491; t=1620347596; atps=ietf.org; atpsh=sha1; h=Received:Received:Received:Received:Message-ID:Date:From: Organization:To:Subject:List-ID; bh=RCHX+JnncEIazpadHSy879tqBHmQ t/UqMpDCeVUdbCg=; b=Le6GULcNlduRqThC9kXInkdKPKWmpgJY5v9X07K5kMYb 8OolarJh/hFPtO2EPSEwfjTxNyTUeddKdFEiEG7eVtivyl5dRQ+yrh/5ummLhaZ0 07Y6TOK4aWE1dfE0h7RnJKuL0oQneOpfmThvqenA0NR3/INUVzP4Keva1N/z45M=
Received: by mail.winserver.com (Wildcat! SMTP Router v8.0.454.12) for ietf-822@ietf.org; Thu, 06 May 2021 20:33:16 -0400
Authentication-Results: dkim.winserver.com; dkim=pass header.d=beta.winserver.com header.s=tms1 header.i=beta.winserver.com; dmarc=pass policy=reject author.d=isdg.net signer.d=beta.winserver.com (atps signer);
Received: from beta.winserver.com ([76.245.57.74]) by mail.winserver.com (Wildcat! SMTP v8.0.454.12) with ESMTP id 85776060.11534.3396; Thu, 06 May 2021 20:33:15 -0400
DKIM-Signature: v=1; d=beta.winserver.com; s=tms1; a=rsa-sha256; c=simple/relaxed; l=2491; t=1620347523; h=Received:Received: Message-ID:Date:From:Organization:To:Subject:List-ID; bh=RCHX+Jn ncEIazpadHSy879tqBHmQt/UqMpDCeVUdbCg=; b=AxYcl5ungLtQDvtCHbIi8Ts CASAj3XrqOcvd6iA4Rw82c3bsstL88uIOCo02OxzDE00mZbV91zjtIACp5Redma9 WpfoUk3/Bukg7iHOmOf/R/2Sd1id8JLcWfzWokv45HEc0F8prrM3bS6v9kGmpQXq 1WfxhBUSzvUD5+urx7Xo=
Received: by beta.winserver.com (Wildcat! SMTP Router v8.0.454.10) for ietf-822@ietf.org; Thu, 06 May 2021 20:32:03 -0400
Received: from [192.168.1.68] ([75.26.216.248]) by beta.winserver.com (Wildcat! SMTP v8.0.454.10) with ESMTP id 769399410.1.11064; Thu, 06 May 2021 20:32:01 -0400
Message-ID: <60948AC9.6090506@isdg.net>
Date: Thu, 06 May 2021 20:33:13 -0400
From: Hector Santos <hsantos@isdg.net>
Reply-To: hsantos@isdg.net
Organization: Santronics Software, Inc.
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.8.1
MIME-Version: 1.0
To: Bryan Frimin <bryan=40frimin.fr@dmarc.ietf.org>, ietf-822@ietf.org
References: <87eeekq8af.fsf@workstation.frimin.fr>
In-Reply-To: <87eeekq8af.fsf@workstation.frimin.fr>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/ietf-822/p9AUIPcc_j_n9SD8GB7kFR1Scn8>
Subject: Re: [ietf-822] Question about line folding and maximum line length
X-BeenThere: ietf-822@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Discussion of issues related to Internet Message Format \[RFC 822, RFC 2822, RFC 5322\]" <ietf-822.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ietf-822>, <mailto:ietf-822-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ietf-822/>
List-Post: <mailto:ietf-822@ietf.org>
List-Help: <mailto:ietf-822-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ietf-822>, <mailto:ietf-822-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 07 May 2021 00:47:29 -0000
On 5/6/2021 9:52 AM, Bryan Frimin wrote: > Hello everyone, > > I am implementing an e-mail client. I have to implement the SMTP > protocol, starting with the internet message format defined by RFC > 5322[1]. > > After reading the RFC, I found two points that are not clear to me. > > 1. The maximum line length. > RFC 5322 section 2.1.1[2] describes two possible line length limits. The > historical one, 78 characters, and the new one, 998 characters. Is the > historical limit still relevant for an email client in 2021, or can I > just use the new one? For SMTP (RFC5321 et al) Internet Mail (RFC5322 et al ) transportation, MTA (client/server), 998+EOL is the requirement. EOL is <CR><LF> (DOS-based easy to remember). If a line is ending as Unix-based <LF> or MAC-based <CR>, then I/O translation must be taken into account. For DISPLAY purposes, the MUA, Mail User Agents, SMTP should at least handle old school 80 columns, that meant 78+EOL. It was always tricky to deal with column soft vs hard wraparounds ideas. > 2. The long line folding mechanism. > RFC 5322 section 2.2.3[3] defines a folding mechanism for long header > fields. But it does define whether it is possible to fold a header field > name longer than the limit (yes it is an edge case, but it could > happen). And folding can only be done if a lexical token or a space is > present. So what about values without any separator ? > Serious? A Header Field Bame longer than the line limit? That would instantly cause breakage somewhere. So I don't know off hand if the doc makes a mention of the Header Field Name limit, but if not, this is the group to make that clarification in the ABNF. The reality is that there are remote hosting limits that are external to RFC5822, perhaps even predated RFC5322 header fields, especially the top header fields from the Host/User Mail Reader/Writer MUA standpoint and for all telecommunications; From: To: Subject: Date: All others are network or some meta-related thing, perhaps, but there are legacy and established systems that has limits based on display designs. Much shorter than 998, How will any device display long fields over 80 or extended graphically like 132 that the early smarter terminals offered? Overall, there is no standard on displays, yet, because there are so many different ways to do it. Smart Watches? -- Hector Santos, https://secure.santronics.com https://twitter.com/hectorsantos
- [ietf-822] Question about line folding and maximu… Bryan Frimin
- Re: [ietf-822] Question about line folding and ma… Paul Smith
- Re: [ietf-822] Question about line folding and ma… John Levine
- Re: [ietf-822] Question about line folding and ma… Pete Resnick
- Re: [ietf-822] Question about line folding and ma… Hector Santos