1/*	$NetBSD$	*/
2
3/*++
4/* NAME
5/*	mail_pathname 3
6/* SUMMARY
7/*	generate pathname from mailer service class and name
8/* SYNOPSIS
9/*	#include <mail_proto.h>
10/*
11/*	char	*mail_pathname(service_class, service_name)
12/*	char	*service_class;
13/*	char	*service_name;
14/* DESCRIPTION
15/*	mail_pathname() translates the specified service class and name
16/*	to a pathname. The result should be passed to myfree() when it
17/*	no longer needed.
18/* LICENSE
19/* .ad
20/* .fi
21/*	The Secure Mailer license must be distributed with this software.
22/* AUTHOR(S)
23/*	Wietse Venema
24/*	IBM T.J. Watson Research
25/*	P.O. Box 704
26/*	Yorktown Heights, NY 10598, USA
27/*--*/
28
29/* System library. */
30
31#include <sys_defs.h>
32
33/* Utility library. */
34
35#include <stringops.h>
36
37/* Global library. */
38
39#include "mail_proto.h"
40
41/* mail_pathname - map service class and service name to pathname */
42
43char   *mail_pathname(const char *service_class, const char *service_name)
44{
45    return (concatenate(service_class, "/", service_name, (char *) 0));
46}
47