diff -Nur smeserver-ezmlm-web-1.1.2.old/root/etc/e-smith/db/configuration/defaults/ezmlm/debug smeserver-ezmlm-web-1.1.2/root/etc/e-smith/db/configuration/defaults/ezmlm/debug --- smeserver-ezmlm-web-1.1.2.old/root/etc/e-smith/db/configuration/defaults/ezmlm/debug 1969-12-31 19:00:00.000000000 -0500 +++ smeserver-ezmlm-web-1.1.2/root/etc/e-smith/db/configuration/defaults/ezmlm/debug 2016-04-20 12:43:32.069000000 -0400 @@ -0,0 +1 @@ +disabled diff -Nur smeserver-ezmlm-web-1.1.2.old/root/etc/e-smith/db/configuration/defaults/ezmlm/encryption smeserver-ezmlm-web-1.1.2/root/etc/e-smith/db/configuration/defaults/ezmlm/encryption --- smeserver-ezmlm-web-1.1.2.old/root/etc/e-smith/db/configuration/defaults/ezmlm/encryption 1969-12-31 19:00:00.000000000 -0500 +++ smeserver-ezmlm-web-1.1.2/root/etc/e-smith/db/configuration/defaults/ezmlm/encryption 2016-04-20 12:43:39.245000000 -0400 @@ -0,0 +1 @@ +disabled diff -Nur smeserver-ezmlm-web-1.1.2.old/root/etc/e-smith/db/configuration/defaults/ezmlm/interface smeserver-ezmlm-web-1.1.2/root/etc/e-smith/db/configuration/defaults/ezmlm/interface --- smeserver-ezmlm-web-1.1.2.old/root/etc/e-smith/db/configuration/defaults/ezmlm/interface 1969-12-31 19:00:00.000000000 -0500 +++ smeserver-ezmlm-web-1.1.2/root/etc/e-smith/db/configuration/defaults/ezmlm/interface 2016-04-20 12:44:00.172000000 -0400 @@ -0,0 +1 @@ +normal diff -Nur smeserver-ezmlm-web-1.1.2.old/root/etc/e-smith/db/configuration/defaults/ezmlm/options smeserver-ezmlm-web-1.1.2/root/etc/e-smith/db/configuration/defaults/ezmlm/options --- smeserver-ezmlm-web-1.1.2.old/root/etc/e-smith/db/configuration/defaults/ezmlm/options 1969-12-31 19:00:00.000000000 -0500 +++ smeserver-ezmlm-web-1.1.2/root/etc/e-smith/db/configuration/defaults/ezmlm/options 2016-04-20 12:44:46.749000000 -0400 @@ -0,0 +1 @@ +aBDFGHiJkLMNOpQRSTUWx diff -Nur smeserver-ezmlm-web-1.1.2.old/root/etc/e-smith/db/configuration/defaults/ezmlm/type smeserver-ezmlm-web-1.1.2/root/etc/e-smith/db/configuration/defaults/ezmlm/type --- smeserver-ezmlm-web-1.1.2.old/root/etc/e-smith/db/configuration/defaults/ezmlm/type 1969-12-31 19:00:00.000000000 -0500 +++ smeserver-ezmlm-web-1.1.2/root/etc/e-smith/db/configuration/defaults/ezmlm/type 2016-04-20 12:26:52.757000000 -0400 @@ -0,0 +1 @@ +configuration diff -Nur smeserver-ezmlm-web-1.1.2.old/root/etc/e-smith/templates/etc/ezmlm/ezmlmwebrc/BODY smeserver-ezmlm-web-1.1.2/root/etc/e-smith/templates/etc/ezmlm/ezmlmwebrc/BODY --- smeserver-ezmlm-web-1.1.2.old/root/etc/e-smith/templates/etc/ezmlm/ezmlmwebrc/BODY 2016-04-20 07:35:06.363000000 -0400 +++ smeserver-ezmlm-web-1.1.2/root/etc/e-smith/templates/etc/ezmlm/ezmlmwebrc/BODY 2016-04-20 12:48:20.128000000 -0400 @@ -43,12 +44,6 @@ # Where do the qmail control files live on this system ... $QMAIL_BASE = $Mail::Ezmlm::QMAIL_BASE . '/control'; -# The url to our web interface - so we can use ezmlm-cgi if necessary -$EZMLM_CGI_URL = 'http://some.server.that.has/cgi-bin/ezmlm-cgi'; - -# Where our ezcgirc file lives (probably /etc/ezmlm/ezcgirc) -$EZMLM_CGI_RC = '/etc/ezmlm/ezcgirc'; - # Do we want to allow ``pretty'' names - ie more human readable ones # This will slow ezmlm-web down a bit for large lists $PRETTY_NAMES = 1; @@ -60,247 +55,113 @@ # What switches to we want ezmlm-web to have on as default. The ezmlm-make # defaults are aBDFGHIJKLMNOpQRSTUWX (small means enabled, CAPITALS mean # disabled). The defaults below should be reasonable - I use them ;) -$DEFAULT_OPTIONS = 'aBDFGHiJkLMNOpQRSTUWx'; +EOF -# Where do we find the nice little help icon - by default HELP_ICON_URL -# points to resources on http://rucus.ru.ac.za/. This will work, but we -# would appreciate it if you changed this to a local site. -# $HELP_ICON_URL = '/icons/small/unknown.gif'; -$HELP_ICON_URL = '/server-common/unknown.gif'; - -# Header for every page (.= concatinates) -# $HTML_HEADER = '
E Z Mailing List Manager

