File: config.h

package info (click to toggle)
cucipop 1.31-13
  • links: PTS
  • area: non-free
  • in suites: potato
  • size: 292 kB
  • ctags: 394
  • sloc: ansic: 2,380; sh: 157; makefile: 103
file content (96 lines) | stat: -rw-r--r-- 3,351 bytes parent folder | download | duplicates (2)
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
/*$Id: config.h,v 1.20 1998/05/12 21:09:14 srb Exp $*/

#ifndef CUCIPOP_CONFIG_H
#define CUCIPOP_CONFIG_H

#define USEdot_lock	/**/
/*#define USEfcntl_lock /**/	    /* to test which combinations make sense */
/*#define USElockf	/**/	      /* run the lockingtest program part of */
/*#define USEflock	/**/		/* the procmail installation process */

/*#define SHADOW_PASSWD /**/		  /* shadow password library support */

#define USER		/**/			  /* comment out, to disable */
#define UIDL		/**/		  /* the optional command completely */
#define APOP		/**/
#define TOP		/**/

#define LAST_HACK	/**/		   /* uncomment to enable dummy LAST */
							 /* violates RFC1939 */

#define PAM

/* to change the MAILSPOOLDIR, edit authenticate.c */

/************************************************************************
 * Only edit below this line if you *think* you know what you are doing *
 ************************************************************************/

#define LOG_FACILITY	LOG_MAIL
#define PIDFILE		"/var/run/%s.pid"
#define FROM		"From "			 /* to separate the messages */
#define XFROM		"X-From_: "  /* use From_: and M$Exchange falls over */
#define ROOTDIR		"/"	    /* this is where we go when we daemonise */
#define POP3_PORT	110			       /* from /etc/services */
#define TIMEOUT		(10*60)		 /* minimum as specified by RFC 1939 */
typedef unsigned long uidl_t;			    /* for the UIDL wordsize */
#define LOCKSLEEP	4
#define LOWEST_UID	1	   /* decrease to allow root to pick up mail */
						       /* without using APOP */
#define QUIET		'q'
#define PORT		'p'
#define DEBUG		'd'
#define AUDIT		'a'
#define FVERSION	'v'
#define SABOTAGE_UIDL	'S'
#define AUTODELETE	'D'
#define EXPIRE		'E'
#define BERKELEYFORMAT	'Y'			      /* nix Content-Length: */
#define USERF		'P'
#define UIDLF		'U'
#define APOPF		'A'
#define TOPF		'T'
#define HELP1		'h'
#define HELP2		'?'
#define USAGE		"Usage: %s [-vqaYdPUSDAT] [-E age] [-p port]\n"
#define XUSAGE		\
 "\t-v\tdisplay the version number and exit\
\n\t-q\tquiet\
\n\t-a\tturn on auditing\
\n\t-d\tinteractive debug mode\
\n\t-P\tdisable optional USER and PASS command\
\n\t-U\tdisable optional UIDL command\
\n\t-S\tsabotage UIDL command (violates RFC1939)\
\n\t-D\tautodelete RETReived messages (violates RFC1939)\
\n\t-E age\texpire messages through -S or -D older than age only\
\n\t-A\tdisable optional APOP command\
\n\t-T\tdisable optional TOP command\
\n\t-p port\tspecify port other than %d\n"

/*#define LOG_FAILED_PASSWORD			     /* log failed passwords */

#define COPYBUF		32768			/* when doing in-situ copies */
#define GROWSTEP	16
#define LOCKRACE	32
#define SPOOFMASK	0xffff
#define AGETOLERANCE	8192	       /* to allow for incorrect system time */
#define BSIZECATEGORY	16384
#define DIRECTFETCHAGE	32768

#define CONTLENGTH	"content-length:"
#define STATUSFIELD	"status:"
#define XSTATUSFIELD	"x-status:"
#define ARGLEN		40			 /* as specified by RFC 1939 */
#define UIDLLEN		70					/* same here */
#define LINEBUFLEN	(4+1+(ARGLEN+1)*2)    /* maximum command line length */
#define LISTEN_BACKLOG	128
#define TCP_PROT	6			      /* from /etc/protocols */

#define MAXBULLETINS	64
#define MAXSTATEAGE	8388608				       /* > 3 months */
#define MEMORY_CACHE	(64*1024)
#define CUCIPOP_LIB	"/var/lib/cucipop"
#define STATE_DB	"state.db"
#define BULLETINS_PATH	CUCIPOP_LIB"/bulletins"

#endif