5 .TH AP %manext8% "%nmhdate%" MH.6.8 [%nmhversion%]
7 ap \- parse addresses 822-style
15 .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
38 .BI \-format " string"
41 switches are used. This permits individual fields of
42 the address to be extracted with ease. The string is simply a format
43 string, and the file is simply a format file. See
47 In addition to the standard escapes,
49 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
71 %<{error}%{error}: %{text}%|%(putstr(proper{text}))%>
74 which says that if an error was detected, print the error, a `:', and
75 the address in error. Otherwise, output the 822\-proper format of
81 .ta \w'/usr/local/nmh/etc/ExtraBigFileName 'u
82 ^$HOME/\&.mh\(ruprofile~^The user profile
83 ^%etcdir%/mts.conf~^nmh mts configuration file
85 .SH "PROFILE COMPONENTS"
90 .IR "Standard for the Format of ARPA Internet Text Messages" " (RFC\-822)"
94 .RB ` \-format "' defaults as described above"
96 .RB ` \-width "' defaults to the width of the terminal"
104 switch must be interpreted as a single token
105 by the shell that invokes
108 one must usually place the argument to this switch inside double\-quotes.