'; -# $HTML_HEADER .= '
'; - -$HTML_HEADER =< - - - - - -
- SME Server ezmlm-web -
- -
- -END_OF_HEADER - -# $HTML_HEADER = '
E Z Mailing List Manager

'; -$HTML_HEADER .= '
'; - -# Footer for every page (.= concatinates) -$HTML_FOOTER = '
'; -$HTML_FOOTER .= '
'; -$HTML_FOOTER .= 'ezmlm-web (v2.1) A web interface to ezmlm
'; - -# What colour do we want the background to be? -# $HTML_BGCOLOR = '#000080'; -$HTML_BGCOLOR = '#FFFFFF'; - -# What colour do we want text? -$HTML_TEXT = '#000000'; - -# What color do we want links? -$HTML_LINK = '#3333ff'; - -# What color to we want visited links? -$HTML_VLINK = '#8888ff'; - -# What is the title of this document? -# $HTML_TITLE = 'E Z Mailing List Manager'; -$HTML_TITLE = 'Mailing Lists'; +my $options= ($ezmlm->{options} || 'aBDFGHiJkLMNOpQRSTUWx'; +$OUT .= "\$DEFAULT_OPTIONS = '$options'"; -# --------------------------------------------------------------------------- +my $title= ($ezmlm->{title} || 'Koozali SME Server Mailing List Manager'; +$OUT .= "# What is the title of this document? +\$HTML_TITLE = '$title';"; + + +$OUT .= <<'EOF'; +# Optional: some permanent links (visible in the top right corner) +#@HTML_LINKS = ( +# { name => 'ezmlm-web homepage', +# url => 'https://systemausfall.org/toolforge/ezmlm-web' }, +# { name => 'domain\'s root', +# url => '/'}, +# ); + +# Multi-Domain-Support +# This is a quite advanced setting for special installations. +# Most people should just ignore it. +# Anyway - if you want to control more than one directory containing +# different lists, then you should: +# 1) copy examples/multidomain.conf.dist to /etc/ezmlm-web/multidomain.conf +# 2) adjust /etc/ezmlm-web/multidomain.conf to your setup +# 3) uncomment the following line +# 4) make sure that your multi domain settings are not overriden by settings below +#warn "multidomain.conf failed" unless (defined do "/etc/ezmlm-web/multidomain.conf"); + +# Where do we store the dotqmail files of this user? +# (defaults to the home directory of the executing user) +# You will have to change this value, if you use a multi domain +# vpopmail setup. Otherwise just leave the setting turned off. +# BEWARE: the (resulting) path MUST be absolute (starting with a slash)! +#$DOTQMAIL_DIR = "/home/vpopmail/domain"; + +# Where is the webusers file for access-permissions +# defaults to "$LIST_DIR/webusers" +#$WEBUSERS_FILE = "$LIST_DIR/webusers"; + +# default mailing list domain name (optional) +#$MAIL_DOMAIN = "lists.someserver.org"; + +# default prefix of the local part of the addresses of mailing lists +# useful for some qmail-ldap setups +#$MAIL_ADDRESS_PREFIX = "lists-"; -# The meanings of the various ezmlm-make command line switches. The default -# ones match the ezmlm-idx 0.4 default ezmlmrc ... Alter them to suit your -# own ezmlmrc. Removing options from this list makes them unavailable -# through ezmlm-web - this could be useful for things like -w - -%EZMLM_LABELS = ( -# option => ['Short Name', -# 'Long Help Description'], - - a => ['Archived', - 'Ezmlm will archive new messages'], - b => ['Block archive', - 'Only moderators are allowed to access the archive'], -# c => config. This is implicity called, so is not defined here - d => ['Digest', - 'Set up a digest list to disseminate digest of the list messages'], -# e => edit. Also implicity called, so not defined here - f => ['Prefix', - 'Outgoing subject will be prefixed with the list name'], - g => ['Guard Archive', - 'Archive access requests from unrecognized SENDERs will be rejected'], - h => ['Help subscription', - 'Subscriptions do not require confirmation'], - i => ['Indexed', - 'Indexed for WWW archive access'], - j => ['Jump off', - 'Unsubscribe does not require confirmation'], - k => ['Kill', - 'Posts from addresses in dir/deny/ are rejected'], - l => ['Subscriber List', - 'Remote administrators can request a subscriber list'], - m => ['Message Moderation', - 'All incoming messages are moderated'], - n => ['Text Editing', - 'Allow remote administrators to edit files in dir/text/'], - o => ['Others rejected', - 'Posts from addresses other than moderators are rejected'], - p => ['Public', - 'List will respond to administrative requests and archive retrieval'], - q => ['Service Request Address', - 'Process commands sent in the subject to local-request@host'], - r => ['Remote Admin', - 'Enable remote adminstration of the list'], - s => ['Subscription Moderation', - 'Subscriptions to the main list and digest will be moderated'], - t => ['Trailer', - 'Add a trailer to outgoing messages'], - u => ['User Posts Only', - 'Posts from unrecognized SENDER addresses will be rejected'], -# v => version. I doubt you will really need this ;-) - w => ['Remove Warn', - 'Remove the ezmlm-warn(1) invocations from the list setup. It is assumed that ezmlm-warn(1) is run by other means'], - x => ['Extra', - 'Strip certain mimetypes, etc'], -# y => not used -# z => not used - -# These all take an extra argument, which is the default value to use - -# 0 => ['Sublist', -# 'Make the list a sublist of list mainlist@host', -# 'mainlist@host'], -# 1 => not used -# 2 => not used -# 3 => ['From Address', -# 'Replace the "From:" header of the message with "From: fromarg"', -# 'fromarg'], -# 4 => ['Digest Options', -# 'Switches for ezmlm-tstdig(1)', -# '-t24 -m30 -k64'], - 5 => ['List Owner', - 'The email address of the list owner', - ''], -# 6 => ['SQL Database', -# 'SQL database connect information. Requires SQL support', -# 'host:port:user:password:datab:table'], -# 7 => ['Message Moderation Path', -# 'Make /path the path to the database for message moderators, if the list is set up for message moderation', -# '/some/full/path'], -# 8 => ['Subscription Moderation Path', -# 'Make /path the path to the database for message moderators, if the list is set up for message moderation', -# '/some/full/path'], -# 9 => ['Remote Admin Path', -# 'Make /path the path to the database for message moderators, if the list is set up for message moderation', -# '/some/full/path'] - -); - -# This list defines most of the context sensitive help in ezmlm-web. What -# isn't defined here is the options, which are defined above ... You can -# alter these if you feel something else would make more sense to your users -# Just be careful of what can fit on a screen! - -%HELPER = ( - - # These should be self explainitory - addaddress => 'You may enter any RFC822 compliant email address here, including the comment part. For example; J Random User ', - addaddressfile => 'or you may enter the filename of a plain text file containing multiple RFC822 email addresses, one per line', - moderator => 'Moderators: people who control who may subscribe or post to a list', - deny => 'Deny: A list of addresses that are _never_ allowed to mail the list', - allow => 'Allow: A list of address that are allowed to mail the list even if the configuration otherwise restricts it', - digest => 'Digest: People who will recieve a digest of all messages on the list', - webarch => 'View the web based archive of this list', - config => 'This lets you alter the way the list is set up', - listname => 'This is the name of the list as displayed on the Select Lists screen. It is also the name of the subdirectory that contains the list', - listadd => 'This is the email address of the list. Note that the defaults come from your qmail config. You should just update the local part (before the @)', - webusers => 'NB! At this stage, any users specified here must exist. User creation may be added in future versions', - prefix => 'Text to add to the subject line of all outgoing messages', - headerremove => 'This is a list of headers to remove from all outgoing mail', - headeradd => 'This is a list of headers to add to all outging mail', - mimeremove => 'All messages whose Content-Type matches these mime types will be bounced back to sender', - allowedit => 'Comma separated list of usernames, or ALL (all valid users)', - mysqlcreate => 'This will create the necessary MySQL tables if the list configuration above requires it' - -); - -# This defines the captions of each of the buttons in ezmlm-web, and allows -# you to configure them for your own language or taste. Since these are used -# by the switching algorithm it is important that every button has a unique -# caption - ie we can't have two 'Edit' buttons doing different things. - -%BUTTON = ( - - # These MUST all be unique! - create => 'Create', - createlist => 'Create List', - edit => 'Edit', - delete => 'Delete', - deleteaddress => 'Delete Address', - addaddress => 'Add Address', - moderators => 'Moderators', - denylist => 'Deny List', - allowlist => 'Allow List', - digestsubscribers => 'Digest Subscribers', - configuration => 'Configuration', - yes => 'Yes', - no => 'No', - updateconfiguration => 'Update Configuration', - edittexts => 'Edit Texts', - editfile => 'Edit File', - savefile => 'Save File', - webarchive => 'Web Archive', - selectlist => 'Select List', - subscribers => 'Subscribers', - cancel => 'Cancel', - resetform => 'Reset Form', - -); - -# This defines the fixed text strings that are used in ezmlm-web. By editing -# these along with the button labels and help texts, you can convert ezmlm-web -# to another language :-) If anyone gets arround to doing complete templates -# for other languages I would appreciate a copy so that I can include it in -# future releases of ezmlm-web. - -%LANGUAGE = ( - nop => 'Action not yet implemented', -# chooselistinfo => "

  • Choose a mailing list from the selection box or click on [$BUTTON{'create'}].
  • Click on the [$BUTTON{'edit'}] button if you want to edit the selected list.
  • Click on the [$BUTTON{'delete'}] button if you want to delete the selected list.
