Back to index

courier  0.68.2
cmsgidhost.c
Go to the documentation of this file.
00001 /*
00002 ** Copyright 1998 - 1999 Double Precision, Inc.
00003 ** See COPYING for distribution information.
00004 */
00005 
00006 #include      "courier.h"
00007 #include      <stdlib.h>
00008 
00009 static const char *msgidhost;
00010 
00011 const char *config_msgidhost()
00012 {
00013        if (!msgidhost)
00014        {
00015        char   *f=config_localfilename("msgidhost");
00016 
00017               if ((msgidhost=config_read1l(f)) == 0)
00018                      msgidhost=config_me();
00019               free(f);
00020        }
00021        return (msgidhost);
00022 }