1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203
|
#ifndef _SUCK_CONFIG_H
#define _SUCK_CONFIG_H 1
#define DEFAULT_NNRP_PORT 119 /* port to talk to on remote machine */
#define LOCAL_PORT 119 /* port to talk to on local host */
/* Max length of a Message-ID that is possbile */
#define MAX_MSGID_LEN 196
/* Max length of a Group Name */
#define MAX_GRP_LEN 128
/* If you don't EVER plan to use the KILLFILE stuff, comment this out for a slight speed increase */
/* If you want to, or plan to, use the KILLFILE stuff, uncomment this */
#define KILLFILE 1
/* This is the character used in killfiles to tell if we should do a case sensitive or a */
/* case insensitive compare. It can be overridden in a killfile. */
#define KILLFILE_QUOTE '"'
/* This is the character that is used as a comment flag in col 0 in killfiles */
#define KILLFILE_COMMENT_CHAR '#'
/* This is the character used in killfiles to tell if we should always do a non-regex */
/* compare on the string. It can be overridden in a killfile. */
#define KILLFILE_NONREGEX '%'
/* this is the start buffer size for the killfile get body routine */
/* this should be close to the max size of the message you expect to get */
#define KILL_BODY_BUF_SIZE 80960
/* this is the amount of extra memory we grab everytime we need to increase memory */
/* typically for huge articles */
/* WARNING, THIS MUST BE BIGGER THAN MAXLINLEN */
#define KILL_CHUNK_BUF_INCREASE 10240
/* if using -A (scan active file), this is the number I use for lastread when I get */
/* a new group, 0 = all messages, -100 means get last 100 messages */
#define ACTIVE_DEFAULT_LASTREAD -100
#ifdef HAVE_SELECT /* if the system doesn't support select, then you can't use this */
/* if you want to timeout if no read after X seconds define this */
/* as number of seconds before timeout */
/* else, comment it out. If you comment it out, if link goes down */
/* we'll just sit, twiddling our bits, until whenever. */
#define TIMEOUT 90
#endif /* HAVE_SELECT */
/* signal which will interrupt us DON'T USE SIGKILL OR SIGSTOP */
/* if you don't want to be able to abort, and a miniscule speed */
/* increase, comment this out */
/* WARNING: if you plan to use the killprg part of the killfile routines */
/* then leave this in. If you don't, and the child program dies unexpectedly */
/* suck will also die. */
#define MYSIGNAL SIGTERM
#define PAUSESIGNAL SIGUSR1
/* If you want to have suck check in your history file for articles */
/* that you already have, uncomment this. */
/* If you use DBM, DBZ, or NDBM then you need to edit the Makefile */
/* to show which DB scheme you use. */
#define CHECK_HISTORY 1
/* If your system doesn't like the lock file stuff in suck.c or lmove.c */
/* comment this out */
#define LOCKFILE 1
/* FULL PATH of error log used if -e option specifed to any of the programs */
/* can be overridden at the command line with -E option */
#define ERROR_LOG "./suck.errlog"
/* FULL PATH of status messages log if -s option specified to any of the programs */
/* can be overridden at the command line with -S option */
#define STATUS_LOG "/dev/null" /* /dev/null = silent mode */
/* FIRST Character used in args to signify read arguments from a file */
#define FILE_CHAR '@'
/* Comment character in arg file, everything after this on a line is ignored */
#define FILE_ARG_COMMENT '#'
/* String used in RPOST to search for Duplicate Message-ID responses from server */
#define RPOST_DUPE_STR "Duplicate"
/* FILE NAMES */
/* Data files read in */
#define N_OLDRC "sucknewsrc" /* what newsgroups to download */
#define N_KILLFILE "suckkillfile" /* Parameter file for which articles NOT to download via killfiles*/
#define N_SUPPLEMENTAL "suckothermsgs" /* list of article nrs to add to our list to download */
#define N_LMOVE_ACTIVE "active" /* list of active newsgroups for lmove to read */
#define N_ACTIVE_IGNORE "active-ignore" /* list of newsgroups ignored by read local active option */
#define N_LMOVE_CONFIG "lmove-config" /* config file for lmove */
#define N_XOVER "suckxover" /* parameter file for which articles NOT to download via xover */
#define N_PHRASES "/usr/local/lib/suck.phrases" /* default location for phrase file */
#define HISTORY_FILE "/usr/news/db/history" /* default location for history file */
/* TEMP FILES created */
#define N_NEWRC "suck.newrc"
#define N_KILLLOG "suck.killlog"
#define N_LOCKFILE "suck.lock"
#define N_DBFILE "suck.db"
#define N_TMP_EXTENSION ".tmp" /* added to file in process of being downloaded */
#define N_LMOVE_LOCKFILE "lmove.lock"
#define N_POSTFILE "suck.post"
/* Old copy of N_OLDRC (saved just in case) */
#define N_OLD_OLDRC "sucknewsrc.old"
/* Various DIRECTORY PATHS, these can be overriden from command line */
#define N_TMPDIR "." /* location of Temp Files */
#define N_DATADIR "." /* location of Data Files */
#define N_MSGDIR "./Msgs" /*location of articles produced by suck, if multifile option selected */
/* Argument substition strings for rpost */
#define RPOST_FILTER_IN "$$i"
#define RPOST_FILTER_OUT "$$o"
/* Max nr of args to the rpost filter */
#define RPOST_MAXARGS 128
/* extension added by rpost to the batch file when */
/* a message upload fails and we have to write out */
/* a failed file */
#define RPOST_FAIL_EXT ".fail"
/* RNEWS program called by lpost */
#define RNEWS "/usr/lib/news/rnews"
/* character used as a comment in sucknewsrc */
#define SUCKNEWSRC_COMMENT_CHAR '#'
/* character used as a separate in the PATH environment variable */
#define PATH_SEPARATOR ':'
/* maximum number of args to killprg */
#define KILLPRG_MAXARGS 128
/* length of string sent to killprg (min length must be 8) */
#define KILLPRG_LENGTHLEN 8
/* mode for directory when creating in lmove */
#define LMOVE_DEFAULT_DIR_MODE 0755 /* in octal */
/* longest line possible in a message for lmove */
#define LMOVE_MAXLINLEN 8192
/* mode for active file when rewriting it */
#define LMOVE_ACTIVE_MODE 0755 /* in octal */
/* max number of args for suck to pass to lmove */
#define LMOVE_MAX_ARGS 12
/* Internal buffer size shouldn't need to change */
#define MAXLINLEN 4096
/* Internal buffer size for print_phrases */
#define PHRASES_BLOCK_SIZE 1024
/* Character that is used to separate variables (front and back) in phrases */
#define PHRASES_SEPARATOR '%'
#define PHRASES_VAR_CHAR 'v'
/* phrase that defines a group name in suck.sorted */
#define RESTART_GROUP "GROUP"
/* stuff needed for Perl killfile interpreter */
#define PERL_PACKAGE_SUB "Embed::Persistant::perl_kill"
/* stuff needed for Perl rpost interpreter */
#define PERL_RPOST_SUB "Embed::Persistant::perl_rpost"
/* stuff needed for PERL xover interpreter */
#define PERL_OVER_SUB "Embed::Persistant::perl_overview" /* subroutine which gets the overview.fmt list */
#define PERL_XOVER_SUB "Embed::Persistant::perl_xover" /* subroutine which gets each xoverview line */
/*------------------------------------------------------------*/
/* the following should be handled by the auto-config stuff */
/* shouldn't need to touch below here */
#ifndef HAVE_MEMMOVE /* if you don't have memmove, try bcopy */
#define memmove(a,b,c) bcopy(b,a,c)
#endif
#ifndef PATH_MAX /* in case you don't have it */
#ifdef _POSIX_PATH_MAX
#define PATH_MAX _POSIX_PATH_MAX
#endif
#endif
#ifndef PATH_MAX
#ifdef MAXPATHLEN
#define PATH_MAX MAXPATHLEN
#endif
#endif
#ifndef PATH_MAX
/* for Solaris */
#ifdef MAXNAMLEN
#define PATH_MAX MAXNAMLEN
#endif
#endif
#endif /* _SUCK_CONFIG_H */
|