File: config.py

package info (click to toggle)
ezmlm-browse 0.10-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny
  • size: 388 kB
  • ctags: 193
  • sloc: python: 1,133; makefile: 88; xml: 48; ansic: 14; sh: 3
file content (79 lines) | stat: -rw-r--r-- 2,804 bytes parent folder | download | duplicates (3)
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
from globals import *

# Set this to non-zero to allow the raw message bodies to be downloaded,
# complete with all attachments and email addresses intact.
allowraw = 0

# Values are looked up in the following order:
# 1. CGI environment variables
# 2. Hard-coded defaults
# 3. Configured defaults (below)
# 4. Cookies
# 5. Form/URL items
# 6. List configuration (below)
# Values set later in the list override earlier values.

styles = (
	'None',
	('browse.css', 'Default'),
	('purple.css', 'Purple'),
	('greenterm.css', 'Terminal'),
	)

# The following list itemizes default values.  Most of these can be
# omitted if desired.
defaults = {
	# The default style sheet.
	STYLE: 'browse.css',
	# The number of items per page.
	PERPAGE: 20,
	# The number of messages per page.
	MSGSPERPAGE: 10,
	# The default stylesheet prefix. Note: The stylesheets cannot reside
	# in your cgi-bin directory, they must be placed your normal htdocs
	# directory. If the stylesheets are placed in your root htdocs dir,
	# CSSPREFIX should be '/'. If you specify a subdirectory, make sure
	# you place the trailing '/' (slash) character.
	CSSPREFIX: '',
	# The default maximum line length to allow when doing word wrapping.
	WRAPWIDTH: 0,
	# The default type of syndication feed to produce.
	# This may be set to 'atom', 'rss2', or 'rss' (an alias for 'rss2').
	FEEDTYPE: 'atom',
	# The number of messages to put into a feed.
	FEEDMSGS: 10,
	# The order in which messages are normally sorted.
	# 'ascending' means oldest to newest
	# 'descending' means newest to oldest
	DATESORT: 'ascending',
}

# The base directory under which all of the mailing lists can be found.
basedir = '/home/bruce/lists'

# The base hostname for mailing list and subscribe addresses.
basehost = 'lists.untroubled.org'

# For each mailing list you want to have visible to the web, add an
# entry to this table.  Each entry consists of a dictionary
# containing:
#
# LISTDESC: The description to show for this list when producing the index
# LISTDIR: The directory in which the "archive" directory can be found.
# LISTEMAIL: The email address to use to send messages to the list.
# LISTSUB: The email address to use to subscribe to the list.
#
# If they are not present, the LISTDIR, LISTEMAIL, and LISTSUB values
# are automatically generated from the list name and the base directory
# or host above.
#
# This is the place to override any of the defaults above.
# Note that any setting you put here will override any cookie or URL/form
# value as well.
archives = {
	'bgware': { LISTDESC: 'Software by Bruce Guenter' },
	'vmailmgr': { LISTDESC: 'VMailMgr announcements, development, and users' },
	'nullmailer': { LISTDESC: 'The NullMailer MTA' },
	'rpms': { LISTDESC: 'RPMs Built by Bruce Guenter' },
	'test-idx': { LISTDESC: 'Test list' },
	}