4 .TH AP %manext8% "%nmhdate%" MH.6.8 [%nmhversion%]
6 ap \- parse addresses 822-style
13 .RB [ \-normalize " | " \-nonormalize ]
21 is a program that parses addresses according to the ARPA
22 Internet standard. It also understands many non\-standard formats.
23 It is useful for seeing how
25 will interpret an address.
29 program treats each argument as one or more addresses, and
30 prints those addresses out in the official 822\-format. Hence, it is
31 usually best to enclose each argument in double\-quotes for the shell.
33 To override the output format used by
38 switch is used. This permits individual fields of
39 the address to be extracted with ease.
42 is either the name of a format file or it may be
43 a format string directly, if prepended with an equal sign `='.
48 In addition to the standard escapes,
50 also recognizes the following additional escape:
54 .ta \w'Escape 'u +\w'Returns 'u
55 .I "Escape Returns Description
56 error string A diagnostic if the parse failed
64 will try to track down
65 the official hostname of the address.
67 Here is the default format string used by
72 %<{error}%{error}: %{text}%|%(putstr(proper{text}))%>
76 which says that if an error was detected, print the error, a `:', and
77 the address in error. Otherwise, output the 822\-proper format of
83 .ta \w'%etcdir%/ExtraBigFileName 'u
84 ^$HOME/.mmh/profile~^The user profile
87 .SH "PROFILE COMPONENTS"
92 .I "Standard for the Format of ARPA Internet Text Messages"
97 .RB ` \-form "' defaults as described above"