Patch to make bogom add the X-Bogosity at the end of the header instead of inserting it in the beginning.
This patch is for use with bogom - the Bogofilter milter for Sendmail.
Put the patch in a file, place it in the bogom source directory, run patch < filename where filename is the file containing the patch and then compile and install bogom.
bogom (ver. 1.9)
--- milter.c Sun Oct 22 12:50:19 2006
+++ milter.c Fri Nov 3 17:54:23 2006
@@ -605,7 +605,7 @@
spamicity_val);
else
strcpy(header, "Yes, tests=bogofilter");
- smfi_insheader(ctx, 0, "X-Bogosity", header);
+ smfi_addheader(ctx, "X-Bogosity", header);
priv->old_headers++;
@@ -700,7 +700,7 @@
spamicity_val);
else
strcpy(header, "No, tests=bogofilter");
- smfi_insheader(ctx, 0, "X-Bogosity", header);
+ smfi_addheader(ctx, "X-Bogosity", header);
priv->old_headers++;
@@ -713,7 +713,7 @@
spamicity_val);
else
strcpy(header, "Unsure, tests=bogofilter");
- smfi_insheader(ctx, 0, "X-Bogosity", header);
+ smfi_addheader(ctx, "X-Bogosity", header);
priv->old_headers++;
bogom (ver. 1.8.2)
--- milter.c Thu Jan 5 15:50:53 2006
+++ milter.c Thu Feb 16 17:45:09 2006
@@ -576,7 +576,7 @@
mlfi_clean(ctx);
return SMFIS_CONTINUE;
case 0:
- smfi_insheader(ctx, 0, "X-Bogosity",
+ smfi_addheader(ctx, "X-Bogosity",
"Yes, tests=bogofilter");
if(forward_spam)
@@ -665,14 +665,14 @@
mlfi_clean(ctx);
return mode;
case 1:
- smfi_insheader(ctx, 0, "X-Bogosity",
+ smfi_addheader(ctx, "X-Bogosity",
"No, tests=bogofilter");
if(verbose)
syslog(LOG_NOTICE, "bogofilter reply: ham");
break;
case 2:
- smfi_insheader(ctx, 0, "X-Bogosity",
+ smfi_addheader(ctx, "X-Bogosity",
"Unsure, tests=bogofilter");
if(verbose)
syslog(LOG_NOTICE, "bogofilter reply: unsure");
---
Aron Håkanson, aron@hakanson.se, 16/2/2006
Last updated: 3/11/2006