Whenever getmail actually receives mail it prints a deprecation warning when using python 2.4 because of changes to python's email package. According to http://marc.theaimsgroup.com/?l=getmail&m=109995431002051&w=2 there is no "nice" way to avoid this, so I patched getmail to behave differently when python 2.4 or newer is used. This is imho ugly, but it should be safe and remove the deprecation message. I've only patched getmail-4.2.5 (x86 stable) but the same thing applies to 4.3.1 with some line numbers changed. Reproducible: Always Steps to Reproduce: 1. install python-2.4 (currently in package.mask) 2. emerge getmail 3. use it to fetch mail Actual Results: received the following warning: /usr/lib/python2.4/email/__init__.py:43: DeprecationWarning: 'strict' argument is deprecated (and ignored) return Parser(*args, **kws).parsestr(s) Expected Results: fetched mail without complaining Portage 2.0.51-r15 (selinux/2004.1/x86, gcc-3.3.5, glibc-2.3.4.20040808-r1, 2.6.10-hardened-r3-m1 i686) ================================================================= System uname: 2.6.10-hardened-r3-m1 i686 Gentoo Base System version 1.4.16 Python: dev-lang/python-2.4 [2.4 (#1, Jan 26 2005, 15:18:28)] dev-lang/python: 2.4 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.5, 1.7.9-r1, 1.6.3, 1.4_p6, 1.9.4, 1.8.5-r3 sys-devel/binutils: 2.15.92.0.2-r1 sys-devel/libtool: 1.5.10-r4 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-Os -march=pentium2 -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-Os -march=pentium2 -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks loadpolicy sandbox sfperms strict userpriv usersandbox" GENTOO_MIRRORS="ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo http://ftp.easynet.nl/mirror/gentoo/ http://www.gigaload.org/gentoo.org/" LANG="en_US.UTF-8" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.nl.gentoo.org/gentoo-portage" USE="crypt hardened jabber maildir minimal msn ncurses no-old-linux nopop3d nptl nptlonly pam pic pie python readline selinux sftplogging ssl unicode userlocales x86 zlib" Unset: ASFLAGS, CBUILD, CTARGET, LC_ALL, LDFLAGS
Created attachment 49937 [details, diff] patch to getmail to avoid DeprecationWarning
Created attachment 49939 [details, diff] patch to getmail-4.2.5.ebuild to apply the previous patch
The patch now gets applied to 4.2.5-r1, 4.3.1-r1 and new 4.3.2. All are unstable, but I'll mark first two stable ASAP. Thanks for the patch!