<<< Date Index >>>     <<< Thread Index >>>

Re: Printing with Mutt



Rem [29.Jan.2009 08:47]:

All is well!  I took a good look at the .muttprinrc and saw that the
print_command option was incorrectly set.  Now everything seems to be
working fine, and the printout looks great!

I was wondering if only I had that trouble. My default .muttprintrc
(version 0.72d) wants to use 'lpr -P%PRINTER' but when I had a look at
the manpage it requires a small "p", "P" is for "paperformat". In
addition to that, I have to have a space in between the flag and
whatever is in %PRINTER.

The important part of my .muttprintrc looks like this now (adjust the
comment depending on where you want to print):

#PRINTER="TO_FILE:/home/USER/email.ps"
PRINTER="HP_LaserJet_2100_postscript -o media-size=a4 -o \
PrintoutMode=Draft"
PRINT_COMMAND="lpr -p $PRINTER"

For all the others that have any trouble, try setting DEBUG="1" in your
.muttprintrc and have a look at the logfile. It helped me figure out
that it was missing a latex package that I had to install first.

--><--

I hope it's okay to ask a different print-related question as well:

The following macro shall use F5-key to set a different print command
and start printing. The print_command gets set correctly but I just
can't figure out how to make it print after that. I already tried 'p',
'<p>', 'print-message', '<print-message>', nothing. Changing the
command to 'c=!' for a change works like a charm.

macro index,pager <f5> ":set print_command=\"muttprint -S grey -p \
TO_FILE:/home/USER/$(date \
+%Y.%m.%d_%H.%M.%S)_email.ps\"\n<print-message>\n" "Print (grey)"

What am I missing here? Printing via 'p' works fine.


JP

--
Time flies like the wind, but fruit flies like bananas.