On 2022-10-08 11:52, Chris Green wrote: > On Sat, Oct 08, 2022 at 12:06:52PM +0200, Jan Eden via Mutt-users wrote: > > On 2022-10-08 09:34, Chris Green wrote: > > > On Sat, Oct 08, 2022 at 10:25:29AM +0200, Jan Eden via Mutt-users wrote: > > > > Hi, > > > > > > > > I recently configured mutt on a Linux system, and cannot display HTML > > > > messages in the default browser. mailcap contains the following lines: > > > > > > > > text/html; open %s; > > > > text/html; w3m -I %{charset} -T text/html; copiousoutput > > > > application/pdf; open %s; copiousoutput > > > > > > > > w3m is used automatically (auto_view text/html), and PDF documents are > > > > opened correctly in evince. > > > > > > > > But when I try to open an HTML message manually, Firefox displays either > > > > a permission denied error (with AppArmor enabled), or a file not found > > > > error – both pointing to the message's filename. > > > > > > > > How can I allow Firefox to access and display the message? > > > > > > > I no longer use Firefox on my xubuntu system (I've moved to Vivaldi) > > > but I seem to remember that Firefox's security paranoia means that you > > > now have to explicitly configure to allow access to files on the local > > > system. > > > > With AppArmor disabled, Firefox tries to display the message, but cannot > > find the message file in /var/tmp/ – %s seems to point to that > > directory. > > > > In Firefox' settings, I did not find any parameter to keep the browser > > from accessing local files. > > > > > By 'manually' I presume you mean v[iew] the message parts and then > > > m[view-mailcap] the html. > > > > Yes. > > > When I view an HTML message like this the address is like:- > > file:///srv/mutt/mutt-esprimo-1000-151542-10027422769961820949.html > > I use a script (called via mailcap) to store the HTML message in that > directory. > > So, in mailcap I have:- > > [...] > > You don't need the bit for remote viewing from my laptop, just the "running > locally" > bit.
Thank you! This works well with Epiphany, but Firefox still fails (which I do not care about, as long as I have a working browser option). - Jan
signature.asc
Description: PGP signature