Technical information
CUSTOMIZATION TECHNIQUES
155
Customizing email transport (routing) messages
When the fax server routes a fax to a user's email inbox, it does so by creating a short email message and including
the fax as a TIFF file attachment.
The default email transport message shows the sender as VSI-FAX server. The subject line shows the total number
of pages in the fax and the originating fax number (i.e., TSI string). The body of the message looks like this:
ID: 16175
clientid : jsmith
TSI : 408 270 9330
rcvd at : 2000/04/13 10:22:59
# pages : 1
To customize all email transport messages sent by the fax server:
1. Create your template file.
2. Place the template file in the $VSIFAX/lib/templates directory.
3. Add this entry to the $VSIFAX/lib/vsisrv.ini configuration file:
[DEVICE:sm]
template=<my_template.tpl>
Where <my_template.tpl> is the template file you want to use for your email transport messages.
Customizing vfxstat output
You can use template files to customize vfxstat status reports by specifying a valid template using the -T option as
follows:
vfxstat -T <template_file> <req_ID>
Consider the following sample template file that could be used to customize vfxstat reports:
Fax request : ${seq}
Num pages : ${npg}
Result : ${rrs}
To name : ${tnm,20.20} From name : ${fnm,20}
To company : ${tco,20.20} From company : ${fco,20}
To fax number : ${tfn,20.20} From fax number : ${ffn,20}
Notice the use of length statements to ensure a pleasing tabular report layout.