From 79b1c7f0a7ecc89888e6b8d434120a0de171ef22 Mon Sep 17 00:00:00 2001
From: Art Cancro
Date: Mon, 16 May 2005 16:59:39 +0000
Subject: [PATCH] * Default expire policy is now 'manual' (no automatic expiry
of messages under any circumstances). Implemented as per David Given's
suggestion that we should operate using the element of least surprise.
---
citadel/ChangeLog | 6 ++++++
citadel/docs/citadel.html | 5 +++++
citadel/setup.c | 5 +++--
3 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/citadel/ChangeLog b/citadel/ChangeLog
index 3a4efc7ed..c7e7c1643 100644
--- a/citadel/ChangeLog
+++ b/citadel/ChangeLog
@@ -1,4 +1,9 @@
$Log$
+ Revision 647.1 2005/05/16 16:59:39 ajc
+ * Default expire policy is now 'manual' (no automatic expiry of messages
+ under any circumstances). Implemented as per David Given's suggestion
+ that we should operate using the element of least surprise.
+
Revision 647.0 2005/05/12 16:54:10 ajc
* THIS IS 6.47
@@ -6679,3 +6684,4 @@ Sat Jul 11 00:20:48 EDT 1998 Nathan Bryant
Fri Jul 10 1998 Art Cancro
* Initial CVS import
+
diff --git a/citadel/docs/citadel.html b/citadel/docs/citadel.html
index f556e9716..1530cee0b 100644
--- a/citadel/docs/citadel.html
+++ b/citadel/docs/citadel.html
@@ -1304,6 +1304,11 @@ messages around forever (or until they are manually deleted), until
they become a certain number of days old, or until a certain number of
additional messages are posted in the room, at which time the oldest
ones will scroll out.
+When a new Citadel system is first installed, the default system-wide
+expire policy is set to 'manual' -- no automatic purging of messages
+takes place anywhere. For public message boards, you will probably want
+to set some sort of automatic expire policy, in order to prevent your
+message base from growing forever.
You will notice that you can also fall back to the default expire
policy for the floor upon which the room resides. This is the default
setting. You can change the floor's default with the ;Aide Edit
diff --git a/citadel/setup.c b/citadel/setup.c
index 6c8b336da..410c76ec8 100644
--- a/citadel/setup.c
+++ b/citadel/setup.c
@@ -1075,10 +1075,11 @@ int main(int argc, char *argv[])
}
/* We need a system default message expiry policy, because this is
* the top level and there's no 'higher' policy to fall back on.
+ * By default, do not expire messages at all.
*/
if (config.c_ep.expire_mode == 0) {
- config.c_ep.expire_mode = EXPIRE_NUMMSGS;
- config.c_ep.expire_value = 150;
+ config.c_ep.expire_mode = EXPIRE_MANUAL;
+ config.c_ep.expire_value = 0;
}
/*
--
2.39.2