/*- * Copyright (c) 1996 * David Parsons. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. All advertising materials mentioning features or use of this software * must display the following acknowledgement: * This product includes software developed by David Parsons * (orc@pell.chi.il.us) * 4. My name may not be used to endorse or promote products derived * from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. */ /* * automod: moderate articles via a bot. */ #ifndef _AUTOMOD_D #define _AUTOMOD_D #include #include #include #include #include /* --- Modify these constants as appropriate --- */ /* ** AUTOMOD_DIR must point to the directory where automod will keep its ** configuration files, logs and databases. Note that automod will keep ** a separate subdirectory for each group that it is moderating. */ #define AUTOMOD_DIR "/home/automod" /* * LOCK_PREFIX is where automod puts its thread lock, if needed. * Conventionally it's AUTOMOD_DIR, but you may want to put it * elsewhere if /tmp is a memory filesystem or on a speedy and * uncluttered disk */ #define LOCK_PREFIX AUTOMOD_DIR /* ** The DEFAULT_ values below are only used if automod cannot find the ** corresponding values in its configuration file for the group. */ /* ** DEFAULT_ADMIN_ADDR is the address to which error reports are mailed. ** It is only used if the `AdminAddr' parameter is not correctly specified ** in the configuration file for the newsgroup. */ #define DEFAULT_ADMIN_ADDR "postmaster@gehenna.pell.chi.il.us" /* ** DEFAULT_APPROVAL is the address that will go into the `Approved' line in ** the article when it is finally posted. It is only used if the `Approval' ** parameter is not correctly specified in the configuration file for the ** newsgroup. */ #define DEFAULT_APPROVAL "AUTOMOD@gehenna.pell.chi.il.us" /* ** DEFAULT_KEYWORD is the keyword which a first time poster must place at ** the start of his Subject line to get his post accepted. It is only used if ** the `Keyword' parameter is not correctly specified in the configuration file ** for the newsgroup. */ #define DEFAULT_KEYWORD "DELURK" /* ** Some necessary programs that may live in odd places on different systems. */ #define SENDMAIL "/usr/lib/sendmail" #define RNEWS "/usr/lib/news/rnews" /* * If your system supports the atexit() library call, define this. */ #define ATEXIT_DEFINED 1 /* ** --- DO NOT MODIFY ANYTHING BELOW HERE --- */ #define CONFIG AUTOMOD_DIR "/%s/automod.cfg" #define LOG AUTOMOD_DIR "/%s/Log" #define APPROVE AUTOMOD_DIR "/%s/approved" #define PENDING AUTOMOD_DIR "/%s/pending" #define XPOST AUTOMOD_DIR "/%s/crosspost" #define FIRSTPOST_MSG AUTOMOD_DIR "/%s/firstpost.msg" #define REPOST_MSG AUTOMOD_DIR "/%s/repost.msg" #define CROSSPOST_MSG AUTOMOD_DIR "/%s/crosspost.msg" #define WELCOME_MSG AUTOMOD_DIR "/%s/welcome.msg" #define MAILER "MAILER-DAEMON" enum Denial { DENY_CROSSPOST, DENY_SUBJECT, DENY_FIRSTPOST, DENY_HEADERS, DENY_CRITICAL, DENY_REPOST }; #endif/*_AUTOMOD_D*/