[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#602798: kmail: change in spambayes executable name



Package: kmail
Version: 4:4.4.6-1
Severity: normal
Tags: sid patch

Hello,

I my latest upload of spambayes (1.0.4-6), I've brought the package inline with the
Policy regarding script names in /usr/bin/ which should not have an extension
such as ".py". This impacts kmail, as kmail can use spambayes and expects
/usr/bin/sb_filter.py to be available. 

For now, there is a workaround shipped in spambayes, which installs symbolic
links in /usr/bin to ensure backward compatibility of the various scripts which
may use the old commands, but I strongly recommend upgrading to the "new"
interface. 

I attach a patch which should do the work 

Best regards,


-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (70, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-trunk-686 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages kmail depends on:
ii  kdebase-runtime     4:4.4.5-1            runtime components from the offici
ii  kdepim-runtime      4:4.4.6-1            Runtime components for akonadi-kde
ii  kdepimlibs-kio-plug 4:4.4.5-1            kio slaves used by KDE PIM applica
ii  libakonadi-contact4 4:4.4.5-1            library for using the Akonadi PIM 
ii  libakonadi-kde4     4:4.4.5-1            library for using the Akonadi PIM 
ii  libc6               2.11.2-6             Embedded GNU C Library: Shared lib
ii  libgcc1             1:4.4.5-4            GCC support library
ii  libgpgme++2         4:4.4.5-1            c++ wrapper library for gpgme
ii  libkabc4            4:4.4.5-1            library for handling address book 
ii  libkcal4            4:4.4.5-1            library for handling calendar data
ii  libkde3support4     4:4.4.5-1            the KDE 3 Support Library for the 
ii  libkdecore5         4:4.4.5-1            the KDE Platform Core Library
ii  libkdepim4          4:4.4.6-1            KDE PIM library
ii  libkdeui5           4:4.4.5-1            the KDE Platform User Interface Li
ii  libkhtml5           4:4.4.5-1            the KHTML Web Content Rendering En
ii  libkimap4           4:4.4.5-1            library for handling IMAP data
ii  libkio5             4:4.4.5-1            the Network-enabled File Managemen
ii  libkldap4           4:4.4.5-1            library for accessing LDAP
ii  libkleo4            4:4.4.6-1            certificate based crypto library
ii  libkmime4           4:4.4.5-1            library for handling MIME data
ii  libknotifyconfig4   4:4.4.5-1            library for configuring KDE Notifi
ii  libkontactinterface 4:4.4.5-1            Kontact interface library
ii  libkparts4          4:4.4.5-1            the Framework for the KDE Platform
ii  libkpgp4            4:4.4.6-1            gpg based crypto library
ii  libkpimidentities4  4:4.4.5-1            library for managing user identiti
ii  libkpimtextedit4    4:4.4.5-1            library that provides a textedit w
ii  libkpimutils4       4:4.4.5-1            library for dealing with email add
ii  libkresources4      4:4.4.5-1            the KDE Resource framework library
ii  libksieve4          4:4.4.6-1            mail/news message filtering librar
ii  libktnef4           4:4.4.5-1            library for handling TNEF data
ii  libkutils4          4:4.4.5-1            various utility classes for the KD
ii  libmailtransport4   4:4.4.5-1            mail transport service library
ii  libmessagecore4     4:4.4.6-1            message core library
ii  libmessagelist4     4:4.4.6-1            message list library
ii  libmimelib4         4:4.4.6-1            MIME library
ii  libnepomuk4         4:4.4.5-1            the Nepomuk Meta Data Library
ii  libphonon4          4:4.6.0really4.4.2-1 the core library of the Phonon mul
ii  libqt4-dbus         4:4.6.3-4            Qt 4 D-Bus module
ii  libqt4-network      4:4.6.3-4            Qt 4 network module
ii  libqt4-qt3support   4:4.6.3-4            Qt 3 compatibility library for Qt 
ii  libqt4-xml          4:4.6.3-4            Qt 4 XML module
ii  libqtcore4          4:4.6.3-4            Qt 4 core module
ii  libqtgui4           4:4.6.3-4            Qt 4 GUI module
ii  libstdc++6          4.4.5-4              The GNU Standard C++ Library v3
ii  libthreadweaver4    4:4.4.5-1            the ThreadWeaver Library for the K
ii  perl                5.10.1-15            Larry Wall's Practical Extraction 
ii  phonon              4:4.6.0really4.4.2-1 metapackage for the Phonon multime

Versions of packages kmail recommends:
ii  gnupg-agent                   2.0.14-2   GNU privacy guard - password agent
ii  gnupg2                        2.0.14-2   GNU privacy guard - a free PGP rep
ii  pinentry-gtk2 [pinentry-x11]  0.8.0-1    GTK+-2-based PIN or pass-phrase en

Versions of packages kmail suggests:
ii  bogofilter                    1.2.2-2    a fast Bayesian spam filter (dummy
pn  clamav | f-prot-installer     <none>     (no description available)
ii  kaddressbook                  4:4.4.6-1  address book and contact data mana
ii  kleopatra                     4:4.4.6-1  certificate Manager
pn  procmail                      <none>     (no description available)
ii  spamassassin                  3.3.1-1    Perl-based spam filter using text 
ii  spambayes                     1.0.4-6    Python-based spam filter using sta

-- no debconf information
--- kmail/kmail.antispamrc.orig	2010-11-08 10:10:31.000000000 +0100
+++ kmail/kmail.antispamrc	2010-11-08 10:10:56.000000000 +0100
@@ -97,13 +97,13 @@
 Version=1
 Priority=20
 VisibleName=SpamBayes
-Executable=sb_filter.py -h
+Executable=sb_filter -h
 URL=http://spambayes.sourceforge.net
 PipeFilterName=SpamBayes Check
-PipeCmdDetect=sb_filter.py
+PipeCmdDetect=sb_filter
 PipeCmdNoSpam=
-ExecCmdSpam=sb_filter.py -s
-ExecCmdHam=sb_filter.py -g
+ExecCmdSpam=sb_filter -s
+ExecCmdHam=sb_filter -g
 DetectionHeader=X-Spambayes-Classification
 DetectionPattern=spam
 DetectionPattern2=unsure


--- debian/control.orig	2010-11-08 10:16:56.000000000 +0100
+++ debian/control	2010-11-08 10:17:33.000000000 +0100
@@ -189,7 +189,7 @@
 Architecture: any
 Depends: ${shlibs:Depends}, ${misc:Depends}, ${perl:Depends}
 Recommends: gnupg2, gnupg-agent, pinentry-qt4 | pinentry-x11
-Suggests: kaddressbook, kleopatra, spamassassin | bogofilter | annoyance-filter | spambayes | bsfilter | crm114, clamav | f-prot-installer, procmail
+Suggests: kaddressbook, kleopatra, spamassassin | bogofilter | annoyance-filter | spambayes (>= 1.0.4-6) | bsfilter | crm114, clamav | f-prot-installer, procmail
 Replaces: kmailcvt (<< 4:3.90.0), akonadi-kde (<< 4:4.1.3), kontact (<< 4:4.1.80)
 Provides: imap-client, mail-reader
 Homepage: http://kontact.kde.org/kmail/

Reply to: