[Mimedefang] PATCH: Fix for MIMEDefang and Sendmail 8.14.0's libmilter
David F. Skoll
dfs at roaringpenguin.com
Fri Feb 2 15:20:04 EST 2007
Hi, all,
The following patch corrects the problem. Apply it to mimedefang.c and
recompile, and it should work fine with Sendmail 8.14's libmilter.
Regards,
David.
--- MIMEDefang/trunk/mimedefang.c 2007/01/19 19:48:18 13774
+++ MIMEDefang/trunk/mimedefang.c 2007/02/02 20:17:41 13921
@@ -1845,7 +1845,9 @@
"MIMEDefang-" VERSION, /* Filter name */
SMFI_VERSION, /* Version code */
-#if SMFI_VERSION == 2
+#if SMFI_VERSION >= 0x01000000
+ SMFIF_ADDHDRS|SMFIF_CHGBODY|SMFIF_ADDRCPT|SMFIF_DELRCPT|SMFIF_CHGHDRS|SMFIF_QUARANTINE,
+#elif SMFI_VERSION == 2
#ifdef SMFIF_QUARANTINE
/* We can: quarantine, add a header and may alter body
and add/delete recipients*/
@@ -1869,6 +1871,12 @@
eom, /* Called at end of message */
mfabort, /* Called on abort */
mfclose /* Called on connection close */
+#if SMFI_VERSION >= 0x01000000
+ ,
+ NULL, /* xxfi_unknown */
+ NULL, /* xxfi_data */
+ NULL /* xxfi_negotiate */
+#endif
};
/**********************************************************************
More information about the MIMEDefang
mailing list