home *** CD-ROM | disk | FTP | other *** search
- /* $Header: uuconf.h,v 3.0 86/03/14 12:05:12 sob RELEASE_3 $
- * Configuration for uumail and uupath utilities
- * Please see the header for makefile for changes you may
- * need to make there.
- ***************************************************************************
- This work in its current form is Copyright 1986 Stan Barber
- with the exception of opath, gethostname and the original getpath which
- as far as I know are in the Public Domain. This software may be distributed
- freely as long as no profit is made from such distribution and this notice
- is reproducted in whole.
- ***************************************************************************
- This software is provided on an "as is" basis with no guarantee of
- usefulness or correctness of operation for any purpose, intended or
- otherwise. The author is in no way liable for this software's performance
- or any damage it may cause to any data of any kind anywhere.
- ***************************************************************************
- * $Log: uuconf.h,v $
- * Revision 3.0 86/03/14 12:05:12 sob
- * Release of 3/15/86 --- 3rd Release
- *
- * Revision 1.8 86/03/14 11:58:00 sob
- *
- *
- * Revision 1.7 86/02/23 23:02:46 sob
- * updated to follow modifications to getpath
- *
- * Revision 1.6 85/12/30 17:00:55 sob
- * Removed include for setjump.h and added NULL definition
- * suggested by bug report
- *
- * Revision 1.5 85/12/10 20:42:30 sob
- * Added defines for new parts of getpath, SENTINAL and TIMEOUT
- *
- * Revision 1.4 85/10/02 02:16:21 sob
- * Added LOCALMAIL definition
- *
- * Revision 1.3 85/09/30 02:50:51 sob
- * Added pwd.h to list of include files
- *
- * Revision 1.2 85/07/11 19:29:34 sob
- * *** empty log message ***
- *
- * Revision 1.1 85/07/11 19:22:20 sob
- * Initial revision
- *
- */
- #include <stdio.h>
- #include <ctype.h>
- #include <pwd.h>
- #include <signal.h>
-
- /*
- * sysexits is a file of exit codes that are used in sendmail
- * and other programs ...
- */
- #include <sysexits.h>
- /* if you don't have sysexits.h here are the useful parts */
- #ifndef EX_OK
-
- # define EX_OK 0 /* successful termination */
-
-
- # define EX_USAGE 64 /* command line usage error */
- # define EX_DATAERR 65 /* data format error */
- # define EX_NOINPUT 66 /* cannot open input */
- # define EX_NOHOST 68 /* host name unknown */
- # define EX_UNAVAILABLE 69 /* service unavailable */
- # define EX_SOFTWARE 70 /* internal software error */
- # define EX_OSERR 71 /* system error (e.g., can't fork) */
- # define EX_OSFILE 72 /* critical OS file missing */
- # define EX_CANTCREAT 73 /* can't create (user) output file */
- # define EX_IOERR 74 /* input/output error */
- # define EX_TEMPFAIL 75 /* temp failure; user should retry */
- #endif
-
- typedef char bool;
-
- #ifdef DBM
- #include <dbm.h>
- #endif
-
- #ifdef SYSIII
- #define index strchr
- #define rindex strrchr
- #include <sys/utsname.h>
- #endif
-
- #define NAMESIZ 32 /* system name size */
- #define PATHSIZ 16*NAMESIZ /* path length */
- #define NEIGHBORS BUFSIZ/NAMESIZ
- #define TRUE 1
- #define FALSE 0
-
- #ifndef TIMEOUT
- #define TIMEOUT ((unsigned) 180)
- #endif TIMEOUT
-
- #ifndef SENTINEL
- #define SENTINEL "@@@"
- #endif SENTINEL
-
- /* Does this solve the problem of null for dbm users?
- * problem reported by pluto!warren */
- #ifndef NULL
- #define NULL ((char *) 0)
- #endif
-
- /* Here's where you should put in the the name of the file
- * in which the uucpmap data is kept.
- * For those using DBM, this will be the root filename for the database
- * (eg... file.pag and file.dir with root name file)
- */
- #define DATABASE "/usr/lib/uucp/palias"
- #define CONFIGFILE "/usr/lib/uucp/domains"
- #define LOGFILE "/usr/adm/uumail.log"
- #define ALIASFILE "/usr/lib/uucp/Aliases"
- /* this needs to be a printf-like string to deliver LOCAL mail */
- /* usually this is either /bin/mail or /bin/binmail */
-
- #define LOCALMAIL "/bin/bellmail %s"
-
- #ifdef _DEFINE
- #define EXTERN
- #else
- #define EXTERN extern
- #endif
- /* The following structure is stolen from MH for use in a new
- aliasing and forwarding feature that will likely be stolen from
- MH. My thanks to the MH folks for making this stuff possible. */
-
- struct mailname {
- struct mailname *m_next;
- char *m_name;
- int m_pipe;
- } ;
-
- EXTERN int Debug;
- EXTERN char *paths;
- EXTERN char *ConfFile;
- EXTERN char *AliasFile;
- EXTERN char Myname[NAMESIZ];
- EXTERN char *logfile;
- EXTERN char OpMode; /* operation mode, see below */
- /* These don't do anything yet.... maybe next time they will do something */
- #define MD_DELIVER 'm' /* be a mail sender */
- #define MD_ARPAFTP 'a' /* old-style arpanet protocols */
- #define MD_SMTP 's' /* run SMTP on standard input */
- #define MD_DAEMON 'd' /* run as a daemon */
- #define MD_VERIFY 'v' /* verify: don't collect or deliver */
- #define MD_TEST 't' /* test mode: resolve addrs only */
- #define MD_INITALIAS 'i' /* initialize alias database */
- #define MD_PRINT 'p' /* print the queue */
- #define MD_FREEZE 'z' /* freeze the configuration file */
-