faxspool and JOB file

Sascha Ziemann (szi@khs-ag.de)
02 Sep 1999 1919:16:19 +0200


Gert Doering <gert@greenie.muc.de> writes:

| Use "-A <custom-data>".  It's there for exactly that reason :-)
| 
| > In order to extend the JOB file I have patched faxspool and
| > added a -j option that can be used to add custom fields to the JOB
| > file.  This is the patch:
| 
| Argl.  That's what "-A" is for - it is usually used for billing purposes,
| but you can do with it whatever you want.

With the -j option the JOB file look quite natural:

phone 0,2000323
user szi
mail root
input miriam.94d9bZ
pages  f1.g3
clientname miriam
clientaddress 10.133.122.42

With the -A option, I have to put everything the the acct_handle
argument, which looks like this:

phone 0,2000323
user szi
mail root
input miriam.94d9bZ
pages  f1.g3
acct_handle clientname "miriam" clientaddress "10.133.122.42"

Disadvantages:

  - You have to parse the custom data in a different way than the rest
    of the file.

  - You have to quote the custom arguments to be able to store
    arguments with spaces.

Advantages:

  - ?

Sascha