From: martin f. krafft Date: Sun, 12 Aug 2018 01:19:48 +0000 (+1200) Subject: Attachment viewing in the background X-Git-Url: https://git.madduck.net/etc/mutt.git/commitdiff_plain/76227d1c302ee76d82c037e923c70edc61fd5aea?hp=76227d1c302ee76d82c037e923c70edc61fd5aea Attachment viewing in the background This makes use of Mutt's internal mailcap handling to inject a script before deferring to run-mailcap, saving the attachment to a temporary file, backgrounding the viewer process, and then cleaning up the temporary stuff after its return. Stdout/stderr are reported using Awesome's naughty library, so this will not work on other window managers for now. text/html files are handled differently to address the issue that Firefox would return to the shell before the remote process even accessed the file (https://bugzilla.mozilla.org/show_bug.cgi?id=1482024) ---