Mercurial > hg > mlmmj
changeset 105:e13914ea89b5
mlmmj-maintd header file. Note the tunables are in mlmmj.h
author | mmj |
---|---|
date | Mon, 24 May 2004 08:06:58 +1000 |
parents | 61878b2bf9f4 |
children | c0df06494518 |
files | include/mlmmj-maintd.h include/mlmmj.h |
diffstat | 2 files changed, 25 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/include/mlmmj-maintd.h Mon May 24 08:06:58 2004 +1000 @@ -0,0 +1,17 @@ +/* Copyright (C) 2004 Mads Martin Joergensen <mmj at mmj.dk> + * + * $Id$ + * + * This file is redistributable under version 2 of the GNU General + * Public License as described at http://www.gnu.org/licenses/gpl.txt + */ + +#ifndef MLMMJ_MAINTD_H +#define MLMMJ_MAINTD_H + +int clean_moderation(const char *listdir); +int resend_queue(const char *listdir); +int probe_bouncers(const char *listdir); +int unsub_bouncers(const char *listdir); + +#endif /* MLMMJ_MAINTD_H */
--- a/include/mlmmj.h Mon May 24 08:06:37 2004 +1000 +++ b/include/mlmmj.h Mon May 24 08:06:58 2004 +1000 @@ -16,6 +16,14 @@ #define RECIPDELIM '+' #define MAX_CONNECTIONS 3 /* How many max connections to relayhost */ #define WAITSLEEP 1000 +#define MODREQLIFE 604800 /* How long time will moderation requests be kept? + * 604800s is 7 days */ +#define BOUNCELIFE 432000 /* How long time can addresses bounce before + unsubscription happens? 432000s is 5 days */ +#define PROBEINTERVAL 43200 /* How often is an address probed if it still + bounces? 43200s is 12 hours */ +#define MAINTD_SLEEP 3600 /* How long between maintenance runs when + mlmmj-maintd runs daemonized? 3600s is 1 hour */ struct mailhdr { const char *token;