5 .TH AP %manext8% "%nmhdate%" MH.6.8 [%nmhversion%]
7 ap \- parse addresses 822-style
16 .RB [ \-normalize " | " \-nonormalize ]
26 is a program that parses addresses according to the ARPA
27 Internet standard. It also understands many non\-standard formats.
28 It is useful for seeing how
30 will interpret an address.
34 program treats each argument as one or more addresses, and
35 prints those addresses out in the official 822\-format. Hence, it is
36 usually best to enclose each argument in double\-quotes for the shell.
38 To override the output format used by
46 switches are used. This permits individual fields of
47 the address to be extracted with ease. The string is simply a format
48 string, and the file is simply a format file. See
52 In addition to the standard escapes,
54 also recognizes the following additional escape:
58 .ta \w'Escape 'u +\w'Returns 'u
59 .I Escape Returns Description
60 error string A diagnostic if the parse failed
68 will try to track down
69 the official hostname of the address.
71 Here is the default format string used by
75 %<{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/\&.mh\(ruprofile~^The user profile
87 ^%etcdir%/mts.conf~^nmh mts configuration file
90 .SH "PROFILE COMPONENTS"
95 .I "Standard for the Format of ARPA Internet Text Messages"
100 .RB ` \-format "' defaults as described above"
102 .RB ` \-width "' defaults to the width of the terminal"
111 switch must be interpreted as a single token
112 by the shell that invokes
115 one must usually place the argument to this switch inside double\-quotes.