[cups.general] Mail to User if a Printjob is abortet

Helge Blischke h.blischke at acm.org
Wed May 6 04:16:15 PDT 2009


Daniel Spannbauer wrote:

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

See the subscriptions.conf document via the CUPS web interface.
You should configure all events that signal an aborted job (for whatever
reason) and configure the mailto notifier for these events.

Helge






More information about the cups mailing list