There are 2 ways of opening an email attachment : pressing <enter> or m, which would invoke view-attach or view-mailcap respectively.
In mutt, describing a mailcap entry as copiousoutput allows me to open the attachment in mutt when pressing <enter>. In contrast, if there is a matching entry without that option, it will take precedence when using m.
For example:
text/html; (firefox %s &) && sleep 0.5; test=RunningX
text/html; /usr/bin/w3m -I %{charset} -s -T text/html -dump; copiousoutput
Hitting <enter> would use the second entry; with m, the first one is used.
Neomutt always use the first entry, no matters if I use <enter> or m.
Find an email with a text/html attachment. Put those 2 lines early in your mailcap file. Try to open the attachment using <enter> and m. Both attempts will open the file in firefox.
I tried to track it back in using git bisect, but I got as early as 2013 commits with the same behavior described above. If I use mutt instead (default version of my distro) with the same configuration files I have for neomutt, the behavior is as expected.
As mentioned above, it did not change when I tried to compile neomutt with several commits, even with date of 2013.
Ubuntu 19.04
Yes, my email was open the whole time. I haven't thought about that.
No
Local (maildir with isync)
I've bisected this and the cause is f62d8987721265f91d38552705e3facbb20be0c6.
Reverting this fixes _this_ issue, but I haven't considered the original issue #430
See branch devel/mailcap
Most helpful comment
I've bisected this and the cause is f62d8987721265f91d38552705e3facbb20be0c6.
Reverting this fixes _this_ issue, but I haven't considered the original issue #430
See branch devel/mailcap