--- spambayes-1.0.4.orig/debian/watch
+++ spambayes-1.0.4/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://sf.net/spambayes/spambayes-(.*)\.tar\.gz 
--- spambayes-1.0.4.orig/debian/changelog
+++ spambayes-1.0.4/debian/changelog
@@ -0,0 +1,64 @@
+spambayes (1.0.4-5.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Fixed bashism in debian/rules (closes: #484442)
+
+ -- Peter Eisentraut <petere@debian.org>  Fri, 11 Jul 2008 11:11:27 +0200
+
+spambayes (1.0.4-5) unstable; urgency=low
+
+  * fixed future imports (closes: #476622)
+
+ -- Alexandre Fayolle <afayolle@debian.org>  Tue, 13 May 2008 18:38:12 +0200
+
+spambayes (1.0.4-4) unstable; urgency=low
+
+  * Rebuild with new default python (closes: #476274)
+  * updated to new standards
+
+ -- Alexandre Fayolle <afayolle@debian.org>  Thu, 17 Apr 2008 15:42:37 +0200
+
+spambayes (1.0.4-3) unstable; urgency=low
+
+  * Complie with Policy §7.6
+
+ -- Alexandre Fayolle <afayolle@debian.org>  Fri, 16 Jun 2006 09:49:47 +0200
+
+spambayes (1.0.4-2) unstable; urgency=low
+
+  * updated to 3.7.2 standards
+  * new Python policy
+  * Fixed Gnus instructions (closes: #340872)
+  * Applied patch by Kim Minh Kaplan <qdsmgbm02@sneakemail.com> allowing
+    sb_imapfilter to use CRAM MD5 authentication (closes: #301221)
+
+ -- Alexandre Fayolle <afayolle@debian.org>  Thu, 15 Jun 2006 11:11:34 +0200
+
+spambayes (1.0.4-1) unstable; urgency=low
+
+  * New upstream release
+  * Use 3.6.2 standards
+  * Use debhelper 5.0
+  * Added watch file for DEHS
+
+ -- Alexandre Fayolle <afayolle@debian.org>  Mon, 20 Mar 2006 11:36:54 +0100
+
+spambayes (1.0.3-1) unstable; urgency=low
+
+  * New upstream release
+  * Removed the python2.3-spambayes package, and leave only spambayes (Closes: #286590)
+
+ -- Alexandre Fayolle <afayolle@debian.org>  Tue, 15 Feb 2005 17:25:15 +0100
+
+spambayes (1.0.1-1) unstable; urgency=low
+
+  * New upstream release (Closes: #286551)
+  * Fixed path in example spambayes.el file (Closes: #285636)
+
+ -- Alexandre Fayolle <afayolle@debian.org>  Tue, 21 Dec 2004 15:18:43 +0100
+
+spambayes (1.0-1) unstable; urgency=low
+
+  * Initial upload to Debian (Closes: #267946)
+
+ -- Alexandre Fayolle <afayolle@debian.org>  Sun, 24 Oct 2004 11:06:51 +0200
--- spambayes-1.0.4.orig/debian/copyright
+++ spambayes-1.0.4/debian/copyright
@@ -0,0 +1,57 @@
+This package was debianized by Alexandre Fayolle <alexandre.fayolle@logilab.fr>
+on Thu,  5 Feb 2004 19:03:49 +0100. 
+
+The original source is available at http://spambayes.sf.net/
+
+Copyright (C) 2002-2003 Python Software Foundation; All Rights Reserved
+
+The Python Software Foundation (PSF) holds copyright on all material
+in this project.  You may use it under the terms of the PSF license:
+
+PSF LICENSE AGREEMENT FOR THE SPAMBAYES PROJECT
+-----------------------------------------------
+
+1. This LICENSE AGREEMENT is between the Python Software Foundation
+("PSF"), and the Individual or Organization ("Licensee") accessing and
+otherwise using the spambayes software ("Software") in source or binary
+form and its associated documentation.
+
+2. Subject to the terms and conditions of this License Agreement, PSF
+hereby grants Licensee a nonexclusive, royalty-free, world-wide
+license to reproduce, analyze, test, perform and/or display publicly,
+prepare derivative works, distribute, and otherwise use the Software
+alone or in any derivative version, provided, however, that PSF's
+License Agreement and PSF's notice of copyright, i.e., "Copyright (c)
+2002-2003 Python Software Foundation; All Rights Reserved" are retained
+the Software alone or in any derivative version prepared by Licensee.
+
+3. In the event Licensee prepares a derivative work that is based on
+or incorporates the Software or any part thereof, and wants to make
+the derivative work available to others as provided herein, then
+Licensee hereby agrees to include in any such work a brief summary of
+the changes made to the Software.
+
+4. PSF is making the Software available to Licensee on an "AS IS"
+basis.  PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
+IMPLIED.  BY WAY OF EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND
+DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS
+FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE WILL NOT
+INFRINGE ANY THIRD PARTY RIGHTS.
+
+5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF THE
+SOFTWARE FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS
+A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING THE SOFTWARE,
+OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
+
+6. This License Agreement will automatically terminate upon a material
+breach of its terms and conditions.
+
+7. Nothing in this License Agreement shall be deemed to create any
+relationship of agency, partnership, or joint venture between PSF and
+Licensee.  This License Agreement does not grant permission to use PSF
+trademarks or trade name in a trademark sense to endorse or promote
+products or services of Licensee, or any third party.
+
+8. By copying, installing or otherwise using the Software, Licensee
+agrees to be bound by the terms and conditions of this License
+Agreement.
--- spambayes-1.0.4.orig/debian/control
+++ spambayes-1.0.4/debian/control
@@ -0,0 +1,26 @@
+Source: spambayes
+Section: mail
+Priority: optional
+Maintainer: Alexandre Fayolle <afayolle@debian.org>
+Build-Depends: debhelper (>= 5.0.37.1)
+Build-Depends-Indep: python (>=2.3.5-7), python-dev (>=2.3.5-7), python-central
+Standards-Version: 3.7.3
+XS-Python-Version: current
+Homepage: http://spambayes.sourceforge.net 
+
+Package: spambayes
+Architecture: all
+XB-Python-Version: ${python:Versions}
+Depends: ${python:Depends}
+Description: Python-based spam filter using statistical analysis
+ SpamBayes uses a different set of algorithm to most statistical spam
+ filters, which enables to dramatically lower the number of legitimate
+ mail classified as spam, through the introduction of an 'unsure'
+ category.
+ .
+ SpamBayes can be used as a POP3 or an IMAP proxy, as well as a simple 
+ mail filter for use with procmail. 
+ 
+
+
+
--- spambayes-1.0.4.orig/debian/spambayes.README.Debian
+++ spambayes-1.0.4/debian/spambayes.README.Debian
@@ -0,0 +1,8 @@
+Please read WHAT_IS_NEW.txt if you upgrade from an earlier version of
+SpamBayes.
+
+This package does not include the windows specific tools available in
+SpamBayes (the Outlook Plugin, the taskbar applet...). But they are
+available in the source package.
+
+ -- Alexandre Fayolle <afayolle@debian.org>, Tue Feb 15 17:36:51 2005
--- spambayes-1.0.4.orig/debian/TODO
+++ spambayes-1.0.4/debian/TODO
@@ -0,0 +1,2 @@
+Write man pages for the various scripts
+Fix lintinan warning about script not executable
--- spambayes-1.0.4.orig/debian/compat
+++ spambayes-1.0.4/debian/compat
@@ -0,0 +1 @@
+5
--- spambayes-1.0.4.orig/debian/spambayes.docs
+++ spambayes-1.0.4/debian/spambayes.docs
@@ -0,0 +1,9 @@
+NEWTRICKS.txt
+POP3PROXY.txt
+README-DEVEL.txt
+README.txt
+TESTING.txt
+WHAT_IS_NEW.txt
+contrib/
+pspam/
+utilities/
--- spambayes-1.0.4.orig/debian/rules
+++ spambayes-1.0.4/debian/rules
@@ -0,0 +1,101 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+SB=debian/spambayes
+
+debian_patches=spambayes
+
+build: build-stamp
+build-stamp: patched-stamp
+	dh_testdir
+
+	## Build for all python versions
+	python setup.py build
+	cp CHANGELOG.txt changelog
+	touch build-stamp
+
+clean: reverse-patches
+	dh_testdir
+	rm -f build-stamp install-stamp
+	rm -rf build $(SB)
+	rm -f *.pyc */*.pyc */*/*.pyc
+	rm -f changelog
+	dh_clean
+
+install: install-stamp
+install-stamp: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+	dh_installdirs -A
+
+	# Install Python modules
+	python setup.py install --prefix=$(SB)/usr --no-compile
+	dh_install -A
+	touch install-stamp
+
+binary-indep: build install
+	dh_testdir -i
+	dh_testroot -i
+	dh_installdocs -i
+	dh_installchangelogs -i
+	dh_pycentral -i
+	dh_link -i
+	dh_strip -i
+	dh_compress -i
+	dh_fixperms -i
+	dh_installdeb -i
+	dh_gencontrol -i
+	dh_md5sums -i
+	dh_builddeb -i
+
+binary-arch:
+
+binary: binary-indep
+.PHONY: build clean binary-indep binary install binary-arch
+
+# ---------------------------------------------------------------------------
+# Various rules to unpack addons and (un)apply patches.
+# Borrowed from DBS
+
+patch_dir       = debian/patches
+
+apply-patches: patched-stamp
+reverse-patches:
+	@for stamp in none patched-*; do \
+		case "$$stamp" in none|patched-stamp|patched-\*) continue; esac; \
+		patch=`echo $$stamp | sed -e 's/patched-//'`; \
+		echo "trying to revert patch $$patch ..."; \
+		if [ -x $(patch_dir)/$$patch.dpatch ]; then true; else \
+			chmod +x $(patch_dir)/$$patch.dpatch; fi; \
+		if $(patch_dir)/$$patch.dpatch -unpatch; then \
+			echo "reverted $$patch patch."; \
+			rm -f $$stamp; \
+		else \
+			echo "error in reverting $$patch patch."; \
+			exit 1; \
+		fi; \
+	done
+	@echo "Removing patched-stamp"
+	@rm -f patched-stamp
+
+patched-%: $(patch_dir)/%.dpatch
+	@if [ -x $< ]; then true; else chmod +x $<; fi
+	@if [ -f $@ ]; then \
+		echo "$* patches already applied. $< $@"; exit 1; \
+	fi
+	$< -patch
+	@echo "$* patches applied." > $@
+
+patched-stamp: $(foreach p,$(debian_patches),patched-$(p))
+	@(echo; echo "Patches applied:") >> pxxx
+	@for i in none $(debian_patches); do \
+		if [ -r debian/patches/$$i.dpatch ]; then \
+			(echo; echo "$$i:") >> pxxx; \
+			sed -n 's/^# *DP: */  /p' debian/patches/$$i.dpatch >> pxxx; \
+		fi \
+	done
+	@echo "Writing patched-stamp"
+	@mv -f pxxx patched-stamp
--- spambayes-1.0.4.orig/debian/patches/spambayes.dpatch
+++ spambayes-1.0.4/debian/patches/spambayes.dpatch
@@ -0,0 +1,28 @@
+#! /bin/sh -e
+
+# DP: Modified
+
+if [ $# -ne 1 ]; then
+    echo >&2 "$0: script expects -patch|-unpatch as argument"
+    exit 1
+fi
+case "$1" in
+    -patch) patch -f -p0 < $0;;
+    -unpatch) patch -f -R -p0 < $0;;
+    *)
+        echo >&2 "$0: script expects -patch|-unpatch as argument"
+        exit 1
+esac
+exit 0
+
+--- contrib/spambayes.el.orig	2003-11-17 22:47:47.000000000 +0100
++++ contrib/spambayes.el	2004-12-21 15:30:25.000000000 +0100
+@@ -84,7 +84,7 @@
+ ;;      "X-Spambayes-Classification:"))
+ 
+ 
+-(defvar spambayes-filter-program "/usr/local/bin/sb_filter.py"
++(defvar spambayes-filter-program "/usr/bin/sb_filter.py"
+   "Path to the sb_filter program.")
+ 
+ 
