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

Paul Smith <paul@pscs.co.uk> Wed, 10 June 2020 13:16 UTC

Return-Path: <paul@pscs.co.uk>
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 A3C863A0853 for <ietf-smtp@ietfa.amsl.com>; Wed, 10 Jun 2020 06:16:35 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.2
X-Spam-Level:
X-Spam-Status: No, score=-0.2 tagged_above=-999 required=5 tests=[BAYES_20=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=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=pscs.co.uk
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 4KG_yCjJy_q3 for <ietf-smtp@ietfa.amsl.com>; Wed, 10 Jun 2020 06:16:33 -0700 (PDT)
Received: from mail.pscs.co.uk (mail.pscs.co.uk [195.224.19.137]) (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 E9AEA3A0850 for <ietf-smtp@ietf.org>; Wed, 10 Jun 2020 06:16:32 -0700 (PDT)
Authentication-Results: mail.pscs.co.uk; spf=none; auth=pass (cram-md5) smtp.auth=pscs
Received: from lmail.pscs.co.uk ([192.168.66.70]) by mail.pscs.co.uk ([10.224.19.137] running VPOP3) with ESMTPSA (TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384) for <ietf-smtp@ietf.org>; Wed, 10 Jun 2020 14:16:29 +0100
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pscs.co.uk; q=dns/txt; s=lmail; h=Subject:To:References:From:Message-ID:Date:MIME-Version:In-Reply-To :Content-Type:Content-Transfer-Encoding:Cc:Reply-to:Sender; t=1591794643; x=1592399443; bh=0gnLWgqDZrhYaBPdomwSRA6RA35s51VNi9dTlTMwX4o=; b=At60Y9iuB/RBWalE4KJqX/LK5sMydlf7B5/3Ne5xeadDg7yMu+BX/dIyt4Qj7NKNoCj67vqY JNbYy8rUL9YxqitWUVsh0/g0TxpPPkCTyX03uusxhFeWOvRreUJuAH/C3I3Ug8XY+rjHvPhV3u a+vmp9Bo96bQvFg9c/ACYO6iQ=
Authentication-Results: lmail.pscs.co.uk; spf=none; auth=pass (cram-md5) smtp.auth=paul
Received: from [192.168.57.138] ([82.68.48.206] (82-68-48-206.dsl.in-addr.zen.co.uk)) by lmail.pscs.co.uk ([192.168.66.70] running VPOP3) with ESMTPSA (TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384) for <ietf-smtp@ietf.org>; Wed, 10 Jun 2020 14:10:42 +0100
To: ietf-smtp@ietf.org
References: <87ftb8p1ii.fsf@llwynog.ekleog.org> <5EDE4545.7070608@isdg.net> <9f0b63fe-60c1-a923-3d78-bf577e6ea5b3@network-heretics.com>
From: Paul Smith <paul@pscs.co.uk>
Message-ID: <d73baf1d-ef7f-7c0e-1e5e-10d8ba748af7@pscs.co.uk>
Date: Wed, 10 Jun 2020 14:10:40 +0100
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.8.1
MIME-Version: 1.0
In-Reply-To: <9f0b63fe-60c1-a923-3d78-bf577e6ea5b3@network-heretics.com>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Content-Language: en-GB
X-Authenticated-Sender: paul
X-Server: VPOP3 Enterprise V7.10 - Registered
X-Organisation: Paul Smith Computer Services
X-VPOP3Tester: 12 345
X-Authenticated-Sender: pscs
Archived-At: <https://mailarchive.ietf.org/arch/msg/ietf-smtp/mpnlwjg2b2SE4fJgFK0XTFxwZOA>
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: Wed, 10 Jun 2020 13:16:36 -0000

On 10/06/2020 12:33, Keith Moore wrote:
>
> The CRLF convention for transfer of Internet text files (in FTP, which 
> was the first protocol used to send email on the ARPAnet), predates 
> the existence of both PC-DOS and MacOS by several years.   I am 
> guessing that FTP got its end-of-line convention for text files from 
> TELNET.

Strictly speaking, CRLF is the "right" one to use given those control 
codes' definitions.

CR takes you back to the start of the current line, and LF takes you to 
the next line (at the current position), so to get to the start of the 
next line, you need either CRLF or LFCR (AIUI CRLF was chosen to give 
the print head more time to go back to the start of the line).

I remember sending CR (without LF) to a printer, and then reprinting the 
last line to make it print 'bold'.


-- 
Paul


-- 


Paul Smith Computer Services
Tel: 01484 855800
Vat No: GB 685 6987 53

Sign up for news & updates at http://www.pscs.co.uk/go/subscribe