", - chooselistinfo => "
  • Choose a mailing list from the selection box and click on the [$BUTTON{'edit'}] button to edit the selected list.
", - confirmdelete => 'Confirm deletion of', # list name - subscribersto => 'Subscribers to', # list name - subscribers => 'subscribers', - additionalparts => 'Additional list parts', - posting => 'Posting', - subscription => 'Subscription', - remoteadmin => 'Remote Admin', - for => 'for', # as in; moderators for blahlist - createnew => 'Create a New List', - listname => 'List Name', - listaddress => 'List Address', - listoptions => 'List Options', - allowedtoedit => 'Users allowed to edit this list', - editconfiguration => 'Edit the List Configuration', - prefix => 'Subject prefix for outgoing messages', - headerremove => 'Headers to strip from all outgoing mail', - headeradd => 'Headers to add to all outgoing mail', - mimeremove => 'Mime types to strip from all outgoing mail', - edittextinfo => "The box on the left contains a list of files available in the
DIR/text directory. These files are sent out in response to specfic user request, or as part of all outgoing messages

To edit a file, select its name from the box. Then click on the [$BUTTON{'editfile'}] button.

Press [$BUTTON{'cancel'}] when you have finished editing.", - editingfile => 'Editing File', - editfileinfo => 'ezmlm-manage
<#l#> The list name
<#A#> The subscription address
<#R#> The address a subscriber must reply to

