[cups.general] Mail to User if a Printjob is abortet
Daniel Spannbauer
ds at marco.de
Wed May 6 02:33:16 PDT 2009
Johannes Meixner schrieb:
> Hello,
>
> On May 6 08:05 Daniel Spannbauer wrote (shortened):
>> is cups able to send a Mail to a user when his printjob
>> was abortet due to an error?
>
> Have a look at
> http://www.cups.org/documentation.php/doc-1.3/ref-subscriptions-conf.html
> and
> http://www.cups.org/documentation.php/doc-1.3/ref-mailto-conf.html
> if you run CUPS 1.3 or see
> http://www.cups.org/documentation.php?VERSION=1.2
> if you run CUPS 1.2
>
> To see an example in /etc/cups/subscriptions.conf run
> root at host# cupsdisable queue_name
> user at host$ echo Hello | lp -d queue_name -m
> root at host# cat /etc/cups/subscriptions.conf
> root at host# cupsenable queue_name
>
> If it does not work have a look at /var/log/cups/error_log
>
>
> By the way:
> http://www.cups.org/documentation.php/doc-1.3/ref-subscriptions-conf.html
> reads:
> ----------------------------------------------------------------------
> you should normally use the command-line programs (lp(1) and lpr(1))
> ... to manage your subscriptions.
> ----------------------------------------------------------------------
> but "man lp" and
> http://www.cups.org/documentation.php/doc-1.3/man-lp.html
> do not show anything how to "manage subscriptions"
> except the plain "-m" parameter.
Hello Johannes,
thanks for the answer, seems to be interessting. But this seems only to
work if I give the "-m"-Option. And the subsrictions.conf seems to be
generated automaticly thru the "-m"-Switch. So, if I make changes in
that file.... is cups overwriting it?
An how can I make that work in that way that not every printjob has to
be started with -m?
It would be nice if it would be adjustable that cups only sends mail to
the owner of the job (which could be resolved by cups) when the job is
aborted.
Do I have to write a subscription for every user that wants to have a
mail-notification?
Regards
Daniel
>
>
> Kind Regards
> Johannes Meixner
--
Daniel Spannbauer Software Entwicklung
marco Systemanalyse und Entwicklung GmbH Tel +49 8333 9233-27 Fax -11
Rechbergstr. 4 - 6, D 87727 Babenhausen Mobil +49 171 4033220
http://www.marco.de/ Email ds at marco.de
Geschäftsführer Martin Reuter HRB 171775 Amtsgericht München
More information about the cups
mailing list