[pkg-dspam-commits] r106 - in trunk/debian: patches

Daniel Kahn Gillmor rekt-guest at costa.debian.org
Sun Aug 6 14:39:28 UTC 2006


Author: rekt-guest
Date: Sun Aug  6 14:39:28 2006
New Revision: 106

Added:
   trunk/debian/patches/fix-tag-class.dpatch   (contents, props changed)
Modified:
   trunk/debian/changelog
   trunk/debian/patches/00list

Log:
 * committed patch for #381395 so classifications by shared group
   properly update header tags.


Modified: trunk/debian/changelog
==============================================================================
--- trunk/debian/changelog	(original)
+++ trunk/debian/changelog	Sun Aug  6 14:39:28 2006
@@ -8,11 +8,12 @@
   [ Daniel Kahn Gillmor ]
   * added doc/relay.txt to dspam-doc.  Thanks to Micah Anderson
     (Closes: #381253)
+  * added patches/fix-tag-class.dpatch (Closes: #381395)
 
   [ Matthijs Mohlmann ]
   * added auto-config.h and pref.h to libdspam7-dev. (Closes: #380138)
 
- -- Debian DSPAM Maintainers <pkg-dspam-misc at lists.alioth.debian.org>  Sat,  8 Jul 2006 15:59:57 +0200
+ -- Debian DSPAM Maintainers <pkg-dspam-misc at lists.alioth.debian.org>  Sun,  6 Aug 2006 09:59:05 -0400
 
 dspam (3.6.8-1) unstable; urgency=low
 

Modified: trunk/debian/patches/00list
==============================================================================
--- trunk/debian/patches/00list	(original)
+++ trunk/debian/patches/00list	Sun Aug  6 14:39:28 2006
@@ -18,3 +18,4 @@
 enable-domain-quarantine.dpatch
 virus-notifications.dpatch
 clean-warnings.dpatch
+fix-tag-class.dpatch

Added: trunk/debian/patches/fix-tag-class.dpatch
==============================================================================
--- (empty file)
+++ trunk/debian/patches/fix-tag-class.dpatch	Sun Aug  6 14:39:28 2006
@@ -0,0 +1,29 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## fix-tag-class.dpatch by Daniel Kahn Gillmor <dkg-debian.org at fifthhorseman.net>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: write a proper CTX->class during reclassification by a global
+## DP: group classifier.  This way the header tags are output correctly.
+
+ at DPATCH@
+diff -urNad dspam-3.6.8/src/dspam.c /tmp/dpep.a28IM6/dspam-3.6.8/src/dspam.c
+--- dspam-3.6.8/src/dspam.c	2006-06-23 02:37:49.000000000 -0400
++++ /tmp/dpep.a28IM6/dspam-3.6.8/src/dspam.c	2006-06-23 02:43:39.734556401 -0400
+@@ -2698,6 +2698,8 @@
+       memcpy(&CTX->totals, &CTC->totals, sizeof(struct _ds_spam_totals));
+       free(CTC);
+       CTX->totals.spam_misclassified--;
++      strncpy(CTX->class, LANG_CLASS_SPAM, sizeof(CTX->class));
++      /* should we be resetting CTX->probability and CTX->confidence here as well? */
+       CTX->result = result;
+     }
+ 
+@@ -2722,6 +2724,8 @@
+       memcpy(&CTX->totals, &CTC->totals, sizeof(struct _ds_spam_totals));
+       free(CTC);
+       CTX->totals.innocent_misclassified--;
++      strncpy(CTX->class, LANG_CLASS_INNOCENT, sizeof(CTX->class));
++      /* should we be resetting CTX->probability and CTX->confidence here as well? */
+       CTX->result = result;
+     }
+   }



More information about the Pkg-dspam-commits mailing list