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

Daniel Spannbauer ds at marco.de
Thu May 7 02:06:44 PDT 2009



Johannes Meixner schrieb:
> Hello,
> 
> On May 6 13:47 Daniel Spannbauer wrote (shortened):
>> Johannes Meixner schrieb:
>>> As an example this works for me:
>>>
>>> /etc/cups/mailto.conf
>>> --------------------------------------------------
>>> SMTPServer server_name.domain
>>>> From jsmeix at suse.de
>>> Subject cupsd notification
>>> --------------------------------------------------
>>>
>>> /etc/cups/subscriptions.conf
>>> ------------------------------------------------------
>>> # Subscription configuration file for CUPS v1.3.9
>>> # Written by cupsd on 2009-05-06 12:16
>>> NextSubscriptionId 19
>>> <Subscription 18>
>>> Events all
>>> Owner jsmeix
>>> Recipient mailto:jsmeix at suse.de
>>> LeaseDuration 0
>>> Interval 30
>>> ExpirationTime 0
>>> NextEventId 35
>>> </Subscription>
>>> ------------------------------------------------------
>>>
>> yes, thats clear. But now there are only mails for a printjob started
>> from you, and the mail receives only you.
>> So I have to do an entry for every of my hundreds of users.
>> It would be nice if that would work:
>>
>> <Subscription 18>
>> Events all
>> Owner $USER
>> Recipient mailto:$USER at suse.de
>> LeaseDuration 0
>> Interval 30
>> ExpirationTime 0
>> NextEventId 35
>> </Subscription>
>>
>> where USER ist the USer which printed the Dokument.
> 
> Even if $USER would work this would result that every of your
> hundreds of users gets any notification regarding any job.
> 
> But I assume you like that only the user who submitted a job
> gets the notification regarding his job e.g. something like
> (using "@OWNER" like in cupsd-conf)
> -------------------------------------------------------------
> <Subscription 18>
> Events job-created job-completed job-stopped
> Owner @OWNER
> JobId @OWNER
> Recipient mailto:@OWNER at suse.de
> LeaseDuration 0
> Interval 30
> ExpirationTime 0
> NextEventId 35
> </Subscription>
> -------------------------------------------------------------
> where "JobId @OWNER" has the above described special meaning.
> 
> I do not know how to set this up.
> I assume currently you cannot set this up.
> 

Thats exaxtly what I want. When a users submits a job, and this Job 
fails, he should get a mail about the submitted job.

Under /usr/lib/cups/notifier/ there are some Binary which seem to send 
the Mail. Is it posibly to write a own script for using by cups?


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