Deprecation warnings from tumgreyspf cleanup cron job

Bug #425391 reported by Stephen Warren
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
tumgreyspf (Ubuntu)
New
Undecided
Unassigned
Nominated for Karmic by Stephen Warren
Nominated for Lucid by Stephen Warren

Bug Description

Binary package hint: tumgreyspf

The tumgreyspf installs a cron job that runs /usr/lib/tumgreyspf/tumgreyspf-clean. This spews the following warning each time it's run:

----------
/usr/lib/tumgreyspf/tumgreyspfsupp.py:8: DeprecationWarning: The popen2 module is deprecated. Use the subprocess module.
  import syslog, os, sys, string, re, time, popen2, urllib, stat
----------

Jaunty
ii tumgreyspf 1.32-1 external policy checker for the postfix mail server

Revision history for this message
Stephen Warren (srwarren) wrote :

Ping?

This is still present in Karmic.

Revision history for this message
Stephen Warren (srwarren) wrote :

FYI, the fix is trivial, in tumgreyspfsupp.py, do :

-import syslog, os, sys, string, re, time, popen2, urllib, stat
+import syslog, os, sys, string, re, time, urllib, stat

Revision history for this message
Thomas Goirand (thomas-goirand) wrote :

Hi,

I hope to be soon an official Debian Developer, and be able to upload fixes. Until then, you can find an update of my package in here:

http://ftparchive.gplhost.com/debian/pool/lenny/main/t/tumgreyspf/
http://ftparchive.gplhost.com/debian/pool/lenny/main/t/tumgreyspf/tumgreyspf_1.35-3.dsc

This package removes the usage of the original tumgreyspf cleanup script, and instead, uses an sh script that I wrote myself, and that I believe is faster than the python code.

Please use that package in Ubuntu to solve the above issue, until you can use the version that I will upload in SID.

Regards,

Thomas

Revision history for this message
Thomas Goirand (thomas-goirand) wrote :

Hi,

I have uploaded version 1.35-4 in SID, please use it. This version includes a work I did: it has a re-written sh cron job that WORKS. I also suggest replacing the current version in Lucid Lynx, as the python cron job is really too buggy.

The maintainer,

<email address hidden>

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.