Referring to the eMail sent by the Tektronix Phaser 750:

Patrick Powell wrote:
> 
>.....................
> Actually,  I was interested in the format for the email and
> setting the email up...
> 

It sends a couple of different kinds of messages, but for each
print job it sends a thing like this:

--------------------------- job message
--------------------------------------
>From [EMAIL PROTECTED]  Thu Mar  8
10:01:49 2001
Return-Path: <[EMAIL PROTECTED]>
Received: from [134.76.132.119] (seurat [134.76.132.119])
        by tonne.neuro-physiol.med.uni-goettingen.de (8.8.8/8.8.8) with
SMTP id 
JAA10915
        for <[EMAIL PROTECTED]>; Thu, 8 Mar 2001 09:36:08 +0100
Date: Thu, 08 Mar 2001 09:36:25 +0100
From: [EMAIL PROTECTED]
Subject: PhaserLink (TM) Status Notification from EDV Tek 750
Sender: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
Message-Id: <0103080836.notify.31051@[134.76.132.119]>
Mime-Version: 1.0
X-Printer-IP-Addr: 134.76.132.119
Content-Type: text/plain; charset=us-ascii
Content-Language: en (English)
Content-Transfer-Encoding: 7bit
Status: RO

Printer EDV Tek 750 (EDV-Raum, Physiol.Institut, Uni-Goettingen)
(J2G0490) job 5
98 finished
Tektronix Job Report
Printer Name   : EDV Tek 750
Job Id         : 598 / LPR, (stdin), cfA885tonne.neuro-ph, howard,
tonne.neuro-p
hysiol.
Finished at    : Thu Mar 08 09:35:04 2001
Duration (mins): 1.2
Media Class    : Paper
Media Size     : A4
Unique Pages   : 1
Copies         : 1
Total Pages    : 1
Coverage (%)   : Cyan:      6.2, Magenta:      5.8, Yellow:      9.5,
Black:    
  1.9
Supplies Usage : Cyan: 0.014175, Magenta: 0.013368, Yellow: 0.021915,
Black: 0.0
03632
Pixels Printed (1K): Cyan:     1932, Magenta:     1822, Yellow:    
2987, Black:
      594
END Tektronix Job Report

--------------------------------- end job message
--------------------------------

In "Media Class" it tells you what medium was used, "Total Pages"
gives page count. The "Job ID" line gives the job name, unix
control file name (partly), unix user name, and I have now
fixed it to send the actual job source rather than "(stdin)"
You can choose how you want to deal with the toner usage.

There are other messages whenever the printer detects some kind
of error and a summary every now and then.  This message type
is the one I use, running it all through a perl script that
includes

use Getopt::Std;
use Mail::Folder::FastReader qw( read_email reset_file );
use Time::Object;
use Time::Seconds;
use Time::ParseDate;

I have had some problems (ie. bugs of my own making) so that
I miss eMails occasionally, or the Job ID information returned
by the printer is incomplete (ie. only the Tek job number), 
so I have to reconstruct the information using the log file I also
have the IF-filter on the server write.

-- Howard ("what, it doesn't print? I hear that a lot!")
 
--------------------------------------------------------------------
Dipl.-Phys. Howard Schultens                    Tel: +49 551 39-5914
Zentrum Physiologie                             FAX: +49 551 39-5923
Humboldtallee 23
37073 Goettingen   mailto:[EMAIL PROTECTED]
Germany               http://www.neuro-physiol.med.uni-goettingen.de
--------------------------------------------------------------------

-----------------------------------------------------------------------------
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:                           | example:
subscribe LIST <mailaddr>       |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST <mailaddr>     |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-----------------------------------------------------------------------------

Reply via email to