#mailcap

2025-04-26

#telescope-browser #gemini #mailcap

In praise of mailcap.

A while ago, I implemented a bastardised version of RFC1524 -- the RFC specifying how mailcap should behave (datatracker.ietf.org/doc/html/)

Although it's considered old-hat these days, there's still applications which support it: (neo)mutt, imagemagik, elinks, etc.

It's a really good format for specifying mime-handling and applications to handle them, in a portable way. Originally used for mail applications, it's adoption has changed.

Timewas, /etc/mailcap was a file distriuted with many Linux distros to centralise this information.

Now, XDG has taken over -- and I can't agree it's necessarily been for the better.

Before I implemened mailcap support in #telescope, we discussed other alternatives -- and I'm glad we went with mailcap.

Why am I mentioning this?

Because recently, I had to configure a handful of applications, all of which had their own subtle and annoying way of doing the same thing.

Mailcap would have solved it for all of these applications had they used that.

Simon D. ⏚Siltaer@mamot.fr
2024-09-16

#catimg remplace aujourd'hui #cacaview dans mon fichier #Mutt #mailcap
grimoire.d12s.fr/2018/mutt_mai

```
image/*; catimg -t -r 2 -w %s; needsterminal
```

Support de couleurs 24bits ou repli vers 256 couleurs (-t).
Résolution possible en quart de lettre (-r 2).
Ajustement automatique du rendu à la largeur du terminal… (-w)

Permet vraiment le lire le contenu d'une image depuis un terminal.

#grimcom

2024-06-18

#gemini #smol #telescope #mailcap

There’s been a recent change in the telescope Gemini browser to make use of mailcap to define external mime type handling.

Please test if you can.

Feedback to myself and @op welcome.

codeberg.org/telescope-browser

Simon D. ⏚Siltaer@mamot.fr
2019-10-02

#Lynx a du mal avec #UTF-8, #w3m s'en sort mieux, voici donc une petite mise à jour de mon #mailcap pour #mutt :
grimoire-command.es/2018/mutt_

Petite mise à jour aussi pour mes reco #sysctl en cas d'installation sans #swap, vm.vfs_cache_pressure=200 fait des merveilles :
grimoire-command.es/2019/no_sw

2018-05-14

Using #mutt and a #mailcap entry similar to the following you can yawn at #efail

text/html; /usr/bin/elinks -localhost 1 -no-connect 1 -force-html -dump '%s'; copiousoutput

Unless a mail is encrypted to several recipients and one of those is using a vulnerable mail client of course..

Simon D. ⏚Siltaer@mamot.fr
2018-04-11

Instruire Mutt sur la conduite à tenir face à certaines pièces jointes.
grimoire-command.es/2018/mutt_ #mutt #mailcap

Si vous voyez des mailcaps à ajouter à cette liste, répondez-moi :-)

Simon D. ⏚Siltaer@mamot.fr
2017-12-13

L'émulateur de terminal d'XFCE dans Debian Stretch introduit de nouveaux raccourcis claviers, et attrape ainsi au vol les "CTRL +" et "CTRL -" pour grossir ou rétrécir la font… Résultat, une affiche de concert transmise en Colored #ASCIIart via #cacaview devient lisible (avant / après) : mamot.fr/media/Aj2h2QwOReLDl1l mamot.fr/media/vLjJzFQwgasqCWB #mutt #image #libcaca #mailcap #email

Client Info

Server: https://mastodon.social
Version: 2025.07
Repository: https://github.com/cyevgeniy/lmst