summaryrefslogtreecommitdiff
path: root/src/mailman/database
diff options
context:
space:
mode:
authorBarry Warsaw2012-03-03 23:29:26 -0500
committerBarry Warsaw2012-03-03 23:29:26 -0500
commit7e5470afdef0a60796cdb7974f30c46cfbfcbd4f (patch)
tree9e788a48c0aeb4553b3b1fa966fc7ecb24be22f9 /src/mailman/database
parente09c13199c2a60724ee601902a51a816e627e024 (diff)
downloadmailman-7e5470afdef0a60796cdb7974f30c46cfbfcbd4f.tar.gz
mailman-7e5470afdef0a60796cdb7974f30c46cfbfcbd4f.tar.zst
mailman-7e5470afdef0a60796cdb7974f30c46cfbfcbd4f.zip
* Support downloading templates by URI, including mailman:// URIs. This is
used in welcome and goodbye messages, and supports both language and mailing list specifications. E.g. mailman:///test@example.com/it/welc.txt * Schema changes: - welcome_msg -> welcome_message_uri - goodbye_msg -> goodbye_message_uri - send_welcome_msg -> send_welcome_message - send_goodbye_msg -> send_goodbye_message * New `ITemplateLoader` utility.
Diffstat (limited to 'src/mailman/database')
-rw-r--r--src/mailman/database/schema/postgres.sql8
-rw-r--r--src/mailman/database/schema/sqlite.sql8
2 files changed, 8 insertions, 8 deletions
diff --git a/src/mailman/database/schema/postgres.sql b/src/mailman/database/schema/postgres.sql
index bb209c4aa..206f8f76f 100644
--- a/src/mailman/database/schema/postgres.sql
+++ b/src/mailman/database/schema/postgres.sql
@@ -63,7 +63,7 @@ CREATE TABLE mailinglist (
gateway_to_mail BOOLEAN,
gateway_to_news BOOLEAN,
generic_nonmember_action INTEGER,
- goodbye_msg TEXT,
+ goodbye_message_uri TEXT,
header_matches BYTEA,
hold_these_nonmembers BYTEA,
info TEXT,
@@ -95,9 +95,9 @@ CREATE TABLE mailinglist (
require_explicit_destination BOOLEAN,
respond_to_post_requests BOOLEAN,
scrub_nondigest BOOLEAN,
- send_goodbye_msg BOOLEAN,
+ send_goodbye_message BOOLEAN,
send_reminders BOOLEAN,
- send_welcome_msg BOOLEAN,
+ send_welcome_message BOOLEAN,
start_chain TEXT,
subject_prefix TEXT,
subscribe_auto_approval BYTEA,
@@ -106,7 +106,7 @@ CREATE TABLE mailinglist (
topics_bodylines_limit INTEGER,
topics_enabled BOOLEAN,
unsubscribe_policy INTEGER,
- welcome_msg TEXT,
+ welcome_message_uri TEXT,
moderation_callback TEXT,
PRIMARY KEY (id)
);
diff --git a/src/mailman/database/schema/sqlite.sql b/src/mailman/database/schema/sqlite.sql
index 74d523cf2..d5ef06f0f 100644
--- a/src/mailman/database/schema/sqlite.sql
+++ b/src/mailman/database/schema/sqlite.sql
@@ -159,7 +159,7 @@ CREATE TABLE mailinglist (
gateway_to_mail BOOLEAN,
gateway_to_news BOOLEAN,
generic_nonmember_action INTEGER,
- goodbye_msg TEXT,
+ goodbye_message_uri TEXT,
header_matches BLOB,
hold_these_nonmembers BLOB,
info TEXT,
@@ -191,9 +191,9 @@ CREATE TABLE mailinglist (
require_explicit_destination BOOLEAN,
respond_to_post_requests BOOLEAN,
scrub_nondigest BOOLEAN,
- send_goodbye_msg BOOLEAN,
+ send_goodbye_message BOOLEAN,
send_reminders BOOLEAN,
- send_welcome_msg BOOLEAN,
+ send_welcome_message BOOLEAN,
start_chain TEXT,
subject_prefix TEXT,
subscribe_auto_approval BLOB,
@@ -202,7 +202,7 @@ CREATE TABLE mailinglist (
topics_bodylines_limit INTEGER,
topics_enabled BOOLEAN,
unsubscribe_policy INTEGER,
- welcome_msg TEXT,
+ welcome_message_uri TEXT,
PRIMARY KEY (id)
);