On 15297 March 1977, Joerg Jaspert wrote:
Looking at the file, it has nice rights so i am allowed to open it. file
on it reports it as postscript. But silly evince hates it. mv to the
rescue: Put a ".ps" at the end and boo, evince opens it all fine.
Guess you want to adjust the tempfile name...
And here is a simple diff that makes it work. I guess the other print
methods may need it too.
--- /usr/share/emacs/site-lisp/elpa-src/notmuch-0.28/notmuch-print.el
2018-10-20 19:25:09.000000000 +0200
+++ notmuch-print.el 2019-01-29 22:03:40.098623179 +0100
@@ -82,7 +82,7 @@
(defun notmuch-print-muttprint/evince (msg)
"Preview a message buffer using muttprint and evince."
- (let ((ps-file (make-temp-file "notmuch")))
+ (let ((ps-file (make-temp-file "notmuch" nil ".ps")))
(notmuch-print-run-muttprint (list "--printer" (concat "TO_FILE:"
ps-file)))
(notmuch-print-run-evince ps-file)))
--
bye, Joerg