ezmlm-store
<#l#> The list name
<#A#> The acceptance address
<#R#> The rejection address', - mysqlcreate => 'Create the MySQL database tables if necessary', +# Which interface type should be displayed by default? +# available values are: easy, normal and expert +EOF -); +my $interface=$ezmlm->{interface} || 'normal'; +$OUT .= "\$DEFAULT_INTERFACE_TYPE = '$interface';" -# === Configuration file ends === +$OUT .= <<'EOF'; + +# exclude some interface options from being displayed +# BEWARE: this does not protect the specific option from being changed. +# It just hides the visible interface items. Anyone can still craft a manual +# http request, that could change the specified options. +# See the list of filenames below $TEMPLATE_DIR/config_options/. The +# blacklist may contain any of these filenames (without '.cs' extension). +#$INTERFACE_OPTIONS_BLACKLIST = ('lang_select', 'mime_reject'); + +# use a cascading style sheet (css) +# the setting is interpreted as a URL +# this setting was formerly known as "HTML_CSS_FILE" +$HTML_CSS_COMMON = "/ezmlm-web/default.css"; + +# choose a coloring scheme - the available files are: +# color-blue-gray: default style used before v3.2 +# color-red-blue: use gradients instead of plain colors (since v3.2) +# +# be aware, that some stylesheets may require additional graphic +# files in the same directory +$HTML_CSS_COLOR = "/ezmlm-web/color-red-blue.css"; + +# the default interface language +# all other available translation are available via the web interface +# the configured preferred browser language of a user can override this +# setting individually +$HTML_LANGUAGE = "en"; +# enabled support for encrypted mailing lists - defaults to 0 (off). +# This include keyring management and mailing list handling in general. EOF +my $encryption= ($ezmlm->{encryption} eq 'enabled' )? 1 : 0; +$OUT .="\$ENCRYPTION_SUPPORT = $encryption;"; + +$OUT .= <<'EOF'; +# Define the default location of gnupg keyrings used for mailing list +# encryption. If the location starts with a slash ('/'), then it is considered +# to be an absolute path. Otherwise it is relative to the current list +# directory. For the ezmlm-gpg mailing list encryption system, the default +# (".gnupg") is usable. +$GPG_KEYRING_DEFAULT_LOCATION = ".gnupg"; + +# Prints Error/Warning messages instead of "Internal Server Error" page. +# It's recommend to disable (set to 0) in production mode.. +# 0 = disabled +# 1 = enabled +# defaults to 0 +EOF + +my $debug= ($ezmlm->{debug} eq 'enabled' )? 1 : 0; +$OUT .="\$DEBUG = $debug;"; + } --- smeserver-ezmlm-web-1.1.2/root/etc/e-smith/templates/etc/ezmlm/ezmlmwebrc/BODY.ori 2016-04-20 23:45:57.677000000 -0400 +++ smeserver-ezmlm-web-1.1.2/root/etc/e-smith/templates/etc/ezmlm/ezmlmwebrc/BODY 2016-04-20 23:50:42.586000000 -0400 @@ -2,29 +2,25 @@ $OUT = <<'EOF'; -# $Id: ezmlmwebrc,v 1.5 2000/09/25 18:25:26 guy Exp $ -# Configuration file for ezmlm-web 2.1 +# Configuration file for ezmlm-web 3.3 # =========================================================================== # This file is not just an ordinary configuration file - it contains valid # perl statements that are executed just like any other perl script. When # editing this file, be careful that it is still valid perl when you have # finished (perl -w ezmlmwebrc ;-) - -# It is divided into to logical parts. The first part configures the way -# ezmlm-web runs, and the second changes the language, etc of ezmlm-web. You -# can not arbitarilly exclude any statement, since the script doesn't define -# any defaults of its own. You could, however, always split this file up and -# include the parts with # -# require('/path/to/other/part'); - -$opt_c = 1; # No list creation or deletion +# See the manpage of ezmlmwebrc(5) for a list of all available configuration +# settings. # --------------------------------------------------------------------------- -# Path to the ezmlm-web 3.3.1 template and laguage files +# Where are the language files +# usually something like /usr/local/share/ezmlm-web/lang $LANGUAGE_DIR = "/usr/local/share/ezmlm-web/lang"; + +# Where are the template files +# usually something like /usr/local/share/ezmlm-web/template $TEMPLATE_DIR ="/usr/local/share/ezmlm-web/template"; # Where do we store lists on this server ... Try "$HOME_DIR/lists".