7 /* simple address canonicalization
9 /* #include <canon_addr.h>
11 /* VSTRING *canon_addr_external(result, address)
13 /* const char *address;
15 /* VSTRING *canon_addr_internal(result, address)
17 /* const char *address;
19 /* This module provides a simple interface to the address
20 /* canonicalization service that is provided by the address
23 /* canon_addr_external() transforms an address in external (i.e.
24 /* quoted) RFC822 form to a fully-qualified address (user@domain).
26 /* canon_addr_internal() transforms an address in internal (i.e.
27 /* unquoted) RFC822 form to a fully-qualified address (user@domain).
29 /* RFC 822 (ARPA Internet Text Messages).
31 /* rewrite_clnt(3) address rewriting client interface
35 /* The Secure Mailer license must be distributed with this software.
38 /* IBM T.J. Watson Research
40 /* Yorktown Heights, NY 10598, USA
47 /* Utility library. */
54 #include "rewrite_clnt.h"
55 #include "canon_addr.h"
57 /* canon_addr_external - make address fully qualified, external form */
59 VSTRING
*canon_addr_external(VSTRING
*result
, const char *addr
)
61 return (rewrite_clnt(REWRITE_CANON
, addr
, result
));
64 /* canon_addr_internal - make address fully qualified, internal form */
66 VSTRING
*canon_addr_internal(VSTRING
*result
, const char *addr
)
68 return (rewrite_clnt_internal(REWRITE_CANON
, addr
, result
));