Re: [ietf-smtp] [Proposal] 250-MARKDOWN

Gilles Chehade <gilles@poolp.org> Wed, 09 January 2019 08:20 UTC

Return-Path: <gilles@poolp.org>
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 2446F130934 for <ietf-smtp@ietfa.amsl.com>; Wed, 9 Jan 2019 00:20:41 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2
X-Spam-Level:
X-Spam-Status: No, score=-2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, UNPARSEABLE_RELAY=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=poolp.org
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 IVl2ZFsN_ojZ for <ietf-smtp@ietfa.amsl.com>; Wed, 9 Jan 2019 00:20:39 -0800 (PST)
Received: from out.mailbrix.mx (out.mailbrix.mx [212.83.129.132]) (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 5E4F7128766 for <ietf-smtp@ietf.org>; Wed, 9 Jan 2019 00:20:38 -0800 (PST)
Received: from poolp.org (localhost [127.0.0.1]) by poolp.org (OpenSMTPD) with ESMTP id 75b47590; Wed, 9 Jan 2019 09:20:34 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=poolp.org; h=date:from:to :cc:subject:message-id:references:mime-version:content-type :in-reply-to; s=opensmtpd; bh=e9dW2ya7hlbf/tdpQJObPXP3CBg=; b=yP pzJVr/J97tF41ZM6siVDm23rpPCUtZDys6CL4vJxT0U4ntfUKd6/0dG3qyHx61tb 8BJ5NVsGOHuCWNNRxC/Y2sW1Ee3qI9eEFVwz9CgddcMZvFN/pSAsOvNdVqiShlYy ieR+NdO0WkgoASvdqdDOZfFBNmb8EC/M6itnUUqrA=
Received: from localhost (poolp.org [local]) by poolp.org (OpenSMTPD) with ESMTPA id 9fc96a2a; Wed, 9 Jan 2019 09:20:34 +0100 (CET)
Date: Wed, 09 Jan 2019 09:20:34 +0100
From: Gilles Chehade <gilles@poolp.org>
To: Viruthagiri Thirumavalavan <giri@dombox.org>
Cc: ietf-smtp@ietf.org
Message-ID: <20190109082034.GA75621@ams-1.poolp.org>
References: <CAOEezJRwe9iSbGyBfyHNPn8=2avo6bAoFY56++HLY5+FZHhWgw@mail.gmail.com> <144aafd5-7468-4d55-a7b7-bead5cc67e1e@email.android.com> <CAOEezJTakEcxq7MtYXTjjRAPCM8uGcfzMUHetRPY6enn-Bb10w@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
In-Reply-To: <CAOEezJTakEcxq7MtYXTjjRAPCM8uGcfzMUHetRPY6enn-Bb10w@mail.gmail.com>
User-Agent: Mutt/1.10.1 (2018-07-13)
Archived-At: <https://mailarchive.ietf.org/arch/msg/ietf-smtp/CadJRus6MPenKVPNrC_WJ8ZYB6A>
Subject: Re: [ietf-smtp] [Proposal] 250-MARKDOWN
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, 09 Jan 2019 08:20:41 -0000

On Wed, Jan 09, 2019 at 01:25:43PM +0530, Viruthagiri Thirumavalavan wrote:
> >
> > After reading your proposal, I don't quite understand what it is about and
> > what is expected from SMTP implementations.
> 
> 
> I wanted to introduce the keyword "MARKDOWN" in the list of EHLO response.
> So the client can understand and transfer the messages directly with
> content type "text/markdown"
> 

but what is preventing the client from doing so today ?

why does the server need to tell the client that it can send in text/markdown,
when the client can already do so and the server doesn't actually care for the
content type since it's part of the DATA and not the transport ?


> The content type is part of the message, not part of the protocol
> 
> 
> I'm using the content type in the message right?
> 

yes, which is why I don't understand why it also needs to be part of protocol.

put it differently, what do you expect the SMTP implementation to do when this
MARKDOWN extension is used that it doesn't do when it isn't used ?


> also your rationale seems to equate one SMTP session to one message but a
> > single session may transport multiple messages with different messages with
> > different content types.
> 
> 
> Ok what am I missing here? When a server says that "I recognize markdown
> format", then the client gonna send markdown messages as it is. I
> understand a session can transport multiple messages. But why do you think
> it won't work?
> 

well, as someone writing a server implementation:

      When a server says that "I recognize markdown format"

that sentence doesn't make sense to me because the server does not recognize a
format or another, it's in charge of the transport, not of rendering or making
any sense out of the DATA part. it feels like a violation of layer, DATA spill
over transport.

Now as to why it wouldn't work, well, assuming the transport protocol actually
had to know what's inside DATA, if you use the MARKDOWN extension then how can
the same session transport another message that's not a markdown message ? The
session is "tainted" as MARKDOWN session when you use that extension... so why
would I bother implementing it if DATA already contains the content-type ?

How comes MARKDOWN is needed and HTML wasn't given that they are basically the
same use-case with a different encoding format ?

Not to mention that many implementations establish SMTP sessions based on what
is on the envelope (FROM/TO) and not what's in DATA, so sessions would require
that implementations look at DATA to determine what it contains before setting
up the SMTP session.

-- 
Gilles Chehade						       @poolpOrg

https://www.poolp.org                 tip me: https://paypal.me/poolpOrg