Re: [Tools-discuss] Uploading a Markdown agenda

Yaron Sheffer <yaronf.ietf@gmail.com> Wed, 18 March 2020 18:07 UTC

Return-Path: <yaronf.ietf@gmail.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 B36D03A1A0D for <tools-discuss@ietfa.amsl.com>; Wed, 18 Mar 2020 11:07:18 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.384
X-Spam-Level:
X-Spam-Status: No, score=-0.384 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, FREEMAIL_FROM=0.001, MALFORMED_FREEMAIL=1.713, MIME_QP_LONG_LINE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 f9hcqn_wnaeY for <tools-discuss@ietfa.amsl.com>; Wed, 18 Mar 2020 11:07:14 -0700 (PDT)
Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 356523A1B60 for <tools-discuss@ietf.org>; Wed, 18 Mar 2020 11:06:13 -0700 (PDT)
Received: by mail-wm1-x32f.google.com with SMTP id c187so3220162wme.1 for <tools-discuss@ietf.org>; Wed, 18 Mar 2020 11:06:13 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=user-agent:date:subject:from:to:cc:message-id:thread-topic :references:in-reply-to:mime-version:content-transfer-encoding; bh=iBd60h1fP/DPLiHc4al5+5jmhTJv5tKY+/60MDiQisM=; b=mNJeQIQmZjaNheXjiZ9NLoBae6fiDu5WuHl0jmmC5g2zNS4faQZRTrVWO0VojU5Z2I 66Ip+IsrxrCrcFubkFc+HIAjna5IPQNmnxoKeq3jHu9w6QqXDEKcud67PCmq8e9v8LEk Q0U+2S5Wpvpr2guCf/w0igHUtAbfROsHItNFGLl5gqxAX80N6pNnynTZ6FGJTw/Zb4vp xvRGVRVw9WuPPh2+wNq6Ig4/GuV7kmcTmX3qTPA0MVJwvPwG4tQTnlwvUIIoogEta9ll MKEUDAw6hlX+i6uuvxSENuNG8zQzLaXZnQY8G3ypmLBAtMXpx4QwE5Xzh5UPjcisU0lu Wd0g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:user-agent:date:subject:from:to:cc:message-id :thread-topic:references:in-reply-to:mime-version :content-transfer-encoding; bh=iBd60h1fP/DPLiHc4al5+5jmhTJv5tKY+/60MDiQisM=; b=RWJOjYk224fS4GFi87iTukSAnFggNvdzuV2pnq8GxFZaUlxv+bxn85hC8+ljIvGRBS QZ9oZWR21DgVtxHZS+cQcEVqUxvM00gfTA4Z91QfLD4W7BdrAJGdZD6MQDq8jRhS1g1v clXkJ5Lkg0fsYsVrlxE1+BbX8yDUj5bcFfW7uAHBuviTZTXnC/HsWJ+kmFP0e7fwQI4b uJ1LVZmV62wVJtu6k4zapi9vcIm5DwclmbjttfvxkczcOmuTVEetXB2P/mDwqbfk6r6p 4YDtGsv4xJvRnX7kBS/Px8nFeoW9BpRMo1csC7jz/rOgNGaHfl9AeaCuw/vH4IEw6KmY Wp9Q==
X-Gm-Message-State: ANhLgQ1vUm3epEcSwaIlORsTKc3B9ZSoLtUgLad8gXLvexrA6pl1HUhF pyiy8p/Z2jVRpRywXXl+Exg=
X-Google-Smtp-Source: ADFU+vuSeF7LmEIv3jBOfDZv+BIKp60RqviKX8WxEzhvEO3C9GA/IvAj3ebwKuY5fTWU/inatsy77A==
X-Received: by 2002:a1c:5fc4:: with SMTP id t187mr6143118wmb.81.1584554770140; Wed, 18 Mar 2020 11:06:10 -0700 (PDT)
Received: from [10.0.0.144] (bzq-79-178-61-110.red.bezeqint.net. [79.178.61.110]) by smtp.gmail.com with ESMTPSA id t124sm4957019wmg.13.2020.03.18.11.06.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 Mar 2020 11:06:08 -0700 (PDT)
User-Agent: Microsoft-MacOutlook/16.35.20030802
Date: Wed, 18 Mar 2020 20:06:07 +0200
From: Yaron Sheffer <yaronf.ietf@gmail.com>
To: Tom Pusateri <pusateri@bangj.com>, Carsten Bormann <cabo@tzi.org>
CC: Julian Reschke <julian.reschke@gmx.de>, "tools-discuss@ietf.org" <tools-discuss@ietf.org>
Message-ID: <451179FB-D7CC-4067-8C16-83986E400D2E@gmail.com>
Thread-Topic: [Tools-discuss] Uploading a Markdown agenda
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> <AE4E8282-3AA5-45F1-B4D4-435C9008C945@bangj.com>
In-Reply-To: <AE4E8282-3AA5-45F1-B4D4-435C9008C945@bangj.com>
Mime-version: 1.0
Content-type: text/plain; charset="UTF-8"
Content-transfer-encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/tools-discuss/RwCHONAYjZDaJl41ndheovPJrl4>
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 18:07:20 -0000

Hi Tom,

The Kind shows as "md 文件" (MD, space, then two Chinese characters). I frankly have no idea how that happened. The default application is Typora, a common Markdown editor.

Sadly, the browser sends it on the POST message with: Content-Type: application/octet-stream

Thanks,
	Yaron

On 3/18/20, 19:59, "Tom Pusateri" <pusateri@bangj.com> wrote:

    
    > 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