On Tue, Dec 08, 2020 at 08:34:09PM +0100, Olaf Hering wrote:
While looking through mutt_lookup_mime_type, I fail to find an exit condition.

It seems the function would parse all three 'mime.types' files. If all three have a match, the system provided entry would override the admin entry, which in turn overrides the user entry.

It looks like it records the longest extension match in cur_sze, and won't override an earlier match unless it's longer. So, I think the
code is okay.

I would guess you could override "gz" in your ~/.mime.types while still allowing the system "tar.gz" entry to provide a better match.

--
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C  5308 ADEF 7684 8031 6BDA

Attachment: signature.asc
Description: PGP signature

Reply via email to