Discussion:
[Mutt] #3985: viewing HTML attachments frequently fails with "File not found"
Mutt
2018-01-18 02:13:11 UTC
Permalink
#3985: viewing HTML attachments frequently fails with "File not found"
----------------------+----------------------
Reporter: adrianvm | Owner: mutt-dev
Type: defect | Status: new
Priority: major | Milestone:
Component: mutt | Version:
Keywords: |
----------------------+----------------------
If I select an HTML message part my browser (firefox) is invoked on the
file /tmp/mutt.html. This file, unfortunately, does not exist most of the
time, and hence I get the error "File not found" from firefox.

If I repeatedly select the HTML message part it usually works after 5-10
attempts. (So I have in my browser perhaps 8 tabs that say "file not
found" and then finally the tab for /tmp/mutt.html with the actual message
content.

My mutt version is: NeoMutt 20170609 (1.8.3).

--
Ticket URL: <https://dev.mutt.org/trac/ticket/3985>
Mutt <http://www.mutt.org/>
The Mutt mail user agent
Mutt
2018-01-18 03:37:19 UTC
Permalink
#3985: viewing HTML attachments frequently fails with "File not found"
-----------------------+----------------------
Reporter: adrianvm | Owner: mutt-dev
Type: defect | Status: closed
Priority: major | Milestone:
Component: mutt | Version:
Resolution: wontfix | Keywords:
-----------------------+----------------------
Changes (by kevin8t8):

* status: new => closed
* resolution: => wontfix


Comment:

This is due to a race condition. Firefox returns immediately when you
launch a new tab. Mutt then cleans up the temp file. It's a coin toss
whether firefox will try to read the temp file before or after it's
removed.

See https://gitlab.com/muttmua/mutt/wikis/MuttFaq/Attachment "How to view
HTML attachments in a new tab in firefox" for an explanation and one
possible solution.

Another possibility would be using a helper script instead. Cameron
Simpson maintains one called apphelper:

* blurb: http://www.cskk.ezoshosting.com/cs/css/apphelper.html
* script: https://bitbucket.org/cameron_simpson/css/src/tip/bin/apphelper
* wrapper: https://bitbucket.org/cameron_simpson/css/src/tip/bin-cs/ah

--
Ticket URL: <https://dev.mutt.org/trac/ticket/3985#comment:1>
Mutt <http://www.mutt.org/>
The Mutt mail user agent
Mutt
2018-01-18 22:05:34 UTC
Permalink
#3985: viewing HTML attachments frequently fails with "File not found"
-----------------------+----------------------
Reporter: adrianvm | Owner: mutt-dev
Type: defect | Status: closed
Priority: major | Milestone:
Component: mutt | Version:
Resolution: wontfix | Keywords:
-----------------------+----------------------

Comment (by adrianvm):

So obvious now that you explain it, and easy to work around now that I
understand what's going on. Thanks.

--
Ticket URL: <https://dev.mutt.org/trac/ticket/3985#comment:2>
Mutt <http://www.mutt.org/>
The Mutt mail user agent

Loading...