You are not logged in.

#1 2026-04-15 09:34:47

pablo-pie
Member
Registered: 2026-04-15
Posts: 4
Website

[SOLVED] Mutt content type error

I am trying to configure NeoMutt to always send my emails with the text/html content type. These are the relevant lines of my configuration files:

# ~/.config/mutt/muttrc
set mailcap_path="~/.config/mutt/mailcap:/usr/share/neomutt/mailcap:/etc/mailcap:/usr/etc/mailcap:/usr/local/etc/mailcap"
set content_type="text/html"
set send_charset="utf-8"
# ~/.config/mutt/mailcap
text/html; lynx -assume_charset=%{charset} -display_charset=utf-8 -collapse_br_tags -dump %s; nametemplate=%s.html; copiousoutput
text/*; less

I can read my emails fine. However, after opening NeoMutt and composing my first email I get the following error message: mailcap entry for type text/html not found. The content type for this email message is correctly set to text/html and the error does not cause any issues when sending this first message, but when composing all subsequent emails the content type is incorrecly set to text/plain!

Is this some sort of error with my system's configuration? For reference, here is my complete muttrc: dotfiles.pablopie.xyz/.config/mutt/muttrc.html.

Last edited by pablo-pie (2026-05-04 16:56:24)

Offline

#2 2026-04-23 09:48:08

pablo-pie
Member
Registered: 2026-04-15
Posts: 4
Website

Re: [SOLVED] Mutt content type error

This issue was caused by a bug in NeoMutt: see neomutt/#4851. A patch should be release soon.

Offline

#3 2026-04-23 09:52:24

pablo-pie
Member
Registered: 2026-04-15
Posts: 4
Website

Re: [SOLVED] Mutt content type error

Also of note: the issue turnout to be unrelated to the mailcap error NeoMutt produces. To get rid of the mailcap error, you need to add a mailcap entry for text/html with edit capabilities: see this comment on the NeoMutt issue tracker.

Offline

#4 2026-05-04 16:54:35

pablo-pie
Member
Registered: 2026-04-15
Posts: 4
Website

Re: [SOLVED] Mutt content type error

The issue was patched on the latest update (neomutt 1:20260504-1).

Offline

Board footer

Powered by FluxBB