summaryrefslogtreecommitdiff
path: root/modules/mm_defaults.py
blob: e2aac6d4c13082338496f9bece747f84c4f9d695 (plain)
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
"""Distributed default settings for significant mailman config variables.

You should NOT edit the values here unless you're changing settings for
distribution.  For site-specific settings, put your definitions in
mm_cfg.py after the point at which it includes (via 'from ... import *')
this file, to override the distributed defaults with site-specific ones.
"""

import os

VERSION           = '1.0b1.1'
__version__ = VERSION + "$Revision: 149 $"

		   # Many site-specific settings #

MAILMAN_URL       = 'http://www.python.org/ftp/python/contrib/Network/mailman/'
DEFAULT_HOST_NAME = 'OVERRIDE.WITH.YOUR.MX.NAME'
SENDMAIL_CMD      = '/usr/lib/sendmail -f %s %s' # yours may be different
DEFAULT_URL       = 'http://www.OVERRIDE.WITH.YOUR.HOST/mailman/'
ARCHIVE_URL       = 'http://www.OVERRIDE.WITH.YOUR.ARCHIVE.DIR/'
# Once we know our home directory we can figure out the rest.
HOME_DIR	  = '/home/mailman'		# Override if you change
MAILMAN_DIR       = '/home/mailman/mailman'	# Override if you change
LIST_DATA_DIR     = os.path.join(MAILMAN_DIR, 'lists')
HTML_DIR	  = os.path.join(HOME_DIR, 'public_html')
CGI_DIR           = os.path.join(HOME_DIR, 'cgi-bin')
LOG_DIR           = os.path.join(HOME_DIR, 'logs')
LOCK_DIR          = os.path.join(MAILMAN_DIR, 'locks')
TEMPLATE_DIR      = os.path.join(MAILMAN_DIR, 'templates')
HOME_PAGE         = 'index.html'
MAILMAN_OWNER     = 'mailman-owner@%s' % DEFAULT_HOST_NAME

# System ceiling on number of batches into which deliveries are divided:
MAX_SPAWNS        = 40

			 # General Defaults #

DEFAULT_FILTER_PROG = ''
# Default number of batches in which to divide large deliveries:
DEFAULT_NUM_SPAWNS = 5
DEFAULT_LIST_ADVERTISED = 1
DEFAULT_MAX_NUM_RECIPIENTS = 10
DEFAULT_MAX_MESSAGE_SIZE = 40		# KB

# These format strings will be expanded w.r.t. the dictionary for the
# maillist instance.
DEFAULT_SUBJECT_PREFIX  = "[%(real_name)s] "
DEFAULT_MSG_HEADER = ""
DEFAULT_MSG_FOOTER = """----------------------------
%(real_name)s maillist
%(web_page_url)slistinfo/%(_internal_name)s
"""

		     # List Accessibility Defaults #

DEFAULT_MODERATED = 0
# Bounce if 'to' or 'cc' fields don't explicitly name list (anti-spam)?
DEFAULT_REQUIRE_EXPLICIT_DESTINATION = 1
# {header-name: regexp} spam filtering - we include one for example sake!
DEFAULT_BOUNCE_MATCHING_HEADERS = """
to: friend@public.com
"""
# Replies to posts inherently directed to list or original sender?
DEFAULT_REPLY_GOES_TO_LIST = 0
# Admin approval unnecessary for subscribes?
DEFAULT_AUTO_SUBSCRIBE = 1
# Is view of subscription list restricted to list members?
DEFAULT_CLOSED = 0
# Make it 1 when it works.
DEFAULT_MEMBER_POSTING_ONLY = 0
# 1 for email subscription verification, 2 for admin confirmation:
DEFAULT_WEB_SUBSCRIBE_REQUIRES_CONFIRMATION = 1

		     # Digestification Defaults #

# Can we get mailing list in non-digest format?
DEFAULT_NONDIGESTABLE = 1
# Can we get mailing list in digest format?
DEFAULT_DIGESTABLE = 1
DEFAULT_DIGEST_IS_DEFAULT = 0
DEFAULT_DIGEST_SIZE_THRESHOLD = 30	# KB
# 0 = never, 1 = daily, 2 = hourly:
DEFAULT_ARCHIVE_UPDATE_FREQUENCY = 2
# 0 = yearly, 1 = monthly
DEFAULT_ARCHIVE_VOLUME_FREQUENCY = 0
# Retain a flat text mailbox of postings as well as the fancy archives?
DEFAULT_ARCHIVE_RETAIN_TEXT_COPY = 1

		    # Bounce Processing Defaults #

# Should we do any bounced mail checking at all?
DEFAULT_BOUNCE_PROCESSING = 0 
# Minimum number of days that address has been undeliverable before 
# we consider nuking it..
DEFAULT_MINIMUM_REMOVAL_DATE = 5
# Minimum number of bounced posts to the list before we consider nuking it.
DEFAULT_MINIMUM_POST_COUNT_BEFORE_REMOVAL = 3
# 0 means no, 1 means yes but send admin a report,
# 2 means nuke 'em all and don't tell me (whee:)
DEFAULT_AUTOMATICALLY_REMOVE = 0
# Maximum number of posts that can go by w/o a bounce before we figure your
# problem must have gotten resolved...  usually this could be 1, but we
# need to account for lag time in getting the error messages.  I'd set this
# to the maximum number of messages you'd expect your list to reasonably
# get in 1 hour.
DEFAULT_MAX_POSTS_BETWEEN_BOUNCES = 5

# Enumeration for types of configurable variables in Mailman.
Toggle    = 1
Radio     = 2
String    = 3
Text      = 4
Email     = 5
EmailList = 6
Host      = 7
Number    = 8

# could add Directory and URL


# Bitfield for user options
Digests             = 0 # handled by other mechanism, doesn't need a flag.
DisableDelivery     = 1
DontReceiveOwnPosts = 2 # Non-digesters only
AcknowlegePosts     = 4
EnableMime          = 8 # Digesters only
ConcealSubscription = 16