4 .TH AP %manext8% "%nmhdate%" MH.6.8 [%nmhversion%]
6 ap \- parse addresses 822-style
13 .RB [ \-normalize " | " \-nonormalize ]
23 is a program that parses addresses according to the ARPA
24 Internet standard. It also understands many non\-standard formats.
25 It is useful for seeing how
27 will interpret an address.
31 program treats each argument as one or more addresses, and
32 prints those addresses out in the official 822\-format. Hence, it is
33 usually best to enclose each argument in double\-quotes for the shell.
35 To override the output format used by
40 switch is used. This permits individual fields of
41 the address to be extracted with ease.
44 is either the name of a format file or it may be
45 a format string directly, if prepended with an equal sign `='.
50 In addition to the standard escapes,
52 also recognizes the following additional escape:
56 .ta \w'Escape 'u +\w'Returns 'u
57 .I Escape Returns Description
58 error string A diagnostic if the parse failed
66 will try to track down
67 the official hostname of the address.
69 Here is the default format string used by
74 %<{error}%{error}: %{text}%|%(putstr(proper{text}))%>
78 which says that if an error was detected, print the error, a `:', and
79 the address in error. Otherwise, output the 822\-proper format of
85 .ta \w'%etcdir%/ExtraBigFileName 'u
86 ^$HOME/.mmh/profile~^The user profile
89 .SH "PROFILE COMPONENTS"
94 .I "Standard for the Format of ARPA Internet Text Messages"
99 .RB ` \-form "' defaults as described above"
101 .RB ` \-width "' defaults to the width of the terminal"
110 switch must be interpreted as a single token
111 by the shell that invokes
114 one must usually place the argument to this switch inside double\-quotes.