Notifier testing

angelb angelb at bugarin.us
Wed Dec 6 09:16:59 PST 2006


Hello all.

I'm trying to setup a notifier for job completions and I'm not having
much success with it. The following are my configs:

mailto config:
    From cups at stlam506
    SMTPServer stlam506
    Subject Job Completed

subscriptions config:
    # Subscription configuration file for CUPS v1.2.4
    # Written by cupsd on 2006-12-06 10:49
    NextSubscriptionId 2
    <Subscription 1>
    Events job-completed
    Owner lp
    PrinterName abnull
    UserData myname at mycompany.com
    LeaseDuration 0
    Interval 0
    ExpirationTime 0
    NextEventId 14
    </Subscription>

I set loglevel to debug2 and it does show job and notification complete
but I'm not getting any notification:


D [06/Dec/2006:10:49:23 -0600] [Job 21] File 0 is complete.
d [06/Dec/2006:10:49:23 -0600] cupsdFinishJob: job->status is 0
d [06/Dec/2006:10:49:23 -0600] cupsdFinishJob: Removing fd 10 from InputSet...
d [06/Dec/2006:10:49:23 -0600] cupsdFinishJob: Closing status pipes [ 10 -1 ]...
d [06/Dec/2006:10:49:23 -0600] cupsdCancelJob: id = 21
d [06/Dec/2006:10:49:23 -0600] cupsdStopJob: id = 21, force = 0
d [06/Dec/2006:10:49:23 -0600] cupsdAddEvent(event=printer-state-changed, dest=0
x9dcd5e0(abnull), job=(nil)(0), text="%s "%s" state changed.", ...)
D [06/Dec/2006:10:49:23 -0600] Discarding unused printer-state-changed event...
d [06/Dec/2006:10:49:23 -0600] cupsdStopJob: Closing print pipes [ -1 -1 ]...
d [06/Dec/2006:10:49:23 -0600] cupsdStopJob: Closing back pipes [ 8 9 ]...
d [06/Dec/2006:10:49:23 -0600] cupsdAddEvent(event=job-completed, dest=0x9dcd5e0
(abnull), job=0xa33fc10(21), text="Job completed.", ...)
d [06/Dec/2006:10:49:23 -0600] cupsd_send_notification(sub=0xa328fe8(1), event=0
xa3401e0(job-completed))
I [06/Dec/2006:10:49:23 -0600] Saving subscriptions.conf...
d [06/Dec/2006:10:49:23 -0600] cupsdSaveJob(job=0xa33fc10(21)): job->attrs=0xa33
f948
d [06/Dec/2006:10:49:23 -0600] cupsdCheckJobs: 0 active jobs, sleeping=0, reload
=0
D [06/Dec/2006:10:49:24 -0600] Unloading job 21...


What else do I need to do to make this work? My SMTP server works just
fine since I can send email to internet.

Any suggestion or comments is appreciated.

Thanks!
Angel








More information about the cups mailing list