emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* mimetype for orgmode files
@ 2017-06-21 14:52 John Kitchin
  2017-06-21 16:36 ` Grant Rettke
  2017-06-22  1:03 ` Adonay Felipe Nogueira
  0 siblings, 2 replies; 16+ messages in thread
From: John Kitchin @ 2017-06-21 14:52 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

[-- Attachment #1: Type: text/plain, Size: 277 bytes --]

Is there an official mimetype for orgmode files?

John

-----------------------------------
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu

[-- Attachment #2: Type: text/html, Size: 579 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: mimetype for orgmode files
  2017-06-21 14:52 mimetype for orgmode files John Kitchin
@ 2017-06-21 16:36 ` Grant Rettke
  2017-06-21 16:56   ` Mario Martelli
  2017-06-22  1:03 ` Adonay Felipe Nogueira
  1 sibling, 1 reply; 16+ messages in thread
From: Grant Rettke @ 2017-06-21 16:36 UTC (permalink / raw)
  To: John Kitchin; +Cc: emacs-orgmode@gnu.org

On Wed, Jun 21, 2017 at 9:52 AM, John Kitchin <jkitchin@andrew.cmu.edu> wrote:
> Is there an official mimetype for orgmode files?

In `mailcap-mime-extensions' there is a value `(".org"   . "text/x-org")'.

Maybe that is for Org-Mode.

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: mimetype for orgmode files
  2017-06-21 16:36 ` Grant Rettke
@ 2017-06-21 16:56   ` Mario Martelli
  2017-06-21 17:17     ` William Denton
  2017-06-21 19:35     ` John Kitchin
  0 siblings, 2 replies; 16+ messages in thread
From: Mario Martelli @ 2017-06-21 16:56 UTC (permalink / raw)
  To: Grant Rettke; +Cc: emacs-orgmode@gnu.org, John Kitchin


[-- Attachment #1.1: Type: text/plain, Size: 554 bytes --]

>> Is there an official mimetype for orgmode files?
> 
> In `mailcap-mime-extensions' there is a value `(".org"   . "text/x-org")'.
> 
> Maybe that is for Org-Mode.

It is :)
https://lists.gnu.org/archive/html/emacs-orgmode/2011-01/msg00977.html <https://lists.gnu.org/archive/html/emacs-orgmode/2011-01/msg00977.html>

If official would mean registered with IANA, then it’s not.
https://www.iana.org/assignments/media-types/media-types.xhtml <https://www.iana.org/assignments/media-types/media-types.xhtml>

Link regards
Mario
— 



[-- Attachment #1.2: Type: text/html, Size: 2945 bytes --]

[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 3690 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: mimetype for orgmode files
  2017-06-21 16:56   ` Mario Martelli
@ 2017-06-21 17:17     ` William Denton
  2017-06-21 19:35     ` John Kitchin
  1 sibling, 0 replies; 16+ messages in thread
From: William Denton @ 2017-06-21 17:17 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

[-- Attachment #1: Type: TEXT/PLAIN, Size: 690 bytes --]

On 21 June 2017, Mario Martelli wrote:

> If official would mean registered with IANA, then it’s not.
> https://www.iana.org/assignments/media-types/media-types.xhtml <https://www.iana.org/assignments/media-types/media-types.xhtml>

On a related note, the =file= command [1] doesn't have the magic to identify Org 
files.

     $ file work-notes.org
     work-notes.org: UTF-8 Unicode text, with very long lines

Writing a pattern to make this work could be an interesting project if someone 
has some spare time some day ...

Bill

[1] https://en.wikipedia.org/wiki/File_%28command%29
-- 
William Denton :: Toronto, Canada :: https://www.miskatonic.org/
Caveat lector.

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: mimetype for orgmode files
  2017-06-21 16:56   ` Mario Martelli
  2017-06-21 17:17     ` William Denton
@ 2017-06-21 19:35     ` John Kitchin
  2017-06-21 20:16       ` Gergely Polonkai
  2017-07-03  5:24       ` Bastien
  1 sibling, 2 replies; 16+ messages in thread
From: John Kitchin @ 2017-06-21 19:35 UTC (permalink / raw)
  To: Mario Martelli; +Cc: emacs-orgmode@gnu.org, Grant Rettke

hm. I tried to use this to update the mime-types on Github
(https://github.com/jshttp/mime-db/pull/82#pullrequestreview-45516223),
but the email isn't primary enough for them.

It seems like if we had something on orgmode.org specifying a mimetype
it might work, although better would be to get it in IANA.

Could we come to an agreement on "text/x-org" or "text/x-orgmode" and
document that on orgmode.org?

Mario Martelli writes:

>  Is there an official mimetype for orgmode files?
>
>  In `mailcap-mime-extensions' there is a value `(".org" . "text/x-org")'.
>
>  Maybe that is for Org-Mode.
>
> It is :)
> https://lists.gnu.org/archive/html/emacs-orgmode/2011-01/msg00977.html
>
> If official would mean registered with IANA, then it’s not.
> https://www.iana.org/assignments/media-types/media-types.xhtml
>
> Link regards
> Mario
> —


--
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: mimetype for orgmode files
  2017-06-21 19:35     ` John Kitchin
@ 2017-06-21 20:16       ` Gergely Polonkai
  2017-07-03  5:24       ` Bastien
  1 sibling, 0 replies; 16+ messages in thread
From: Gergely Polonkai @ 2017-06-21 20:16 UTC (permalink / raw)
  To: John Kitchin, Mario Martelli; +Cc: emacs-orgmode@gnu.org, Grant Rettke

[-- Attachment #1: Type: text/plain, Size: 1372 bytes --]

I'd say text/orgmode (text/x-orgmode if getting into IANA is not an
option). text/org feels too generic, as not everyone is familiar with Org.

On Wed, Jun 21, 2017, 21:36 John Kitchin <jkitchin@andrew.cmu.edu> wrote:

> hm. I tried to use this to update the mime-types on Github
> (https://github.com/jshttp/mime-db/pull/82#pullrequestreview-45516223),
> but the email isn't primary enough for them.
>
> It seems like if we had something on orgmode.org specifying a mimetype
> it might work, although better would be to get it in IANA.
>
> Could we come to an agreement on "text/x-org" or "text/x-orgmode" and
> document that on orgmode.org?
>
> Mario Martelli writes:
>
> >  Is there an official mimetype for orgmode files?
> >
> >  In `mailcap-mime-extensions' there is a value `(".org" . "text/x-org")'.
> >
> >  Maybe that is for Org-Mode.
> >
> > It is :)
> > https://lists.gnu.org/archive/html/emacs-orgmode/2011-01/msg00977.html
> >
> > If official would mean registered with IANA, then it’s not.
> > https://www.iana.org/assignments/media-types/media-types.xhtml
> >
> > Link regards
> > Mario
> > —
>
>
> --
> Professor John Kitchin
> Doherty Hall A207F
> Department of Chemical Engineering
> Carnegie Mellon University
> Pittsburgh, PA 15213
> 412-268-7803
> @johnkitchin
> http://kitchingroup.cheme.cmu.edu
>
>

[-- Attachment #2: Type: text/html, Size: 2353 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: mimetype for orgmode files
  2017-06-21 14:52 mimetype for orgmode files John Kitchin
  2017-06-21 16:36 ` Grant Rettke
@ 2017-06-22  1:03 ` Adonay Felipe Nogueira
  1 sibling, 0 replies; 16+ messages in thread
From: Adonay Felipe Nogueira @ 2017-06-22  1:03 UTC (permalink / raw)
  To: emacs-orgmode

`xdg-mime query filetype "[Path to some .org file.]"` shows
"text/plain", but Gnus in GNU Emacs shows it as "text/x-org".

-- 
- [[https://libreplanet.org/wiki/User:Adfeno]]
- Palestrante e consultor sobre /software/ livre (não confundir com
  gratis).
- "WhatsApp"? Ele não é livre, por isso não uso. Iguais a ele prefiro
  GNU Ring, ou Tox. Quer outras formas de contato? Adicione o vCard
  que está no endereço acima aos teus contatos.
- Pretende me enviar arquivos .doc, .ppt, .cdr, ou .mp3? OK, eu
  aceito, mas não repasso. Entrego apenas em formatos favoráveis ao
  /software/ livre. Favor entrar em contato em caso de dúvida.

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: mimetype for orgmode files
  2017-06-21 19:35     ` John Kitchin
  2017-06-21 20:16       ` Gergely Polonkai
@ 2017-07-03  5:24       ` Bastien
  2017-07-07 12:45         ` John Kitchin
  1 sibling, 1 reply; 16+ messages in thread
From: Bastien @ 2017-07-03  5:24 UTC (permalink / raw)
  To: John Kitchin; +Cc: emacs-orgmode@gnu.org, Mario Martelli, Grant Rettke

Hi John,

John Kitchin <jkitchin@andrew.cmu.edu> writes:

> Could we come to an agreement on "text/x-org" or "text/x-orgmode" and
> document that on orgmode.org?

I'd vote for "text/x-org".  The "mode" part sounds emacsy,
which is precisely not the point for a mimetype.

I can add this sentence to orgmode.org's homepage: 

  The /de facto/ mimetype for org attachments is "text/x-org".

Or any better suggestion?

-- 
 Bastien

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: mimetype for orgmode files
  2017-07-03  5:24       ` Bastien
@ 2017-07-07 12:45         ` John Kitchin
  2017-08-30 15:06           ` Bastien Guerry
  0 siblings, 1 reply; 16+ messages in thread
From: John Kitchin @ 2017-07-07 12:45 UTC (permalink / raw)
  To: Bastien; +Cc: emacs-orgmode@gnu.org, Mario Martelli, Grant Rettke

That would work fine for me.

Let me know the url to that note when you update it so I can use it as a
primary source for the github registration.

Bastien writes:

> Hi John,
>
> John Kitchin <jkitchin@andrew.cmu.edu> writes:
>
>> Could we come to an agreement on "text/x-org" or "text/x-orgmode" and
>> document that on orgmode.org?
>
> I'd vote for "text/x-org".  The "mode" part sounds emacsy,
> which is precisely not the point for a mimetype.
>
> I can add this sentence to orgmode.org's homepage: 
>
>   The /de facto/ mimetype for org attachments is "text/x-org".
>
> Or any better suggestion?


-- 
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: mimetype for orgmode files
  2017-07-07 12:45         ` John Kitchin
@ 2017-08-30 15:06           ` Bastien Guerry
  2017-09-05  2:44             ` John Kitchin
  0 siblings, 1 reply; 16+ messages in thread
From: Bastien Guerry @ 2017-08-30 15:06 UTC (permalink / raw)
  To: John Kitchin; +Cc: emacs-orgmode@gnu.org, Mario Martelli, Grant Rettke

Hi John,

John Kitchin <jkitchin@andrew.cmu.edu> writes:

> Let me know the url to that note when you update it so I can use it as a
> primary source for the github registration.

It is now on orgmode.org homepage: http://orgmode.org/index.html

Best,

-- 
 Bastien

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: mimetype for orgmode files
  2017-08-30 15:06           ` Bastien Guerry
@ 2017-09-05  2:44             ` John Kitchin
  2017-09-05  2:52               ` Yasushi SHOJI
  0 siblings, 1 reply; 16+ messages in thread
From: John Kitchin @ 2017-09-05  2:44 UTC (permalink / raw)
  To: Bastien Guerry; +Cc: emacs-orgmode@gnu.org, Mario Martelli, Grant Rettke

Thanks for letting me know. I let the people at
https://github.com/jshttp/mime-db/pull/82 know that. It looks like org
might be registered as a mimetype now.

Bastien Guerry writes:

> Hi John,
>
> John Kitchin <jkitchin@andrew.cmu.edu> writes:
>
>> Let me know the url to that note when you update it so I can use it as a
>> primary source for the github registration.
>
> It is now on orgmode.org homepage: http://orgmode.org/index.html
>
> Best,


-- 
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: mimetype for orgmode files
  2017-09-05  2:44             ` John Kitchin
@ 2017-09-05  2:52               ` Yasushi SHOJI
  2017-09-05  6:30                 ` Bastien Guerry
  0 siblings, 1 reply; 16+ messages in thread
From: Yasushi SHOJI @ 2017-09-05  2:52 UTC (permalink / raw)
  To: John Kitchin
  Cc: Bastien Guerry, Mario Martelli, emacs-orgmode@gnu.org,
	Grant Rettke

Hi,

There is RFC 6648, which "deprecating the "X-" Prefix".

So, it might be better to use "text/org".

https://tools.ietf.org/html/rfc6648
-- 
               yashi

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: mimetype for orgmode files
  2017-09-05  2:52               ` Yasushi SHOJI
@ 2017-09-05  6:30                 ` Bastien Guerry
  2017-09-05  8:50                   ` Carsten Dominik
  0 siblings, 1 reply; 16+ messages in thread
From: Bastien Guerry @ 2017-09-05  6:30 UTC (permalink / raw)
  To: Yasushi SHOJI
  Cc: Mario Martelli, Grant Rettke, emacs-orgmode@gnu.org, John Kitchin

Hi Yasushi,

Yasushi SHOJI <yasushi.shoji@gmail.com> writes:

> There is RFC 6648, which "deprecating the "X-" Prefix".

Thanks for letting us know!

> So, it might be better to use "text/org".

I’m fine with "text/org".  John?  Others?

I’ll make the change later this week if nobody disagrees.

Thanks,

-- 
 Bastien

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: mimetype for orgmode files
  2017-09-05  6:30                 ` Bastien Guerry
@ 2017-09-05  8:50                   ` Carsten Dominik
  2017-09-05 13:28                     ` John Kitchin
  0 siblings, 1 reply; 16+ messages in thread
From: Carsten Dominik @ 2017-09-05  8:50 UTC (permalink / raw)
  To: Bastien Guerry
  Cc: Yasushi SHOJI, emacs-orgmode@gnu.org, Mario Martelli,
	John Kitchin, Grant Rettke

[-- Attachment #1: Type: text/plain, Size: 496 bytes --]

On Tue, Sep 5, 2017 at 8:30 AM, Bastien Guerry <bzg@gnu.org> wrote:

> Hi Yasushi,
>
> Yasushi SHOJI <yasushi.shoji@gmail.com> writes:
>
> > There is RFC 6648, which "deprecating the "X-" Prefix".
>
> Thanks for letting us know!
>
> > So, it might be better to use "text/org".
>
> I’m fine with "text/org".  John?  Others?
>

text/org seems to be perfect.

Carsten


>
> I’ll make the change later this week if nobody disagrees.
>
> Thanks,
>
> --
>  Bastien
>
>

[-- Attachment #2: Type: text/html, Size: 1215 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: mimetype for orgmode files
  2017-09-05  8:50                   ` Carsten Dominik
@ 2017-09-05 13:28                     ` John Kitchin
  2017-09-05 13:35                       ` Bastien Guerry
  0 siblings, 1 reply; 16+ messages in thread
From: John Kitchin @ 2017-09-05 13:28 UTC (permalink / raw)
  To: Carsten Dominik
  Cc: Yasushi SHOJI, Bastien Guerry, emacs-orgmode@gnu.org,
	Grant Rettke, Mario Martelli

I guess I have no objections. Let me know when it is done, and I will
see about updating mimedb.

Carsten Dominik writes:

> On Tue, Sep 5, 2017 at 8:30 AM, Bastien Guerry <bzg@gnu.org> wrote:
>
>> Hi Yasushi,
>>
>> Yasushi SHOJI <yasushi.shoji@gmail.com> writes:
>>
>> > There is RFC 6648, which "deprecating the "X-" Prefix".
>>
>> Thanks for letting us know!
>>
>> > So, it might be better to use "text/org".
>>
>> I’m fine with "text/org".  John?  Others?
>>
>
> text/org seems to be perfect.
>
> Carsten
>
>
>>
>> I’ll make the change later this week if nobody disagrees.
>>
>> Thanks,
>>
>> --
>>  Bastien
>>
>>


-- 
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: mimetype for orgmode files
  2017-09-05 13:28                     ` John Kitchin
@ 2017-09-05 13:35                       ` Bastien Guerry
  0 siblings, 0 replies; 16+ messages in thread
From: Bastien Guerry @ 2017-09-05 13:35 UTC (permalink / raw)
  To: John Kitchin
  Cc: Yasushi SHOJI, Carsten Dominik, Mario Martelli,
	emacs-orgmode@gnu.org, Grant Rettke

John Kitchin <jkitchin@andrew.cmu.edu> writes:

> I guess I have no objections. Let me know when it is done, and I will
> see about updating mimedb.

Done!

-- 
 Bastien

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2017-09-05 13:36 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-21 14:52 mimetype for orgmode files John Kitchin
2017-06-21 16:36 ` Grant Rettke
2017-06-21 16:56   ` Mario Martelli
2017-06-21 17:17     ` William Denton
2017-06-21 19:35     ` John Kitchin
2017-06-21 20:16       ` Gergely Polonkai
2017-07-03  5:24       ` Bastien
2017-07-07 12:45         ` John Kitchin
2017-08-30 15:06           ` Bastien Guerry
2017-09-05  2:44             ` John Kitchin
2017-09-05  2:52               ` Yasushi SHOJI
2017-09-05  6:30                 ` Bastien Guerry
2017-09-05  8:50                   ` Carsten Dominik
2017-09-05 13:28                     ` John Kitchin
2017-09-05 13:35                       ` Bastien Guerry
2017-06-22  1:03 ` Adonay Felipe Nogueira

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).