You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

34 lines
1019 B

Index: sid-filter/sid-filter.c
--- sid-filter/sid-filter.c.orig 2006-07-21 00:28:09 +0200
+++ sid-filter/sid-filter.c 2007-03-02 10:35:06 +0100
@@ -57,7 +57,7 @@
/* libmilter includes */
#ifndef DEBUG
-# include <libmilter/mfapi.h>
+# include "milter/mfapi.h"
#endif /* !DEBUG */
/* libmarid includes */
@@ -1949,6 +1949,12 @@
assert(ctx != NULL);
#endif /* !DEBUG */
+ /* execute deferred code from EOH hander
+ to circumvent Postfix MILTER restriction
+ (the macro "i" is not available earlier) */
+ if ((ret = mlfi_eoh(ctx)) != SMFIS_CONTINUE)
+ return ret;
+
memset(stathdr, '\0', sizeof stathdr);
memset(spf_errmsg, '\0', sizeof spf_errmsg);
memset(sid_errmsg, '\0', sizeof sid_errmsg);
@@ -2392,7 +2398,7 @@
mlfi_envfrom, /* envelope sender filter */
NULL, /* envelope recipient filter */
mlfi_header, /* header filter */
- mlfi_eoh, /* end of header */
+ NULL, /* end of header */
NULL, /* body block filter */
mlfi_eom, /* end of message */
NULL, /* message aborted */