# fax/config
#
# This is an example configuration file for the fax utilities.
# Feel free to do anything you want to do with it.


# Fax aliases can be specified with the `alias' command.  The syntax of
# this command is
#
#     alias <alias-name> <phone-number>
#
# <phone-number> can be either the final phone number or another alias.
# Dialing lists may be built by joining multiple phone numbers separated
# with commas.
#
# <phone-number> will be treated as a command if it starts with a
# vertical bar (this feature does not work within the definition of a
# dialing list).
#
alias rs +49-7352-7425
alias cg |pnof -f -r name -r phone | fgrep 'Cees de Groot' | cut -f2 -d,

# All translation rules will be applied to the resulting phone number in
# the given order after alias substitution.  `dialtrans' is a search and
# replace command as you know if from perl(1).
#
#     Step 1:	Translate delimiters into hyphens.
#     Step 2:	Remove all leading hyphens.
#     Step 3:	Replace the own country code with a leading zero ...
#     Step 4:	... or built a real interstate phone number.
#     Step 5:	Strip the local area prefix of my home town.
#     Step 6:	Delete all remaining hyphens.
#
dialtrans /[^0-9+-]/-/g
dialtrans /^-+//
dialtrans /^(00|\++)49-+/0/
dialtrans /^\++/00/
dialtrans /^07352-+//
dialtrans /-//g

# mail2fax(8) has to invoke some commands.  This can be tailored via
# the `command' keyword.  Each command defaults to it's raw name.
#
#     tex	Donald E. Knuth's typesetting system.
#     dvips	Tom Rokicki's DVI-to-PS converter.
#     gs	L. Peter Deutsch's Ghostscript driver.
#     tops	Generic PS converter.
#
command dvips	dvips -t letter -P fax
command gs	gs -sPAPERSIZE=letter

# The Ghostscript drivers to be used.
#
driver normal	dfaxlow
driver fine	dfaxhigh

# One or more fax servers can be defined with the `server' command.
# faxpr(1) tries the listed servers in the order given.  The `sendfax'
# command explained below is used if all servers are down.
#
server fax

# The `sendfax' command specifies how to send a fax message.  There will
# be made some replacements before the command is actually invoked:
#
#     ${login}	sender's login name
#     ${host}	name of posting host
#     ${user}	sender's e-mail address
#     ${number}	addressee's phone number
#     ${pages}	list of file names
#
sendfax		faxspool -q -f '${user}' ${number} ${pages}

# Dito for viewing and printing.
#
viewfax		viewfax ${pages}
printfax	printfax ${pages}


# fax/config ends here
