From: Philip Hazel Date: Tue, 15 Nov 2005 11:23:43 +0000 (+0000) Subject: In autoreply, treat an empty string for "once" the same as unset. X-Git-Tag: exim-4_61~116 X-Git-Url: https://git.exim.org/exim.git/commitdiff_plain/096fee002700c404bfaa504ff0979c76b361782d?hp=f091772774d0a744c3b8488575fc28205e6994b4 In autoreply, treat an empty string for "once" the same as unset. --- diff --git a/doc/doc-txt/ChangeLog b/doc/doc-txt/ChangeLog index fdc52d7dd..8dce076fa 100644 --- a/doc/doc-txt/ChangeLog +++ b/doc/doc-txt/ChangeLog @@ -1,4 +1,4 @@ -$Cambridge: exim/doc/doc-txt/ChangeLog,v 1.263 2005/11/15 11:19:38 ph10 Exp $ +$Cambridge: exim/doc/doc-txt/ChangeLog,v 1.264 2005/11/15 11:23:43 ph10 Exp $ Change log file for Exim from version 4.21 ------------------------------------------- @@ -134,6 +134,8 @@ PH/15 If the first argument of "${if match_address" was not empty, but did not contain an "@" character, Exim crashed. Now it writes a panic log message and treats the condition as false. +PH/16 In autoreply, treat an empty string for "once" the same as unset. + Exim version 4.54 ----------------- diff --git a/src/src/transports/autoreply.c b/src/src/transports/autoreply.c index 1b867d240..6ff2f3415 100644 --- a/src/src/transports/autoreply.c +++ b/src/src/transports/autoreply.c @@ -1,4 +1,4 @@ -/* $Cambridge: exim/src/src/transports/autoreply.c,v 1.6 2005/11/14 11:32:16 ph10 Exp $ */ +/* $Cambridge: exim/src/src/transports/autoreply.c,v 1.7 2005/11/15 11:23:43 ph10 Exp $ */ /************************************************* * Exim - an Internet mail transport agent * @@ -420,7 +420,7 @@ recipient, the effect might not be quite as envisaged. If once_file_size is set, instead of a dbm file, we use a regular file containing a circular buffer recipient cache. */ -if (oncelog != NULL && to != NULL) +if (oncelog != NULL && *oncelog != 0 && to != NULL) { time_t then = 0;