[EMAIL PROTECTED] schrieb am Wed, Jan 16, 2002 at 04:00:16PM +0100: > Ken Murchison schrieb am Wed, Jan 16, 2002 at 09:42:35AM -0500: > > > > > > Chris Peck wrote: > > > > > > The file "install-perf" seems to indicate that it is possible to > > > "disable duplicate delivery suppression". Does anyone know how to do so? > > > > Not without changing the source. Cyrus 2.1.x has an imapd.conf option > > to do so. > > Here is the original patch for 2.0.16 that has been incorporated into > 2.1.BETA.
Mmmh, nice text without attachment. Not my day this day..... So again, here is the patch. - Birger
Common subdirectories: cyrus-imapd-2.0.16/imap/CVS and cyrus-imapd-2.0.16-dupelim.patch/imap/CVS diff -u cyrus-imapd-2.0.16/imap/lmtpd.c cyrus-imapd-2.0.16-dupelim.patch/imap/lmtpd.c --- cyrus-imapd-2.0.16/imap/lmtpd.c Mon May 21 20:21:47 2001 +++ cyrus-imapd-2.0.16-dupelim.patch/imap/lmtpd.c Thu Nov 15 15:54:28 2001 @@ -277,12 +277,17 @@ return EC_SOFTWARE; } - /* initialize duplicate delivery database */ - dupelim = 1; - if (duplicate_init(0) != 0) { - syslog(LOG_ERR, - "deliver: unable to init duplicate delivery database\n"); - dupelim = 0; + /* initialize duplicate delivery database if not switched off */ + dupelim = config_getswitch("duplicateelimination", 1); + if (dupelim) { + if (duplicate_init(0) != 0) { + syslog(LOG_ERR, + "deliver: unable to init duplicate delivery database\n"); + dupelim = 0; + } } /* so we can do mboxlist operations */ diff -u cyrus-imapd-2.0.16/imap/lmtpproxyd.c cyrus-imapd-2.0.16-dupelim.patch/imap/lmtpproxyd.c --- cyrus-imapd-2.0.16/imap/lmtpproxyd.c Thu Feb 22 20:27:18 2001 +++ cyrus-imapd-2.0.16-dupelim.patch/imap/lmtpproxyd.c Thu Nov 15 15:55:13 2001 @@ -281,12 +281,17 @@ return EC_SOFTWARE; } - /* initialize duplicate delivery database */ - dupelim = 1; - if (duplicate_init(0) != 0) { - syslog(LOG_ERR, - "deliver: unable to init duplicate delivery database\n"); - dupelim = 0; + /* initialize duplicate delivery database if not switched off */ + dupelim = config_getswitch("duplicateelimination", 1); + if (dupelim) { + if (duplicate_init(0) != 0) { + syslog(LOG_ERR, + "deliver: unable to init duplicate delivery database\n"); + dupelim = 0; + } } /* so we can do mboxlist operations */ diff -u cyrus-imapd-2.0.16/man/imapd.conf.5 cyrus-imapd-2.0.16-dupelim.patch/man/imapd.conf.5 --- cyrus-imapd-2.0.16/man/imapd.conf.5 Sat Jun 23 03:01:50 2001 +++ cyrus-imapd-2.0.16-dupelim.patch/man/imapd.conf.5 Thu Nov 15 15:58:23 2001 @@ -166,6 +166,11 @@ If enabled, deliver running in LMTP mode attempts to only write one copy of a message per partition and create hard links, resulting in a potentially large disk savings. +.IP "\fBduplicateelimination:\fR yes" 5 +If enabled, the duplicate delivery databases will be initialized and +processed to avoid the delivery of duplicate messages. This should +only switched off for performance reasons. Disabling the use of the +duplicate delivery database also disables sieve. .IP "\fBreject8bit:\fR no" 5 If enabled, deliver rejects messages with 8-bit characters in the headers. Otherwise, 8-bit characters are changed to `X'. (A proper soultion to