Re: pretty-print mutt emails
El día miércoles, abril 10, 2024 a las 06:26:23 -0400, Kurt Hackenberg escribió: > On Wed, Apr 10, 2024 at 10:23:37AM +0200, Matthias Apitz wrote: > > > I wasn't aware before, that muttprint exists for my mobile phone as > > well. I've now installed it and configured it, even with the FreeBSD's > > Beastie in the right corner. > > What? Do you run FreeBSD and Mutt on the phone? I use the Purism L5 as my daily driver, see https://puri.sm/products/librem-5/ This runs PureOS, a Debian flavor. On my laptops I run FreeBSD CURRENT and copied the Beastie.eps file into the installed apt package of muttprint: set print_cmd="muttprint --printer - -i /home/purism/guru/Beastie.eps --paper A4 --rem_sig | convert - /home/purism/Documents/muttprint.pdf " matthias -- Matthias Apitz, ✉ g...@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub I am not at war with Russia. Я не воюю с Россией. Ich bin nicht im Krieg mit Russland.
Re: pretty-print mutt emails
On Wed, Apr 10, 2024 at 07:25:11AM +0200, Matthias Apitz wrote: > El día martes, abril 09, 2024 a las 06:54:46 -0400, H escribió: > > > On 04/07/2024 07:42 AM, Matthias Apitz wrote: > > > I do use on FreeBSD muttprint: > > > > > > Name : muttprint Version: 0.73_5 Installed > > > on : Sun Sep 24 11:32:52 2023 CEST Origin : > > > print/muttprint Architecture : FreeBSD:14:amd64 Prefix > > > : /usr/local Categories : print mail Licenses : > > > GPLv2 Maintainer : g...@unixarea.de WWW: > > > http://muttprint.sourceforge.net/ Comment: Utility to > > > print mail for most any mail client > > > > > > Started from ~/.muttrc as: > > > > > > $ grep muttprint .muttrc set print_cmd="muttprint --printer > > > pdf --paper A4 --rem_sig " > > > > > > The result is nice and attached. > > > > > > matthias > > > > > I would like to try muttprint for my installation of neomutt on > > CentOS 7. When I visit the sourceforge page above, the latest > > version for download is 0.72d, not 0.73_5 as you listed above. > > 0.72d was released 2007-01-08... > > The "_5" in "0.73_5" is FreeBSD'ish. i.e. the version of the > change of the port. The history is here: > https://www.freshports.org/print/muttprint/#history. I don't know > why the 0.73 source is not available. I have it in my build > server: > > [guru@jet /usr/ports/distfiles]$ ls -l muttprint-0.73.tar.gz > -rw-r--r-- 1 root wheel 361268 Dec 26 2008 muttprint-0.73.tar.gz > > I could make it available on my Internet host. About any RPM I > don't know much. On my Linux mobilephone, running a Debian I see: > > $ apt search muttprint muttprint/byzantium 0.73-10 all Pretty > printing of mails > > muttprint-manual/byzantium 0.73-10 all Manual for muttprint > > HIH > > matthias > If something is available in debian, debian will ship a '.orig' as well as all the patches they are using. Looks as if sid is now on their 11th revision: https://packages.debian.org/sid/muttprint ĸen -- I used to farm cats, and let me tell you, their eggs don't taste nearly as chocolatey as they look. -- Milton Jones, Mock the Week
Re: pretty-print mutt emails
On Wed, Apr 10, 2024 at 10:23:37AM +0200, Matthias Apitz wrote: I wasn't aware before, that muttprint exists for my mobile phone as well. I've now installed it and configured it, even with the FreeBSD's Beastie in the right corner. What? Do you run FreeBSD and Mutt on the phone?
Re: pretty-print mutt emails
On 2024-04-10, Matthias Apitz wrote: > El día martes, abril 09, 2024 a las 06:54:46 -0400, H escribió: > >> On 04/07/2024 07:42 AM, Matthias Apitz wrote: >> > I do use on FreeBSD muttprint: >> > >> > Name : muttprint >> > Version: 0.73_5 [...] >> > WWW: http://muttprint.sourceforge.net/ >> > Comment: Utility to print mail for most any mail client [...] >> I would like to try muttprint for my installation of neomutt on >> CentOS 7. When I visit the sourceforge page above, the latest >> version for download is 0.72d, not 0.73_5 as you listed above. 0.72d >> was released 2007-01-08... > > The "_5" in "0.73_5" is FreeBSD'ish. i.e. the version of the change of the > port. The history is here: > https://www.freshports.org/print/muttprint/#history. > I don't know why the 0.73 source is not available. I have it in my > build server: It is available on SourceForge (project page) but not on the muttprint (sourceforge-hosted?) website: https://sourceforge.net/projects/muttprint/files/ lists 0.73 as the latest, https://sourceforge.net/projects/muttprint/files/muttprint/muttprint-0.73/ https://sourceforge.net/p/muttprint/code/HEAD/tree/trunk/muttprint/CHANGES > [guru@jet /usr/ports/distfiles]$ ls -l muttprint-0.73.tar.gz > -rw-r--r-- 1 root wheel 361268 Dec 26 2008 muttprint-0.73.tar.gz [...] -- Nuno Silva
Re: pretty-print mutt emails
El día miércoles, abril 10, 2024 a las 07:25:11 +0200, Matthias Apitz escribió: > I could make it available on my Internet host. About any RPM I don't > know much. On my Linux mobilephone, running a Debian I see: > > $ apt search muttprint > muttprint/byzantium 0.73-10 all > Pretty printing of mails > > muttprint-manual/byzantium 0.73-10 all > Manual for muttprint I wasn't aware before, that muttprint exists for my mobile phone as well. I've now installed it and configured it, even with the FreeBSD's Beastie in the right corner. The fonts are a bit ugly, don't know why (and to busy to investigate this). See attachment. matthias -- Matthias Apitz, ✉ g...@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub I am not at war with Russia. Я не воюю с Россией. Ich bin nicht im Krieg mit Russland. muttprint.pdf Description: Adobe PDF document
Re: pretty-print mutt emails
El día martes, abril 09, 2024 a las 06:54:46 -0400, H escribió: > On 04/07/2024 07:42 AM, Matthias Apitz wrote: > > I do use on FreeBSD muttprint: > > > > Name : muttprint > > Version: 0.73_5 > > Installed on : Sun Sep 24 11:32:52 2023 CEST > > Origin : print/muttprint > > Architecture : FreeBSD:14:amd64 > > Prefix : /usr/local > > Categories : print mail > > Licenses : GPLv2 > > Maintainer : g...@unixarea.de > > WWW: http://muttprint.sourceforge.net/ > > Comment: Utility to print mail for most any mail client > > > > Started from ~/.muttrc as: > > > > $ grep muttprint .muttrc > > set print_cmd="muttprint --printer pdf --paper A4 --rem_sig " > > > > The result is nice and attached. > > > > matthias > > > I would like to try muttprint for my installation of neomutt on CentOS 7. > When I visit the sourceforge page above, the latest version for download is > 0.72d, not 0.73_5 as you listed above. 0.72d was released 2007-01-08... The "_5" in "0.73_5" is FreeBSD'ish. i.e. the version of the change of the port. The history is here: https://www.freshports.org/print/muttprint/#history. I don't know why the 0.73 source is not available. I have it in my build server: [guru@jet /usr/ports/distfiles]$ ls -l muttprint-0.73.tar.gz -rw-r--r-- 1 root wheel 361268 Dec 26 2008 muttprint-0.73.tar.gz I could make it available on my Internet host. About any RPM I don't know much. On my Linux mobilephone, running a Debian I see: $ apt search muttprint muttprint/byzantium 0.73-10 all Pretty printing of mails muttprint-manual/byzantium 0.73-10 all Manual for muttprint HIH matthias -- Matthias Apitz, ✉ g...@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub I am not at war with Russia. Я не воюю с Россией. Ich bin nicht im Krieg mit Russland.
Re: pretty-print mutt emails
On 04/07/2024 07:42 AM, Matthias Apitz wrote: > I do use on FreeBSD muttprint: > > Name : muttprint > Version: 0.73_5 > Installed on : Sun Sep 24 11:32:52 2023 CEST > Origin : print/muttprint > Architecture : FreeBSD:14:amd64 > Prefix : /usr/local > Categories : print mail > Licenses : GPLv2 > Maintainer : g...@unixarea.de > WWW: http://muttprint.sourceforge.net/ > Comment: Utility to print mail for most any mail client > > Started from ~/.muttrc as: > > $ grep muttprint .muttrc > set print_cmd="muttprint --printer pdf --paper A4 --rem_sig " > > The result is nice and attached. > > matthias > I would like to try muttprint for my installation of neomutt on CentOS 7. When I visit the sourceforge page above, the latest version for download is 0.72d, not 0.73_5 as you listed above. 0.72d was released 2007-01-08... Does anyone know if the rpm version on the sourceforge page can be installed on CentOS 7? Oops, just tried to download the rpm version and it is not present on the page...
Re: pretty-print mutt emails
I do use on FreeBSD muttprint: Name : muttprint Version: 0.73_5 Installed on : Sun Sep 24 11:32:52 2023 CEST Origin : print/muttprint Architecture : FreeBSD:14:amd64 Prefix : /usr/local Categories : print mail Licenses : GPLv2 Maintainer : g...@unixarea.de WWW: http://muttprint.sourceforge.net/ Comment: Utility to print mail for most any mail client Started from ~/.muttrc as: $ grep muttprint .muttrc set print_cmd="muttprint --printer pdf --paper A4 --rem_sig " The result is nice and attached. matthias -- Matthias Apitz, ✉ g...@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub I am not at war with Russia. Я не воюю с Россией. Ich bin nicht im Krieg mit Russland.
Re: pretty-print mutt emails
Hello! On Wed, Nov 24, 2021 at 05:21:10PM +, Jean Louis wrote: > * Anders Damsgaard [2021-11-22 12:05]: > > * Globe Trotter via Mutt-users [2021-11-22 00:47:10 > > +]: > > > 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 the following sh(1) script to format the message as troff and > > convert to pdf: https://adamsgaard.dk/tmp/muttprint-groff.sh > > > > It's a bit ugly in places, but it works for me. This is an example: > > https://adamsgaard.dk/tmp/muttprint-example.pdf > > > > I bind it in my muttrc with the following: > > > > set print_command="$HOME/.config/mutt/muttprint-groff.sh" > > Very nice. I find it simple and good. I would like to have the header > fields rather aligned to left side. > > When using grep, I think `grep -m1' should be used to find the first > match, as I wonder what would be the result if words like "From:" or > "Date: " are found in the body of the email, not only in the header. > > I also think I can convert your script to use Asciidoctor instead of > groff, https://asciidoctor.org/ -- so I will work on it. I created a Go program for that use case a while ago: https://gnoack.github.io/mailprint/ I think I am the only user, but it works well for me. It is mostly tuned for the e-mails from the Linux kernel mailing list, so it'll print the mails as plain text, with syntax highlighting for git patches. It also has support for printing the senders' profile pictures from a ~/.picons directory [1]. The website has installation instructions and a screenshot. Under the hood, it is still a shell pipeline piping to groff. You can find some more technical background at [2]. –Günther [1] https://kinzler.com/ftp/faces/ [2] https://blog.gnoack.org/post/mailprint-design/
Re: pretty-print mutt emails
On 24Nov2021 20:21, Jean Louis wrote: >When using grep, I think `grep -m1' should be used to find the first >match, as I wonder what would be the result if words like "From:" or >"Date: " are found in the body of the email, not only in the header. I tend to use sed for this. A simple: /^$/q prevents falling through to the message body. Cheers, Cameron Simpson
Re: pretty-print mutt emails
* Anders Damsgaard [2021-11-22 12:05]: > * Globe Trotter via Mutt-users [2021-11-22 00:47:10 > +]: > > > 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? > > > > Thanks! > > Hi, > > I use the following sh(1) script to format the message as troff and > convert to pdf: https://adamsgaard.dk/tmp/muttprint-groff.sh > > It's a bit ugly in places, but it works for me. This is an example: > https://adamsgaard.dk/tmp/muttprint-example.pdf > > I bind it in my muttrc with the following: > > set print_command="$HOME/.config/mutt/muttprint-groff.sh" Very nice. I find it simple and good. I would like to have the header fields rather aligned to left side. When using grep, I think `grep -m1' should be used to find the first match, as I wonder what would be the result if words like "From:" or "Date: " are found in the body of the email, not only in the header. I also think I can convert your script to use Asciidoctor instead of groff, https://asciidoctor.org/ -- so I will work on it. -- Jean Take action in Free Software Foundation campaigns: https://www.fsf.org/campaigns In support of Richard M. Stallman https://stallmansupport.org/
Re: pretty-print mutt emails
Since ages I do use muttprint (and I'm for FreeBSD the maintainer of the port). It just works fine. matthias signature.asc Description: PGP signature
Re: pretty-print mutt emails
On Tue, Nov 23, 2021 at 05:56:44PM +, Sam Kuper wrote: > On Mon, Nov 22, 2021 at 12:47:10AM +, 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? > > On systems without a working muttprint or equivalent, a workaround is to > pipe the email to stdin of a program with good support (word-wrapping; > pagination; choice of font) for printing plain text files. > > For instance, on GNU/Linux boxes with Gnome, while viewing the email in > Mutt, press the pipe (vertical bar) key on your keyboard, and then type > `gedit -` followed by . You can then quickly trim headers to > taste, and use gedit's printing options to choose your desired wrapping, > pagination, typeface and font size, etc. > > -- > A: When it messes up the order in which people normally read text. > Q: When is top-posting a bad thing? > > () ASCII ribbon campaign. Please avoid HTML emails & proprietary > /\ file formats. (Why? See e.g. https://v.gd/jrmGbS ). Thank you. Thanks for this tip. Bob Crochelt
Re: pretty-print mutt emails
On Mon, Nov 22, 2021 at 12:47:10AM +, 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? On systems without a working muttprint or equivalent, a workaround is to pipe the email to stdin of a program with good support (word-wrapping; pagination; choice of font) for printing plain text files. For instance, on GNU/Linux boxes with Gnome, while viewing the email in Mutt, press the pipe (vertical bar) key on your keyboard, and then type `gedit -` followed by . You can then quickly trim headers to taste, and use gedit's printing options to choose your desired wrapping, pagination, typeface and font size, etc. -- A: When it messes up the order in which people normally read text. Q: When is top-posting a bad thing? () ASCII ribbon campaign. Please avoid HTML emails & proprietary /\ file formats. (Why? See e.g. https://v.gd/jrmGbS ). Thank you.
Re: pretty-print mutt emails
Em dom., 21 de nov. de 2021 às 21:47, Globe Trotter via Mutt-users escreveu: > > 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 muttprint like this: Firstly, install muttprint (apt install muttprint does the trick if you use Debian based distro) So, insert this line in your muttrc set print_command = 'set -e; f=`mktemp /tmp/"$(date +%Y-%m-%d-%H-%M-%S)-"XX.ps`; muttprint -P A4 -p TO_FILE:"$f"; ps2pdf $f $f.pdf ; rm $f ; evince "$f.pdf" If you want, chance evince to any pdf reader you like. -- Laia, M. L.
Re: pretty-print mutt emails
On 22Nov2021 13:48, Globe Trotter via Mutt-users wrote: >/home/gt/bin/muttprint_print: /home/gt/bin/muttprint: /usr/bin/perl^M: >bad interpreter: No such file or directory You've got carriage returns in the text of the script (the "^M" above). They are no considered whitespace (and in any case, IIRC, POSIX does not guarrentee to handle more than one argument after the command in a shebang ("#!") line). You probably want to strip all the trailing carriage returns from this script. Cheers, Cameron Simpson
Re: pretty-print mutt emails
On Mon, Nov 22, 2021 at 01:56:58PM +, Globe Trotter via Mutt-users wrote: On Monday, November 22, 2021, 02:53:17 AM CST, Anders Damsgaard wrote: I use the following sh(1) script to format the message as troff andconvert to pdf: https://adamsgaard.dk/tmp/muttprint-groff.sh It's a bit ugly in places, but it works for me. This is an example: https://adamsgaard.dk/tmp/muttprint-example.pdf I bind it in my muttrc with the following: set print_command="$HOME/.config/mutt/muttprint-groff.sh" This gives me the following errors: infile = /home/gt/tmp/mutt_SnvEqj tmpfile = /home/gt/tmp/mutt_KAdWKA outfile = /home/gt/tmp/mutt_f8z8fN.pdf formatting /home/gt/tmp/mutt_SnvEqj to groff format in /home/gt/tmp/mutt_KAdWKA running groff /home/gt/tmp/mutt_KAdWKA /home/gt/tmp/mutt_f8z8fN.pdf troff: fatal error: can't find macro file s Ahh, long ago, fondly remembered troff days. It appears the groff invocation asks for a macro package "s" (aka "ms" macros) that are not found on your system. On my Fedora 34 system, there are two groff packages, "groff-base" and "groff". The ms macros are in the groff-base package but not in the groff package. Jon Press any key to continue... I don't quite get what the problem is. Thanks again! End of included message <<< -- Jon H. LaBadie j...@labadie.us 11226 South Shore Rd. (703) 787-0688 (H) Reston, VA 20190 (703) 935-6720 (C)
Re: pretty-print mutt emails
* Globe Trotter via Mutt-users [2021-11-22 03:48]: > 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 muttprint without problems. Find it attached, as maybe I have changed something in the script, you can make the diff. Then I have this settings in ~/.mutt/defaults which I load from ~/.mutt/muttrc set print_command="/home/data1/protected/bin/muttprint_print.sh" And the script `muttprint_print.sh' is attached as well. -- Jean Take action in Free Software Foundation campaigns: https://www.fsf.org/campaigns In support of Richard M. Stallman https://stallmansupport.org/ #!/usr/bin/env perl # # Hinweis: Tabulatorbreite: 4 Zeichen # Notice: tab width: 4 characters # # # #Muttprint - pretty printing of mails with Mutt# #Copyright (c) 2000-04, Bernhard Walle # #Copyright (c) 2005,Lukas Ruf# # # #This program is free software; you can redistribute it and/or # #modify it under the terms of the GNU General Public License as# #published by the Free Software Foundation; either version 2 of# #the License, or (at your option) any later version. # # # #This program is distributed in the hope that it will be useful, # #but WITHOUT ANY WARRANTY; without even the implied warranty of# #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # #General Public License for more details. # # # #You should have received a copy of the GNU General Public License # #along with this program; if not, write to the Free Software # #Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. # # # #You find the GPL in the file "COPYING" which was distributed # #with Muttprint. For a German translation look at # # # #http://www.suse.de/de/private/support/licenses/gpl.html # # # # Deklaration erzwingen use strict; use vars qw(%Config $texFontenc %String); use sigtrap qw(die INT QUIT TERM); use POSIX; use Text::Wrap; use File::Temp qw(tempdir); use utf8; # boolean type use constant TRUE => 1; use constant FALSE => 0; use constant COUNTRYCODE=> 0; use constant LANGUAGECODE => 1; use constant CHARSET=> 2; use constant CHARSET_TEX_NOTATION => 3; use constant BABEL_LANGUAGE => 4; use constant TEX_FONTENC=> 5; # BEGIN VARIABLES our $VERSION = "0.72d"; my $PACKAGE = "Muttprint"; Subroutinen mit Prototypes sub readConfig (@); sub readOpts (); sub getPaperConfig (); sub findCommonDir ($); sub createLatex (); sub getRealname ($); sub getShortFrom($$); sub getNumberOfPages ($); sub copyFile ($$); sub printDuplexNoCups (); sub printDuplexCups ($$$); sub modifyPS ($); sub createTemp (); sub setStrings (); sub writeFormated ($*$); sub decodeHeader(); sub getDefaultPrinterCDE(); sub changeForXface($); sub convertDate($); sub getISOlatinExtensions($); sub fatalError($); sub printWarning($); sub output (*@); sub outputstd (@); sub printLog($); sub input (*); sub native2utf ($); sub utf2native ($); sub getLocaleInformation($); sub convert_init (); 'private' variables for the rest %Config = ( PRINTER => '', PRINT_COMMAND => 'lpr -P$PRINTER', PENGUIN => 'on', DUPLEX => 'off', SPEED => '30', PAPERSAVE => 'off', FONT=> 'Latex', PAPER => 'A4', DEBUG => '0', REM_SIG => 'off', REM_QUOTE => 'off', WAIT=> '30', TOPMARGIN =>
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!
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
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 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: pretty-print mutt emails
> On Monday, November 22, 2021, 02:35:24 AM CST, Jean Louis > wrote: > I use muttprint without problems. Find it attached, as maybe I have changed > something in the script, you canmake the diff. >Then I have this settings in ~/.mutt/defaults which I load from ~/.mutt/muttrc > set print_command="/home/data1/protected/bin/muttprint_print.sh" > And the script `muttprint_print.sh' is attached as well. Thanks, so I set all this, and get: /home/gt/bin/muttprint_print: /home/gt/bin/muttprint: /usr/bin/perl^M: bad interpreter: No such file or directory Error: /undefinedfilename in (/tmp/muttprint/2021-11-22-07:42:10-Monday.ps) Operand stack: Execution stack: %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push Dictionary stack: --dict:764/1123(ro)(G)-- --dict:0/20(G)-- --dict:75/200(L)-- Current allocation mode is local Last OS error: No such file or directory GPL Ghostscript 9.55.0: Unrecoverable error, exit code 1 Press any key to continue... Thanks again! GT
Re: pretty-print mutt emails
> On Monday, November 22, 2021, 02:53:17 AM CST, Anders Damsgaard > wrote: > I use the following sh(1) script to format the message as troff andconvert to > pdf: https://adamsgaard.dk/tmp/muttprint-groff.sh >It's a bit ugly in places, but it works for me. This is an example: https://adamsgaard.dk/tmp/muttprint-example.pdf > I bind it in my muttrc with the following: > set print_command="$HOME/.config/mutt/muttprint-groff.sh" This gives me the following errors: infile = /home/gt/tmp/mutt_SnvEqj tmpfile = /home/gt/tmp/mutt_KAdWKA outfile = /home/gt/tmp/mutt_f8z8fN.pdf formatting /home/gt/tmp/mutt_SnvEqj to groff format in /home/gt/tmp/mutt_KAdWKA running groff /home/gt/tmp/mutt_KAdWKA /home/gt/tmp/mutt_f8z8fN.pdf troff: fatal error: can't find macro file s Press any key to continue... I don't quite get what the problem is. Thanks again!
Re: pretty-print mutt emails
* Globe Trotter via Mutt-users [2021-11-22 00:47:10 +]: 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? Thanks! Hi, I use the following sh(1) script to format the message as troff and convert to pdf: https://adamsgaard.dk/tmp/muttprint-groff.sh It's a bit ugly in places, but it works for me. This is an example: https://adamsgaard.dk/tmp/muttprint-example.pdf I bind it in my muttrc with the following: set print_command="$HOME/.config/mutt/muttprint-groff.sh" best regards, Anders
pretty-print mutt emails
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? Thanks!