Index: tea4cups/trunk/tea4cups.conf
===================================================================
--- tea4cups/trunk/tea4cups.conf (revision 648)
+++ tea4cups/trunk/tea4cups.conf (revision 659)
@@ -24,7 +24,9 @@
 [global]
 
+
 # Should we log debugging information to CUPS' error_log file ?
 # defaults to No if unset.
 debug : yes
+
 
 # In which directory will we create our files ? It must already exist !
@@ -36,4 +38,5 @@
 directory : /var/spool/cups/
 
+
 # Should Tea4CUPS keep the files it creates once all hooks have ended ?
 # Defaults to No if unset, meaning that files are automatically deleted
@@ -44,4 +47,27 @@
 # BEWARE : this may use huge amounts of disk space !
 # keepfiles : yes
+
+
+# Should we launch some command when the real CUPS backend fails ?
+# Can be set either in the [global] section or any print queue section.
+# The value defined in a print queue section takes precedence over the
+# value defined in the [global] section.
+# onfail : echo "Original Backend failed" | /usr/bin/mail -s Tea4CUPS root
+
+
+# Should we pass incoming datas through a filter command 
+# BEFORE doing anything else ?
+# NB : obvisouly the filter command doesn't have any access to
+#      the environment variables defined below.
+# Can be set either in the [global] section or any print queue section.
+# The value defined in a print queue section takes precedence over the
+# value defined in the [global] section.
+# 
+# The sample filter below can remove the print job creation date
+# from PostScript jobs, in order to more accurately detect duplicate
+# jobs (so the MD5SUM would be identical from launch to launch)
+#
+# filter : /bin/grep -v "%%CreationDate:"
+
 
 # Should we serialize the launch of all hooks : launch one after
@@ -59,22 +85,23 @@
 # serialize : yes
 
-# When executing the contents of a prehook or posthook directive,
-# tea4cups makes the following environment variables available to your
-# own commands :
+
+# When executing the contents of a prehook or posthook directive, as
+# defined below, tea4cups makes the following environment variables 
+# available to your own commands :
 #
-# TEAPRINTERNAME : The print queue name.
-# TEADIRECTORY : Tea4CUPS output directory.
-# TEADATAFILE : Full name of Tea4CUPS work file (in $TEADIRECTORY).
-# TEAJOBSIZE : Job's size in bytes.
-# TEAMD5SUM : MD5 sum of the job's datas.
-# TEACLIENTHOST : Client's hostname or IP address.
-# TEAJOBID : Job's Id.
-# TEAUSERNAME : Name of the user who launched the print job.
-# TEATITLE : Job's title.
-# TEACOPIES : Number of copies requested.
-# TEAOPTIONS : Options of the print job.
-# TEAINPUTFILE : Job's data file or empty when job read from stdin.
-# TEABILLING : Job's billing code (lp -o job-billing=SomeCode file.ps)
-# TEACONTROLFILE : Job's IPP message file (usually /var/spool/cups/c?????)
+#      TEAPRINTERNAME : The print queue name.
+#      TEADIRECTORY : Tea4CUPS output directory.
+#      TEADATAFILE : Full name of Tea4CUPS work file (in $TEADIRECTORY).
+#      TEAJOBSIZE : Job's size in bytes.
+#      TEAMD5SUM : MD5 sum of the job's datas.
+#      TEACLIENTHOST : Client's hostname or IP address.
+#      TEAJOBID : Job's Id.
+#      TEAUSERNAME : Name of the user who launched the print job.
+#      TEATITLE : Job's title.
+#      TEACOPIES : Number of copies requested.
+#      TEAOPTIONS : Options of the print job.
+#      TEAINPUTFILE : Job's data file or empty when job read from stdin.
+#      TEABILLING : Job's billing code (lp -o job-billing=SomeCode file.ps)
+#      TEACONTROLFILE : Job's IPP message file (usually /var/spool/cups/c?????)
 #
 # Your own commands will mostly be interested in TEADATAFILE which is
@@ -82,4 +109,5 @@
 # job's datas. Don't rely on TEAINPUTFILE, use TEADATAFILE instead
 # since the first one may be empty depending on your printer driver.
+
 
 # Some prehooks and posthooks
@@ -121,13 +149,17 @@
 #posthook_0 : cat $TEADATAFILE >~$TEAUSERNAME/savejobs/$TEAJOBID.prn
 
+
 # An empty value deletes a value defined in the [global] section
 # so this particular hook doesn't get executed on this printer.
 #prehook_pdf :
 
+
 # A reflector which produces 4 copies each time :
 #posthook_4copies : lp -dotherprinter -n4 $CUPSDATAFILE
 
+
 # A simple accounting mechanism
 #prehook_accounting : echo $TEAPRINTERNAME $TEAJOBID $TEAUSERNAME $TEABILLING `pkpgcounter $TEADATAFILE` >/var/log/printaccounting.log
+
 
 # Some additionnal hooks to forbid duplicate jobs :
@@ -143,4 +175,5 @@
 #posthook_to_filter_duplicates : echo "$TEAJOBID : $TEAMD5SUM" >>/tmp/jobmd5sums
 
+
 # A particular prehook can send datas to the posthook
 # of the same name automatically through pipes :
