[Mimedefang] ACCEPT_AND_NO_MORE_FILTERING leaves behind working files in /var/spool/MIMEdefang
David F. Skoll
dfs at roaringpenguin.com
Thu Nov 17 13:10:06 EST 2005
Ken Menzel wrote:
> I am trying to implement a recipient filter. It seems to mostly work as
> intended except when I use ACCEPT_AND_NO_MORE_FILTERING as the return
> option mimedefang slowly fills /var/spool/MIMEdefang directory with left
> over COMMAND and HEADER files in the working directories.
Congratulations! You've found a bug in mimedefang.c!
The patch below should fix it. Sorry about that!
Regards,
David.
--- mimedefang-2.54/mimedefang.c 2005-10-14 12:33:27.000000000 -0400
+++ mimedefang-2.55/mimedefang.c 2005-11-17 13:07:13.000000000 -0500
@@ -16,7 +16,7 @@
***********************************************************************/
static char const RCSID[] =
-"$Id: mimedefang.c,v 1.229 2005/10/14 16:33:27 dfs Exp $";
+"$Id: mimedefang.c,v 1.230 2005/11/17 18:07:13 dfs Exp $";
/* Define this to work around an M$ Outlook bug! */
/* #define CONVERT_EMBEDDED_CRS_IN_HEADERS 1 */
@@ -882,8 +882,8 @@
}
if (n == 2) {
set_dsn(ctx, ans, 2);
-
- retcode = SMFIS_ACCEPT;
+ cleanup(ctx);
+ return SMFIS_ACCEPT;
}
if (n == 3) {
set_dsn(ctx, ans, 2);
More information about the MIMEDefang
mailing list