Bug 76182 - disspam broken since spamassassin upgrade
Bug#: 76182 Product:  Gentoo Linux Version: unspecified Platform: x86
OS/Version: Linux Status: RESOLVED Severity: critical Priority: P2
Resolution: FIXED Assigned To: net-mail@gentoo.org Reported By: hybiepoo@hotmail.com
Component: Applications
URL: 
Summary: disspam broken since spamassassin upgrade
Keywords:  
Status Whiteboard: 
Opened: 2004-12-30 15:48 0000
Description:   Opened: 2004-12-30 15:48 0000
Since spamassassin was upgraded to 3.0.2, disspam is dying with a perl error
and not removing its pid file, which stops disspam running again.




Reproducible: Always
Steps to Reproduce:
1. Run disspam
2. 
3.

Actual Results:  
disspam crashes with error:
Can't locate object method "get_full_message_as_text" via package
"Mail::SpamAssassin::PerMsgStatus" at /usr/bin/disspam.pl line 783

Expected Results:  
disspam should run without error and remove its pid file on clean exit

Portage 2.0.51-r3 (default-linux/x86/2004.0, gcc-3.3.4,
glibc-2.3.4.20040808-r1,
2.6.9-gentoo-r13 i686)
=================================================================
System uname: 2.6.9-gentoo-r13 i686 AMD Athlon(tm) XP 2600+
Gentoo Base System version 1.4.16
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632)
[disabled]
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers:  sys-kernel/linux-headers-2.4.19,sys-kernel/linux-headers-2.4.21-r1
Libtools: sys-devel/libtool-1.5.2-r7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=athlon-xp -funroll-loops -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config
/usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref
/usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="ftp://mirror.aarnet.edu.au/pub/gentoo
ftp://ftp.planetmirror.com/pub/gentoo ftp://mirror.pacific.net.au/linux/Gentoo 
rsync://203.16.234.20/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X acl alsa apm arts avi berkdb bitmap-fonts cdr crypt cups dvd dvdr
dvdrw encode esd fam flac foomaticdb fortran gdbm gif gpm gstreamer gtk gtk2
imagemagick imlib ipv6 java jpeg kde ldap libgd libwww mad mikmod motif mozilla
mpeg mysql nas ncurses nls oggvorbis opengl oss pam pdflib perl php png python
qt quicktime readline sdl slang spell ssl svga tcltk tcpd tiff truetype xml2
xmms xv zlib"

------- Comment #1 From Jeff Mills 2004-12-30 15:50:13 0000 -------
Created an attachment (id=47251) [details]
Attached error

------- Comment #2 From Jeff Mills 2004-12-30 16:19:49 0000 -------
Created an attachment (id=47252) [details]
Missing code from PerMsgStatus.pm

- Open /usr/lib/perl5/vendor_perl/5.8.5/Mail/SpamAssassin/PerMsgStatus.pm
- Find "=item $status->finish ()"
- Insert code above

Seems to work okay.

------- Comment #3 From Andrej Kacian (RETIRED) 2004-12-30 18:42:04 0000 -------
Check this securityfocus.com[1] article - there's been an API change, so
disspam should change its code. I'm going to contact Mina, in case she already
doesn't know about this issue.

1. http://www.securityfocus.com/tools/2563/comment/28880

------- Comment #4 From Andrej Kacian (RETIRED) 2004-12-31 09:30:11 0000 -------
OK, I've committed 0.12-r1 ebuild into portage, which fixes this, if it finds
SA 3.0.2 or higher detected. Thanks for reporting this!