Re: [Mutt] pretty-print mutt emails
On Monday, November 22, 2021 at 00:47:10 +, Globe Trotter via Mutt-users wrote: What is the recommended way to pretty-print mutt emails? I found a sourceforge perl script called muttprint but that was last updated in 2008, and I was wondering what folks here recommended? I use without problems muttprint 0.73 in Fedora from within a wrapper script, which removes spamassassin markings, converts to PDF using ps2pdf, and finally opens it with xdg-open for checking and printing using the regular dialog. Mihai
Re: [Mutt] pretty-print mutt emails
Thanks! > On Monday, November 22, 2021, 08:19:52 AM CST, Mihai Lazarescu > wrote: > I use without problems muttprint 0.73 in Fedora from within a wrapper script, > which removes spamassassin markings, converts to PDF using ps2pdf, and > finally opens it with xdg-open for checking and printing using the regular > dialog. > Mihai This works when used with this script that I found on stackoverlow (I think). I have not tried the other scripts but presumably they work too. !/bin/bash read tmpdir < <(mktemp -d /tmp/print_preview-$USER-) cd $tmpdir || exit 1 trap "cd && rm -fR $tmpdir;exit" 0 1 2 3 6 9 15 cat >file.eml muttprint -P A4 -p TO_FILE:file.ps 1 )) && muttprint -2 -P A4 -p TO_FILE:file.ps
Re: [Mutt] pretty-print mutt emails
On Monday, November 22, 2021 at 14:32:09 +, Globe Trotter wrote: zathura file.ps I wonder if I can get a dialog that gives me a choice of 1 or 2 pages printing. Perhaps I have two scripts for that? With zathura apparently not, but with evince (and possibly other viewers) yes. Mihai
Re: [Mutt] pretty-print mutt emails
> On Monday, November 22, 2021, 08:44:58 AM CST, Mihai Lazarescu > wrote: >> I wonder if I can get a dialog that gives me a choice of 1 or 2 pages >> printing. Perhaps I have two scripts for that? > With zathura apparently not, but with evince (and possibly other viewers) yes. Actually, good point, I can get this to work through the print option, and that is what i have now decided to do. Thanks!