I attached foo.webp to an email and mutt used application/octet-stream.
I think to fix this mime.types needs to contain "image/webp webp".
https://en.wikipedia.org/wiki/WebP
Debian already supports this file format, and
file(1) uses the the correct media type (née MIME type):
$ gm convert rose: webp:- | file --mime -
/dev/stdin: image/webp; charset=binary
I think the RIGHT fix is to trick Google into filing IANA paperwork so it appears here:
https://www.iana.org/assignments/media-types/image.csv
I think if that is done, Debian will get it automatically.
Is that right?
Can mime-support add it right now (before IANA)?
I understand that in the meantime, I can patch it
per-user in ~/.mime.types or
per-host in /etc/mime.types (but not /etc/mime.types.d/foo.conf).
-- System Information:
Debian Release: 10.7
APT prefers stable
APT policy: (990, 'stable'), (500, 'stable-updates'), (500, 'proposed-updates')
Architecture: amd64 (x86_64)
Kernel: Linux 5.6.0-0.bpo.2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_AU.utf8, LC_CTYPE=en_AU.utf8 (charmap=UTF-8), LANGUAGE=en_AU:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
mime-support depends on no packages.
Versions of packages mime-support recommends:
ii bzip2 1.0.6-9.2~deb10u1
ii file 1:5.35-4+deb10u1
ii xz-utils 5.2.4-1
mime-support suggests no packages.
-- debconf-show failed