Re: [ietf-smtp] Testing From-Munging

Alessandro Vesely <vesely@tana.it> Fri, 01 April 2022 10:43 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 7743A3A0F47 for <ietf-smtp@ietfa.amsl.com>; Fri, 1 Apr 2022 03:43:07 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.109
X-Spam-Level:
X-Spam-Status: No, score=-7.109 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, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=neutral reason="invalid (unsupported algorithm ed25519-sha256)" header.d=tana.it header.b=ERfoAYM/; dkim=pass (1152-bit key) header.d=tana.it header.b=B5bn0/Xt
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 8bisiqaDaxxG for <ietf-smtp@ietfa.amsl.com>; Fri, 1 Apr 2022 03:43:01 -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 7B8D13A0FCA for <ietf-smtp@ietf.org>; Fri, 1 Apr 2022 03:42:47 -0700 (PDT)
DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=tana.it; s=epsilon; t=1648809765; bh=u9whT3+9NmI5er6f0hShMeksaddNA+zT7ZIlqS8sQ3k=; h=Date:Subject:To:References:From:In-Reply-To; b=ERfoAYM/QoFPgwVLD0uWvLLxPpzs3gmyBS/AiQ7aM9Cj+oyWknw6aHj3K4VMDmaw6 Y9N4dgKt+/DhWUIBbjqBA==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tana.it; s=delta; t=1648809765; bh=u9whT3+9NmI5er6f0hShMeksaddNA+zT7ZIlqS8sQ3k=; h=Date:To:References:From:In-Reply-To; b=B5bn0/XtanJYJBuebzUCk/dpca1kp21rZAtLkdCNgv3bRzoC2V9QcUpKEaxMY0TgI UoPNG5CgdMnAP9W3cVJIfWF/kHNlB7NuSWkYKPYfYb45N9rkBHQcq0/oh/ayBMsHH9 ZcjlYjzfuLZvtf1kox0ebLJYlrghukutH+g7XvtFsauzTtwv0AdJjb63DazQ+
Author: Alessandro Vesely <vesely@tana.it>
Received: from [172.25.197.111] (pcale.tana [172.25.197.111]) (AUTH: CRAM-MD5 uXDGrn@SYT0/k, TLS: TLS1.3, 128bits, ECDHE_RSA_AES_128_GCM_SHA256) by wmail.tana.it with ESMTPSA id 00000000005DC033.000000006246D725.00005F2A; Fri, 01 Apr 2022 12:42:45 +0200
Message-ID: <97937dd6-5be4-9009-69e7-213a3755cc5b@tana.it>
Date: Fri, 01 Apr 2022 12:42:45 +0200
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.6.2
Content-Language: en-US
To: ietf-smtp@ietf.org
References: <wOeAYHU0t0oidcJI13rpJxWmHK39s6RYg7QOr3xuxv0_Rm2P2rIgYtoKNot74IvLpIlGybJhHGmE_TgI0YgEbaxCrLLMwr4Wk6b_Dq5UK_g=@protonmail.com> <CAHej_8meARhJWHeJEMwNkkqCp8idQehiO=bb9SkqbatHUOsZ9g@mail.gmail.com> <BM7YT092MMqf5RO5rnoXeFHzAPT3LxvRlwaIiVI9v06Wq0tc23ha8s43n3gqkBmVQPsLat91gqwJKD6QkqMfgM38xtXf4LbnTwibL1l6RRc=@protonmail.com>
Authentication-Results: tana.it; auth=pass (details omitted)
From: Alessandro Vesely <vesely@tana.it>
In-Reply-To: <BM7YT092MMqf5RO5rnoXeFHzAPT3LxvRlwaIiVI9v06Wq0tc23ha8s43n3gqkBmVQPsLat91gqwJKD6QkqMfgM38xtXf4LbnTwibL1l6RRc=@protonmail.com>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 8bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/ietf-smtp/AZdHnAmgsacWHj3N1F6NCxKLH3Q>
Subject: Re: [ietf-smtp] Testing From-Munging
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: Fri, 01 Apr 2022 10:43:08 -0000

On Wed 30/Mar/2022 18:36:15 +0200 dkg wrote:
> heh -- there are multiple forms of From-munging, i guess.  This test wasn't 
> about the "From:" header field (which i think is what you're talking about).  
> This test was about the "From " in the body of the message getting prefixed 
> with a ">" character, which it did.


I've been wondering how did it came.  While the message I'm replying to was correctly unmunged[*], that message with the >From was not.  I tried removing the > but couldn't verify the message just the same.  I couldn't understand why.


> It's a relic of the old mbox format, where each message started with a line 
> with "From ", so the message bodies that had that got a > prepended to them so 
> that they wouldn't start a new message.  This shouldn't really be happening on 
> modern systems for new messages,  though, since there are much better formats 
> than mbox available today.


 From me, anyway, software puts a space in front of a line starting with "From ", before signing.


Best
Ale
-- 

[*] The top of the header was:

Return-Path: <ietf-smtp-bounces@ietf.org>
Authentication-Results: wmail.tana.it;
   spf=pass smtp.mailfrom=ietf.org;
   dkim=pass reason="Original-From: transformed" header.d=protonmail.com;
   dkim=pass (whitelisted) header.d=ietf.org
     header.b=WWoRKnFl;
   dkim=fail (signature verification failed, whitelisted) header.d=ietf.org
     header.b=HjTqFzsR
From: dkg <dkg@protonmail.com>
...
...