4 .TH AP %manext8% "%nmhdate%" MH.6.8 [%nmhversion%]
6 ap \- parse addresses 822-style
15 .RB [ \-normalize " | " \-nonormalize ]
25 is a program that parses addresses according to the ARPA
26 Internet standard. It also understands many non\-standard formats.
27 It is useful for seeing how
29 will interpret an address.
33 program treats each argument as one or more addresses, and
34 prints those addresses out in the official 822\-format. Hence, it is
35 usually best to enclose each argument in double\-quotes for the shell.
37 To override the output format used by
45 switches are used. This permits individual fields of
46 the address to be extracted with ease. The string is simply a format
47 string, and the file is simply a format file. See
51 In addition to the standard escapes,
53 also recognizes the following additional escape:
57 .ta \w'Escape 'u +\w'Returns 'u
58 .I Escape Returns Description
59 error string A diagnostic if the parse failed
67 will try to track down
68 the official hostname of the address.
70 Here is the default format string used by
74 %<{error}%{error}: %{text}%|%(putstr(proper{text}))%>
77 which says that if an error was detected, print the error, a `:', and
78 the address in error. Otherwise, output the 822\-proper format of
84 .ta \w'%etcdir%/ExtraBigFileName 'u
85 ^$HOME/\&.mh\(ruprofile~^The user profile
86 ^%etcdir%/mts.conf~^nmh mts configuration file
89 .SH "PROFILE COMPONENTS"
94 .I "Standard for the Format of ARPA Internet Text Messages"
99 .RB ` \-format "' 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.