Subject: muttprint doesn't work with CUPS as stated in the manual
Date: Tue, 03 Oct 2006 11:08:50 +0200
Package: muttprint
Version: 0.72d-8
Severity: important
Hi,
according to the manual it should be Ok to set PRINT_COMMAND to "CUPS"
and muttprint will then properly use cups-commands to print. This is
wrong, when set to CUPS it uses lpr -P <printer> -o <options>, which
doesn't work. The "lpr" is wrong and the switch for specifying the
printer is -d not -P.
Andreas
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (990, 'unstable'), (500, 'experimental'), (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Versions of packages muttprint depends on:
ii debconf [debconf-2.0] 1.5.5 Debian configuration management sy
ii libtext-iconv-perl 1.4-3 converts between character sets in
ii perl 5.8.8-6.1 Larry Wall's Practical Extraction
ii texlive-fonts-recommended 2005.dfsg.1-1 TeX Live: Recommended fonts
ii texlive-latex-extra 2005.dfsg.1-1 TeX Live: LaTeX supplementary pack
ii texlive-latex-recommended 2005.dfsg.1-1 TeX Live: LaTeX recommended packag
Versions of packages muttprint recommends:
ii emacs-snapshot-gtk [mail- 1:20060923-1 The GNU Emacs editor (with GTK+ 2.
ii kmail [mail-reader] 4:3.5.4-1+b1 KDE Email client
ii mutt [mail-reader] 1.5.13-1 text-based mailreader supporting M
ii mutt-ng [mutt] 0.0+20060429-2 text-based mailreader supporting M
ii thunderbird [mail-reader] 1.5.0.7-2 standalone mail client based on mo
-- debconf information:
muttprint/moved_pics:
muttprint/utf8:
Acknowledgement sent
to Florian Lohoff <[email protected]>:
Extra info received and forwarded to list. Copy sent to Rene Engelhard <[email protected]>.
(Wed, 11 Feb 2009 16:42:03 GMT) (full text, mbox, link).
Hi,
i fell into the same trap and i'd say please provide a wrapper
like a2ps does - No need to configure this kind of issues
as its perfectly detectable - 99% of the users have a single printer
and will be happy - The others set a cups default printer and we be
happy too - so only a tiny percentage of the users will need to touch
the config at all.
flo@touch:~$ cat /usr/bin/a2ps-lpr-wrapper
#!/bin/bash
#
# a2ps-lpr-wrapper - lp/lpr wrapper script for GNU a2ps on Debian
#
TEMP=`getopt -o d: -n 'a2ps-lpr-wrapper' -- "$@"`
a2ps_printer=""
if [ $? != 0 ]; then echo "Terminating..." >&2; exit 1; fi
# Note the quotes around `$TEMP': they are essential!
eval set -- "$TEMP"
while true ; do
case "$1" in
-d) a2ps_printer=$2; shift 2 ;;
--) shift; break ;;
*) echo "usage: a2ps-lpr-wrapper -d [printer] [files]"; exit 1 ;;
esac
done
# If /usr/bin/lp (from cupsys-client) exists, just use it.
if [ -x /usr/bin/lp ]; then
if [ "x$a2ps_printer" != "x" ]; then d="-d $a2ps_printer"; else d=""; fi
/usr/bin/lp $d "$@"
elif [ -x /usr/bin/lpr ]; then
# In case /usr/bin/lp is not available, then fall back /usr/bin/lpr.
if [ "x$a2ps_printer" != "x" ]; then P="-P $a2ps_printer"; else P=""; fi
/usr/bin/lpr $P "$@"
elif [ -x /usr/bin/rlpr ]; then
# In case /usr/bin/lpr is not available, then fall back /usr/bin/rlpr.
if [ "x$a2ps_printer" != "x" ]; then P="-P $a2ps_printer"; else P=""; fi
/usr/bin/rlpr $P "$@"
else
# If any of lp, lpr and rlpr is not available, then fail
echo "$0: lp/lpr/rlpr missing!"
exit 1
fi
Thanks
Flo
--
Florian Lohoff [email protected] +49-171-2280134
Those who would give up a little freedom to get a little
security shall soon have neither - Benjamin Franklin
Debbugs is free software and licensed under the terms of the GNU General
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.