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
 };
 
 /**********************************************************************
_______________________________________________
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID.  You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list [email protected]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang

Reply via email to