[File] Adding text/gemtext to file

Christos Zoulas christos at zoulas.com
Fri Feb 28 19:29:02 UTC 2025


> 
> Thanks a lot. I’ve been able to identify the problem: "file" consider 
> that any text file starting with the string "Article" is message/news 
> type. This might be, IMHO, a bit too restrictive as I could see many 
> cases where a text file would start with "Article" (which is a common 
> word, unlike Xref: or Path: ). 
> 
> In my case, a wikipedia->gemini platform was returning searches results 
> with the first line being "Articles containing your query". 
> 
> So this might be considered as a "bug" in the sense that file should 
> probably return text/plain, not message/news. I don’t know if there’s 
> something that could be done.

Sure, I fixed that...
> 
> I’m also realizing that, unless I missed it, file doesn’t handle text 
> formats like text/markdown so it makes little sense to support 
> text/gemtext.

Yup, does not make sense to add such support at this point.

christos
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.astron.com/pipermail/file/attachments/20250228/f02fb679/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 235 bytes
Desc: Message signed with OpenPGP
URL: <https://mailman.astron.com/pipermail/file/attachments/20250228/f02fb679/attachment-0001.asc>


More information about the File mailing list