[PATCH] Bogofilter inconsistent spam_subject_tag
Rob Tanner
rtanner+cyrus at linfield.edu
Fri Aug 1 23:02:43 CEST 2003
--On Friday, August 01, 2003 08:14:53 AM -0400 David Relson
<relson at osagesoftware.com> wrote:
> Rob,
>
> The patch below fixes your problem.
>
> David
>
> --- src/main.c 1 Aug 2003 00:30:12 -0000 1.59
> +++ src/main.c 1 Aug 2003 12:11:23 -0000
> @@ -339,7 +339,7 @@
> if (status == RC_SPAM &&
> rd >= subjlen &&
> spam_subject_tag != NULL &&
> - strncasecmp(out, subjstr, subjlen)) {
> + strncasecmp(out, subjstr, subjlen) == 0) {
> (void) fprintf(fp, "%.*s %s", subjlen, out, spam_subject_tag);
> if (out[subjlen] != ' ')
> fputc(' ', fp);
>
>
> ---------------------------------------------------------------------
> FAQ: http://bogofilter.sourceforge.net/bogofilter-faq.html
> To unsubscribe, e-mail: bogofilter-unsubscribe at aotto.com
> For summary digest subscription: bogofilter-digest-subscribe at aotto.com
> For more commands, e-mail: bogofilter-help at aotto.com
>
Apparently there are some whitespace issues with the patch as you included
it -- I had to include the '-l' option in patch to install it. But it's
in now and appears to be working correctly.
Thanks,
Rob
Rob Tanner
Linfield College
McMinnville, Oregon
rtanner+cyrus at linfield.edu
More information about the Bogofilter
mailing list