opath takes one argument, an RFC822 address, as described in ADDRESS(1). From this, it generates and returns a UUCP path to the site named in the argument.
oupath takes one argument, a UUCP path. If the next site on this path is named x, oupath will prepend a path from your site to x, if x is nonadjacent to your site. If x is a domain, i.e. contains a dot (.), oupath will generate a path to a gateway for this domain. Note that oupath will not alter the argument path, other than to make the above transformations; it does not check whether sites in the argument are adjacent to one another, or whether they represent an optimal path; it is assumed that if the user has specified a path, then he wants to use that path.
The principal difference between opath and oupath is that the former gives precedence to ``@'', whereas the latter gives precedence to ``!''. The former is intended to be invoked when receiving mail from a user interface or a non-UUCP source (if the subsequent transport mechanism is to be UUCP), whereas the latter is intended solely to be used by UUCP internal software, principally rmail, in routing mail through the UUCP network.
/usr/lib/uucp/domains - The domain/gateway table. Each line of this
file consists of either a ``#'' followed by arbitrary comment text, or
an entry of the form:
<domain>,<path>,<reserved>,<template>
Where <domain> is the string (in capital letters) identifying a particular
<path> is a string which may be included at an arbitrary point in the
generated route, <reserved> is currently unused, and <template> is a string
indicating the format of the generated route.
The <template> is a printf-style string; it is not quoted, and begins at the character immediately following the comma which separates <template> from <reserved>. The <template> may consist of arbitrary ASCII characters, which are copied unchanged into the generated route; or of a percent (%) sign followed by one of the following characters:
When making entries in the domain table, domain names which are a suffix of another domain name in the table should be ordered such that the longer string(s) appear first. For example, .WA.UUCP should preceed .UUCP in the table. A linear search is made of the table, and the first domain found in the table which is a suffix of the domain in the designated address is used as the domain in generating the routing.
Following are some example entries for the domain table. Note that all domain names begin with a ``.''.
# This is a comment .HP.UUCP,,,%R!%U .UUCP,,,%R!%U .CSNET,>decwrl,,%P!%U%%%S@CSNET-RELAY.ARPA .EDU,>ucbvax,,%P!%D