Debian Bug report logs - #390825
muttprint doesn't work with CUPS as stated in the manual

version graph

Package: muttprint; Maintainer for muttprint is Rene Engelhard <[email protected]>; Source for muttprint is src:muttprint (PTS, buildd, popcon).

Reported by: Andreas Pakulat <[email protected]>

Date: Tue, 3 Oct 2006 09:33:24 UTC

Severity: normal

Merged with 244845

Found in versions 0.72-3, muttprint/0.72d-8

Reply or subscribe to this bug.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to [email protected], Rene Engelhard <[email protected]>:
Bug#390825; Package muttprint. (full text, mbox, link).


Acknowledgement sent to Andreas Pakulat <[email protected]>:
New Bug report received and forwarded. Copy sent to Rene Engelhard <[email protected]>. (full text, mbox, link).


Message #5 received at [email protected] (full text, mbox, reply):

From: Andreas Pakulat <[email protected]>
To: Debian Bug Tracking System <[email protected]>
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:



Severity set to `normal' from `important' Request was from Rene Engelhard <[email protected]> to [email protected]. (full text, mbox, link).


Merged 244845 390825. Request was from Rene Engelhard <[email protected]> to [email protected]. (full text, mbox, link).


Information forwarded to [email protected], Rene Engelhard <[email protected]>:
Bug#390825; Package muttprint. (Wed, 11 Feb 2009 16:42:03 GMT) (full text, mbox, link).


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).


Message #14 received at [email protected] (full text, mbox, reply):

From: Florian Lohoff <[email protected]>
To: [email protected]
Subject: muttprint doesn't work with CUPS as stated in the manual
Date: Wed, 11 Feb 2009 17:39:13 +0100
[Message part 1 (text/plain, inline)]
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
[signature.asc (application/pgp-signature, inline)]

Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Thu May 15 16:07:07 2025; Machine Name: buxtehude

Debian Bug tracking system

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/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.