summaryrefslogtreecommitdiff
path: root/modules/mm_cfg.py
diff options
context:
space:
mode:
authorklm1998-01-06 21:16:08 +0000
committerklm1998-01-06 21:16:08 +0000
commit050eed0609bf1697777dfb5e22c0e563c90fca1a (patch)
treefabe59515f0a68c386749bf213b0e0eac71f86b0 /modules/mm_cfg.py
downloadmailman-050eed0609bf1697777dfb5e22c0e563c90fca1a.tar.gz
mailman-050eed0609bf1697777dfb5e22c0e563c90fca1a.tar.zst
mailman-050eed0609bf1697777dfb5e22c0e563c90fca1a.zip
Initial revision
Diffstat (limited to 'modules/mm_cfg.py')
-rw-r--r--modules/mm_cfg.py48
1 files changed, 48 insertions, 0 deletions
diff --git a/modules/mm_cfg.py b/modules/mm_cfg.py
new file mode 100644
index 000000000..b36ee3111
--- /dev/null
+++ b/modules/mm_cfg.py
@@ -0,0 +1,48 @@
+# This file needs to get auto-generated.
+# As much of it as possible should be gleaned w/o prompting the user.
+
+import os
+
+MAILMAN_URL = 'http://www.list.org/'
+MAX_SPAWNS = 40
+DEFAULT_HOST_NAME = 'list.org'
+
+VERSION = '1.0b1'
+# Our home directory. Once we know this, we can figure out other things
+# for ourselves
+HOME_DIR = '/home/mailman'
+MAILMAN_DIR = '/home/mailman/mailman'
+# I don't think this is used any more
+MAIL_LOG = '/var/log/maillog'
+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')
+LOCK_DIR = os.path.join(MAILMAN_DIR, 'locks')
+SENDMAIL_CMD = '/usr/sbin/sendmail -f %s %s'
+DEFAULT_URL = 'http://%s/mailman/' % DEFAULT_HOST_NAME
+TEMPLATE_DIR = os.path.join(MAILMAN_DIR, 'templates')
+ARCHIVE_URL = 'http://%s/~mailman/archives' % DEFAULT_HOST_NAME
+HOME_PAGE = 'index.html'
+MAILMAN_OWNER = 'mailman@%s' % DEFAULT_HOST_NAME
+
+
+# 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