2N/A * The contents of this file are subject to the terms of the 2N/A * Common Development and Distribution License (the "License"). 2N/A * You may not use this file except in compliance with the License. 2N/A * See the License for the specific language governing permissions 2N/A * and limitations under the License. 2N/A * When distributing Covered Code, include this CDDL HEADER in each 2N/A * If applicable, add the following below this CDDL HEADER, with the 2N/A * fields enclosed by brackets "[]" replaced with your own identifying 2N/A * information: Portions Copyright [yyyy] [name of copyright owner] 2N/A * Copyright 2008 Sun Microsystems, Inc. All rights reserved. 2N/A * Use is subject to license terms. 2N/A/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ 2N/A/* All Rights Reserved */ 2N/A#
pragma ident "%Z%%M% %I% %E% SMI" 2N/A * maildomain() - retrieve the domain name 2N/A * char *maildomain() 2N/A * Retrieve the domain name from xgetenv("DOMAIN"). 2N/A * If that is not set, use sysinfo(SI_SRPC_DOMAIN) from 2N/A * -lnsl. Otherwise, return an empty string. 2N/A/* read a file for the domain */ 2N/A/* read the domain from the xenvironment or one of the files */ 2N/A /* if we've already been here, return the info */ 2N/A /* Make certain that the domain begins with a single dot */ 2N/A /* and does not have one at the end. */ 2N/A /* no domain information */