8 date 92.05.12.22.23.34; author jromine; state Exp;
13 date 90.04.05.15.10.21; author sources; state Exp;
18 date 90.03.22.11.30.49; author sources; state Exp;
23 date 90.03.20.19.41.25; author sources; state Exp;
28 date 90.03.20.17.35.43; author sources; state Exp;
33 date 90.03.16.15.57.20; author sources; state Exp;
38 date 90.03.16.15.56.13; author sources; state Exp;
49 @fixup for nroff problems
53 .\" @@(#)$Id: ap.rf,v 1.6 1990/04/05 15:10:21 sources Exp jromine $
56 ap \- parse addresses 822-style
59 \%[\-form\ formatfile]
61 \%[\-normalize] \%[\-nonormalize]
66 \fIAp\fR is a program that parses addresses according to the ARPA Internet
68 It also understands many non\-standard formats.
69 It is useful for seeing how \fIMH\fR will interpret an address.
71 The \fIap\fR program treats each argument as one or more addresses,
72 and prints those addresses out in the official 822\-format.
73 Hence, it is usually best to enclose each argument in double\-quotes for the
76 To override the output format used by \fIap\fR,
77 the `\-format\ string' or `\-format\ file' switches are used.
78 This permits individual fields of the address to be extracted with ease.
79 The string is simply a format stringand thefile is simply a format file.
80 See \fImh\-format\fR\0(5) for the details.
82 In addition to the standard escapes,
83 \fIap\fR also recognizes the following additional escape:
86 .ta \w'Escape 'u +\w'Returns 'u
87 \fIEscape\fR \fIReturns\fR \fIDescription\fR
88 error string A diagnostic if the parse failed
92 If the `\-normalize' switch is given,
93 \fIap\fR will try to track down the official hostname of the address.
95 Here is the default format string used by \fIap\fR:
98 %<{error}%{error}: %{text}%|%(putstr(proper{text}))%>
100 which says that if an error was detected, print the error, a `:',
101 and the address in error.
102 Otherwise, output the 822\-proper format of the address.
104 ^$HOME/\&.mh\(ruprofile~^The user profile
105 ^@@(MHETCPATH)/mtstailor~^tailor file
111 \fIStandard for the Format of ARPA Internet Text Messages\fR (aka RFC\-822)
113 `\-format' defaults as described above
117 `\-width' defaults to the width of the terminal
121 The argument to the `\-format' switch must be interpreted as a single token
122 by the shell that invokes \fIap\fR.
124 one must usually place the argument to this switch inside double\-quotes.
126 On hosts where \fIMH\fR was configured with the BERK option,
127 address parsing is not enabled.
142 ap \- parse addresses 822\-style
148 @put things back, do .NA stuff another way
162 .TH AP 8 @@(MHCENTERFOOT) @@(MHLEFTFOOT)
172 @fixup for makewhatis
203 \fIscan\fR also recognizes the following additional escape:
207 \fIescape\fR \fIsubstitution\fR
208 error a diagnostic if the parse failed