debian/0000755000000000000000000000000011647772450007203 5ustar debian/rules0000755000000000000000000000221411647746617010270 0ustar #!/usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 include /usr/share/python/python.mk SB=debian/spambayes build: build-stamp build-stamp: dh_testdir ## Build for all python versions python setup.py build cp CHANGELOG.txt changelog touch build-stamp clean: dh_testdir rm -f build-stamp install-stamp rm -rf build $(SB) python setup.py clean rm -f *.pyc */*.pyc */*/*.pyc rm -f changelog rm -rf spambayes.egg-info dh_clean install: install-stamp install-stamp: build dh_testdir dh_testroot dh_clean -k dh_installdirs -A # Install Python modules python setup.py -q install --root=$(SB) --no-compile ${py_setup_install_args} rm $(SB)/usr/bin/sb_notesfilter.py prename "s/.py//" $(SB)/usr/bin/*.py rm -f $(SB)/usr/bin/sb_pop3dnd dh_install -A touch install-stamp binary-indep: build install dh_testdir -i dh_testroot -i dh_installdocs -i dh_installchangelogs -i dh_python2 -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 debian/spambayes.postinst0000644000000000000000000000064211647506224012770 0ustar #!/bin/sh -e # transitional bw compatibility links (1.0.4-6) SCRIPTS="sb_xmlrpcserver sb_server sb_bnfilter sb_mailsort \ sb_unheader sb_client sb_filter sb_mboxtrain sb_bnserver \ sb_chkopts sb_upload sb_dbexpimp sb_imapfilter \ sb_notesfilter sb_evoscore" if [ "$1" = configure ] ; then for f in ${SCRIPTS} do ln -fs /usr/bin/${f} /usr/bin/${f}.py done fi #DEBHELPER# debian/watch0000644000000000000000000000007311647506224010226 0ustar version=3 http://sf.net/spambayes/spambayes-(.*)\.tar\.gz debian/compat0000644000000000000000000000000211647506224010373 0ustar 5 debian/spambayes.prerm0000644000000000000000000000054111647506224012230 0ustar #!/bin/sh -e # transitional bw compatibility links (1.0.4-6) SCRIPTS="sb_xmlrpcserver sb_server sb_bnfilter sb_mailsort \ sb_unheader sb_client sb_filter sb_mboxtrain sb_bnserver \ sb_chkopts sb_upload sb_dbexpimp sb_imapfilter \ sb_notesfilter sb_evoscore" for f in ${SCRIPTS} do rm -f /usr/bin/${f}.py done #DEBHELPER# debian/NEWS.Debian0000644000000000000000000000127511647506224011062 0ustar spambayes (1.0.4-6) unstable; urgency=low * Important change in the script names Until 1.0.4-6, the spambayes package provided scripts installed in /usr/bin and porting the ".py" extension. This has been strongly discouraged for some time in Debian, and I'm about to change this. This version of the package renames the scripts (by removing the .py extension) and will install backward compatibility symbolic links in /usr/bin with the old names. You are strongly encouraged to update your scripts (procmail...) to use the proper names, as the old names will stop working in the future. -- Alexandre Fayolle Sun, 31 Oct 2010 16:54:41 +0100 debian/spambayes.README.Debian0000644000000000000000000000050411647506224013220 0ustar 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 , Tue Feb 15 17:36:51 2005 debian/changelog0000644000000000000000000000570511647754022011057 0ustar spambayes (1.1a6-1) unstable; urgency=low * new upstream release (closes: #586802) * update to modern packaging style, with dh_python2 - rebuild with python2.7 (closes: #427126) * remove sb_notesfilter which only runs on Windows (closes: #593977) -- Alexandre Fayolle Wed, 19 Oct 2011 08:32:06 +0200 spambayes (1.0.4-6) unstable; urgency=low * acknowledge NMU (closes: #484442) * updated to 3.0 (quilt) format * switched to python-support * split diff.gz in several quilt patches (closes: #485701) * fix remaining erroneous from __future__ imports (closes: #582001) * handle exception which can be generated by some ill-formed emails (closes: #491278) * updated standards to 3.9.1: - renamed scripts in order not to have .py files in /usr/bin (but create bw compat symlinks in postinst) * removed sb_pop3dnd (not working with current version of twisted in Debian, and nobody seems to use it since no bug report was filed) -- Alexandre Fayolle Fri, 05 Nov 2010 17:48:58 +0100 spambayes (1.0.4-5.1) unstable; urgency=low * Non-maintainer upload. * Fixed bashism in debian/rules (closes: #484442) -- Peter Eisentraut Fri, 11 Jul 2008 11:11:27 +0200 spambayes (1.0.4-5) unstable; urgency=low * fixed future imports (closes: #476622) -- Alexandre Fayolle 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 Thu, 17 Apr 2008 15:42:37 +0200 spambayes (1.0.4-3) unstable; urgency=low * Complie with Policy ยง7.6 -- Alexandre Fayolle 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 allowing sb_imapfilter to use CRAM MD5 authentication (closes: #301221) -- Alexandre Fayolle 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 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 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 Tue, 21 Dec 2004 15:18:43 +0100 spambayes (1.0-1) unstable; urgency=low * Initial upload to Debian (Closes: #267946) -- Alexandre Fayolle Sun, 24 Oct 2004 11:06:51 +0200 debian/copyright0000644000000000000000000000541511647506224011135 0ustar This package was debianized by Alexandre Fayolle 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. debian/TODO0000644000000000000000000000013111647506224007660 0ustar Write man pages for the various scripts Fix lintinan warning about script not executable debian/source/0000755000000000000000000000000011647772450010503 5ustar debian/source/format0000644000000000000000000000001411647506224011703 0ustar 3.0 (quilt) debian/patches/0000755000000000000000000000000011647772450010632 5ustar debian/patches/handle_ValueError_in_decode_headers.patch0000644000000000000000000000336311647506224020737 0ustar # HG changeset patch # Parent 418dc414cd7e4d4098e3ddfa49c0e759d46c2554 handle ValueErrors which can be raised by decode_header in email module (closes #491278) diff --git a/spambayes/UserInterface.py b/spambayes/UserInterface.py --- a/spambayes/UserInterface.py +++ b/spambayes/UserInterface.py @@ -214,7 +214,7 @@ class BaseUserInterface(Dibbler.HTTPPlug try: sections = email.Header.decode_header(field) - except (binascii.Error, email.Errors.HeaderParseError): + except (binascii.Error, email.Errors.HeaderParseError, ValueError): sections = [(field, None)] field = ' '.join([text for text, unused in sections]) if len(field) > limit: diff --git a/spambayes/tokenizer.py b/spambayes/tokenizer.py --- a/spambayes/tokenizer.py +++ b/spambayes/tokenizer.py @@ -1314,7 +1314,7 @@ class Tokenizer: x = msg.get('subject', '') try: subjcharsetlist = email.Header.decode_header(x) - except (binascii.Error, email.Errors.HeaderParseError): + except (binascii.Error, email.Errors.HeaderParseError, ValueError): subjcharsetlist = [(x, 'invalid')] for x, subjcharset in subjcharsetlist: if subjcharset is not None: @@ -1346,7 +1346,7 @@ class Tokenizer: if name: try: subjcharsetlist = email.Header.decode_header(name) - except (binascii.Error, email.Errors.HeaderParseError): + except (binascii.Error, email.Errors.HeaderParseError, ValueError): subjcharsetlist = [(name, 'invalid')] for name, charset in subjcharsetlist: yield "%s:name:%s" % (field, name.lower()) debian/patches/gnus_fix.patch0000644000000000000000000000121511647506224013466 0ustar # HG changeset patch # User Alexandre Fayolle # Date 1288525584 -3600 # Node ID a19cf104dffb212068638409836cef5795b2ada1 # Parent 3db27c3f13ce1710a5badcad4d60bba0ab41826e gnus interface change diff --git a/contrib/spambayes.el b/contrib/spambayes.el --- a/contrib/spambayes.el +++ b/contrib/spambayes.el @@ -25,7 +25,7 @@ ;; To install, just drop this file in your load path, and insert the ;; following lines in ~/.gnus: ;; -;; (setq gnus-sum-load-hook +;; (setq gnus-summary-mode-hook ;; (lambda () ;; (require 'spambayes) ;; (define-key gnus-summary-mode-map [(B) (s)] 'spambayes-gnus-refile-as-spam) debian/patches/paths_fix.patch0000644000000000000000000000107511647506425013640 0ustar # HG changeset patch # User Alexandre Fayolle # Date 1288525605 -3600 # Node ID 04f5d2ecfd53f14ab35d9ca1f1f8fc3186a39f8b # Parent a19cf104dffb212068638409836cef5795b2ada1 fix paths in contrib emacs script diff --git a/contrib/spambayes.el b/contrib/spambayes.el --- a/contrib/spambayes.el +++ b/contrib/spambayes.el @@ -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" "Path to the sb_filter program.") debian/patches/series0000644000000000000000000000003711647506224012041 0ustar gnus_fix.patch paths_fix.patch debian/control0000644000000000000000000000176011647745666010623 0ustar Source: spambayes Section: mail Priority: optional Maintainer:Python Applications Packaging Team Uploaders: Alexandre Fayolle Build-Depends: debhelper (>= 7.0.50), python (>=2.6.6-3~), python-setuptools, python-lockfile Standards-Version: 3.9.2 X-Python-Version: >= 2.6 Homepage: http://spambayes.sourceforge.net Vcs-Svn: svn://svn.debian.org/svn/python-apps/packages/spambayes/trunk Vcs-Browser: http://svn.debian.org/viewsvn/python-apps/packages/spambayes/trunk Package: spambayes Architecture: all Depends: ${python:Depends}, ${misc: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. debian/spambayes.docs0000644000000000000000000000015711647506224012036 0ustar NEWTRICKS.txt POP3PROXY.txt README-DEVEL.txt README.txt TESTING.txt WHAT_IS_NEW.txt contrib/ pspam/ utilities/