1 .\" This file is automatically generated. Do not edit!
2 .\" @(#)$Id: ap.rf,v 1.7 1992/05/12 22:23:34 jromine Exp $
5 ap \- parse addresses 822-style
10 \%[\-normalize] \%[\-nonormalize]
15 \fIAp\fR is a program that parses addresses according to the ARPA Internet
17 It also understands many non\-standard formats.
18 It is useful for seeing how \fIMH\fR will interpret an address.
20 The \fIap\fR program treats each argument as one or more addresses,
21 and prints those addresses out in the official 822\-format.
22 Hence, it is usually best to enclose each argument in double\-quotes for the
25 To override the output format used by \fIap\fR,
26 the `\-format\ string' or `\-format\ file' switches are used.
27 This permits individual fields of the address to be extracted with ease.
28 The string is simply a format stringand thefile is simply a format file.
29 See \fImh\-format\fR\0(5) for the details.
31 In addition to the standard escapes,
32 \fIap\fR also recognizes the following additional escape:
35 .ta \w'Escape 'u +\w'Returns 'u
36 \fIEscape\fR \fIReturns\fR \fIDescription\fR
37 error string A diagnostic if the parse failed
41 If the `\-normalize' switch is given,
42 \fIap\fR will try to track down the official hostname of the address.
44 Here is the default format string used by \fIap\fR:
47 %<{error}%{error}: %{text}%|%(putstr(proper{text}))%>
49 which says that if an error was detected, print the error, a `:',
50 and the address in error.
51 Otherwise, output the 822\-proper format of the address.
53 ^$HOME/\&.mh\(ruprofile~^The user profile
54 ^/opt/mh-6.8.5/lib/mtstailor~^tailor file
60 \fIStandard for the Format of ARPA Internet Text Messages\fR (aka RFC\-822)
62 `\-format' defaults as described above
66 `\-width' defaults to the width of the terminal
70 The argument to the `\-format' switch must be interpreted as a single token
71 by the shell that invokes \fIap\fR.
73 one must usually place the argument to this switch inside double\-quotes.
75 On hosts where \fIMH\fR was configured with the BERK option,
76 address parsing is not enabled.