Re: [Tools-discuss] Uploading a Markdown agenda

Tom Pusateri <pusateri@bangj.com> Wed, 18 March 2020 17:59 UTC

Return-Path: <pusateri@bangj.com>
X-Original-To: tools-discuss@ietfa.amsl.com
Delivered-To: tools-discuss@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 282BB3A1993 for <tools-discuss@ietfa.amsl.com>; Wed, 18 Mar 2020 10:59:50 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.079
X-Spam-Level:
X-Spam-Status: No, score=-2.079 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, T_SPF_HELO_TEMPERROR=0.01, T_SPF_TEMPERROR=0.01, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=bangj.com
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 REz5bHM7UAYH for <tools-discuss@ietfa.amsl.com>; Wed, 18 Mar 2020 10:59:36 -0700 (PDT)
Received: from oj.bangj.com (69-77-154-174.static.skybest.com [69.77.154.174]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id DBF463A18ED for <tools-discuss@ietf.org>; Wed, 18 Mar 2020 10:59:26 -0700 (PDT)
Received: from [172.16.10.175] (mta-107-13-246-59.nc.rr.com [107.13.246.59]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by oj.bangj.com (Postfix) with ESMTPSA id 3BBFE399F5; Wed, 18 Mar 2020 13:59:24 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=bangj.com; s=201907; t=1584554364; bh=IJarfGF+xXPp400Agaz65o9hLICCH8P6qtQrB/2GT2g=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=KvtYQxzgDTq+Iipnac6WWLCbqcdAaTS+8nmzoeMWiZGNubsLjlQrDNjBcUmuXgwqK 7B1SDmmTydKiQ2teO8O9W2qBnBtnKWnrvZnFK+D/dGXJCNpMPbrQcAjRz6VvXHRl/6 LdIBLplklyxFbeW0EikJX8yR/0ce8oJIFpYQDWKwMtHa/s+efhitPQv7iUnqblIcSg fE5w8fOrMd3HrBvUuPoWd6Y6mGb5NAJjYdgwvfqZGtnM3URQfoIIgPwzxA96PeTkA+ mCvS4jOmcB4LCYNMIwfIkzfPD66KhzF/pU4AnY53sia9PfXE1ywDrJRrc8+oeKRaZw zcYr8KeLt66bg==
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.60.0.2.5\))
From: Tom Pusateri <pusateri@bangj.com>
In-Reply-To: <0CAD83F8-EF1C-46AC-AF5A-7D026A8634A8@tzi.org>
Date: Wed, 18 Mar 2020 13:59:23 -0400
Cc: Yaron Sheffer <yaronf.ietf@gmail.com>, Julian Reschke <julian.reschke@gmx.de>, "tools-discuss@ietf.org" <tools-discuss@ietf.org>
Content-Transfer-Encoding: quoted-printable
Message-Id: <AE4E8282-3AA5-45F1-B4D4-435C9008C945@bangj.com>
References: <9067761F-789D-4D6F-A968-5A07359C8292@bangj.com> <8A548E37-71C9-447D-A6FC-DB1F83A0CE38@tzi.org> <B76C4D86-23B4-4CD4-BF56-1EE81249BA9A@bangj.com> <D3401617-362D-4B29-B29C-3B70AA7D3F2B@gmail.com> <4897c074-a29b-4865-fb04-7984bdbe35e7@gmx.de> <158FDE6F-EE2D-494B-BA11-95E4BA84CFAA@gmail.com> <18c1a03c-a12f-6494-f7ff-2a5b92398f36@gmx.de> <CEBBB220-7F57-465B-AD67-A1415B1DB17B@tzi.org> <95C2B240-D796-4B27-8B29-24199DD1C541@gmail.com> <0CAD83F8-EF1C-46AC-AF5A-7D026A8634A8@tzi.org>
To: Carsten Bormann <cabo@tzi.org>
X-Mailer: Apple Mail (2.3608.60.0.2.5)
Archived-At: <https://mailarchive.ietf.org/arch/msg/tools-discuss/mNJrqm6a7cBi6K_QU_zixSgqGiY>
Subject: Re: [Tools-discuss] Uploading a Markdown agenda
X-BeenThere: tools-discuss@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: IETF Tools Discussion <tools-discuss.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/tools-discuss>, <mailto:tools-discuss-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/tools-discuss/>
List-Post: <mailto:tools-discuss@ietf.org>
List-Help: <mailto:tools-discuss-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tools-discuss>, <mailto:tools-discuss-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 18 Mar 2020 17:59:51 -0000

> On Mar 18, 2020, at 10:02 AM, Carsten Bormann <cabo@tzi.org> wrote:
> 
> On 2020-03-18, at 13:52, Yaron Sheffer <yaronf.ietf@gmail.com> wrote:
>> 
>> The Mac is a weird weird place.
> 
> I’m not claiming I understand it…
> 
> In any case, reacting on the purported media type of something uploaded by a browser of undefined configuration does not strike me as a winning strategy.
> 
> Grüße, Carsten

I think the current strategy employed by the datatracker is actually ok. I don’t quite understand what is happening on Yaron’s Mac but we can figure it out.

In any event, the design is that files ending with .md are recognized as mime-type text/markdown

Maybe I got this by installing Xcode but this does seem to be the case in the Finder Get Info window.

This is uploaded by the browser as text/markdown and then the datatracker runs a python program that guesses what the mime type is based on the actual content.

If it guesses that the actual content is text/plain and the mime type is set to text/markdown, then it is accepted as text/markdown.

This is why I suggested running the unix file command because it also guesses on the type based on the content, unlike the assigned mime-type based on the file extension.

Yaron, if you open the directory containing your markdown file in the Finder and select it hit CMD-I (Info), what is the Kind report as and what application does it open with by default?

Thanks,
Tom