e42ff35612
Ray's Mail Filter, Copyright (C) 2000 South Bank University, London This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. The configuration files, header-list.conf and string-list.conf control which message headers the filter examines and what strings it looks for in those headers. The filter will look for all of the specified strings in all of the specified headers. The configuration files can be changed while the filter is running. The mail-filter reset command is then used to signal the program to re-read the files. WWW: http://www.sendmail-filter.sbu.ac.uk/
32 lines
829 B
C
32 lines
829 B
C
--- rays-filter.c.orig Thu Mar 8 13:41:20 2001
|
|
+++ rays-filter.c Sat Jan 19 15:49:11 2002
|
|
@@ -65,8 +65,8 @@
|
|
#include <sys/types.h>
|
|
#include <unistd.h>
|
|
#include <regex.h>
|
|
+#include <sysexits.h>
|
|
#include "libmilter/mfapi.h"
|
|
-#include "libmilter/milter.h"
|
|
#include "rays-filter.h"
|
|
|
|
|
|
@@ -326,6 +326,7 @@
|
|
syslog(LOG_INFO, "Cannot allocate memory for log file name\n");
|
|
else
|
|
{
|
|
+#if 0
|
|
if (mktemp(priv->mlfi_fname) == NULL)
|
|
syslog(LOG_INFO, "Cannot make name for log file\n");
|
|
else
|
|
@@ -334,6 +335,11 @@
|
|
if (priv->mlfi_fname == NULL)
|
|
syslog(LOG_INFO, "Cannot open log file\n");
|
|
}
|
|
+#else
|
|
+ priv->mlfi_fp = mkstemp(priv->mlfi_fname);
|
|
+ if ( priv->mlfi_fp < 0 )
|
|
+ syslog(LOG_INFO, "Cannot open new log file\n");
|
|
+#endif
|
|
}
|
|
|
|
return 0;
|