Re: [ietf-smtp] Stray <LF> in the middle of messages

Alessandro Vesely <vesely@tana.it> Mon, 08 June 2020 16:22 UTC

Return-Path: <vesely@tana.it>
X-Original-To: ietf-smtp@ietfa.amsl.com
Delivered-To: ietf-smtp@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 2D8723A0CE1 for <ietf-smtp@ietfa.amsl.com>; Mon, 8 Jun 2020 09:22:51 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.098
X-Spam-Level:
X-Spam-Status: No, score=-2.098 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, RCVD_IN_MSPIKE_H3=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 (1152-bit key) header.d=tana.it
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 RbyzpzSP7Y7s for <ietf-smtp@ietfa.amsl.com>; Mon, 8 Jun 2020 09:22:49 -0700 (PDT)
Received: from wmail.tana.it (wmail.tana.it [62.94.243.226]) (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 B6F073A0884 for <ietf-smtp@ietf.org>; Mon, 8 Jun 2020 09:22:49 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tana.it; s=delta; t=1591633367; bh=U+LeNMKIXIUK+3JaOskOD+XKpQw0nEysjGjQofBCzqU=; l=674; h=To:References:From:Date:In-Reply-To; b=BLvew4Hbxz/2Gdd03bsrLlezyrsnQwXWnnKjFC0YR0HIC96bQ22Ia4PPL1ntp4z0B gCpVcQg8Bd1IkkWglcTbrynDGjE16s/okPi8hMGBQn+r2VmAAKCsbfyrVYlOEdUTPM yabeaiS/fGEl8t7hTZfs2qEHSQC6K4A5BMJWRUv5ymEMFKQgWLAgTtMbh+4Zz
Authentication-Results: tana.it; auth=pass (details omitted)
Received: from [172.25.197.111] (pcale.tana [172.25.197.111]) (AUTH: CRAM-MD5 uXDGrn@SYT0/k, TLS: TLS1.2, 128bits, ECDHE_RSA_AES_128_GCM_SHA256) by wmail.tana.it with ESMTPSA id 00000000005DC07E.000000005EDE65D7.000057EE; Mon, 08 Jun 2020 18:22:47 +0200
To: ietf-smtp@ietf.org
References: <87ftb8p1ii.fsf@llwynog.ekleog.org> <5EDE4545.7070608@isdg.net>
From: Alessandro Vesely <vesely@tana.it>
Message-ID: <779239c4-ebca-1ca8-da59-bb9af4c38ac8@tana.it>
Date: Mon, 08 Jun 2020 18:22:47 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0
MIME-Version: 1.0
In-Reply-To: <5EDE4545.7070608@isdg.net>
Content-Type: text/plain; charset="utf-8"
Content-Language: en-US
Content-Transfer-Encoding: 8bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/ietf-smtp/6jIbU96xAnbRfkV0s_lx1nT_h6k>
Subject: Re: [ietf-smtp] Stray <LF> in the middle of messages
X-BeenThere: ietf-smtp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Discussion of issues related to Simple Mail Transfer Protocol \(SMTP\) \[RFC 821, RFC 2821, RFC 5321\]" <ietf-smtp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ietf-smtp>, <mailto:ietf-smtp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ietf-smtp/>
List-Post: <mailto:ietf-smtp@ietf.org>
List-Help: <mailto:ietf-smtp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ietf-smtp>, <mailto:ietf-smtp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 08 Jun 2020 16:22:51 -0000

On Mon 08/Jun/2020 16:03:49 +0200 Hector Santos wrote:
> While the *nix or Mac may store the email in their native format, when it comes
> to SMTP transmission of the DATA payload , they MUST translate  it to a
> <CR><LF> format. In principle, all compliant SMTP senders and receiver MUST
> conform to the <CR><LF> end of line terminator.
> 

CRLF is required for IMAP and POP too.  The inconvenience is having to compute
the length of the message, in octets.  The FS can only tell how many octets the
native format takes.  One has to add the number of lines.  Storing that info in
the file name is a possibility, if you don't have a dedicated FS.


Best
Ale
--