tmda-pending: ValueError: too many values to unpack
Michael Allan <[email protected]> Thu, 1 Aug 2013 02:56:15 -0400
| Newsgroups | gmane.mail.spam.tmda.devel,gmane.mail.spam.tmda.user |
|---|---|
| Message-ID | <[email protected]> |
Hi folks,
After upgrading my Gentoo/Linux box, tmda-pending started throwing
"ValueError: too many values to unpack". I don't know what change
brought it on (my Python version is still at 2.7.3). Anyway, here's
the patch that fixed it for me:
--- /home/mike/tmp/tmda-1.1.12/TMDA/Pending.py 2007-01-17 16:49:44.000000000 -0500
+++ /usr/lib64/python2.7/site-packages/TMDA/Pending.py 2013-08-01 01:44:50.000000000 -0400
@@ -371,7 +375,7 @@
if Defaults.PENDING_RELEASE_APPEND:
Util.append_to_file(self.append_address,
Defaults.PENDING_RELEASE_APPEND)
- timestamp, pid = self.msgid.split('.')
+ timestamp, pid, ignore = self.msgid.split('.', 2)
# Remove Return-Path: to avoid duplicates.
del self.msgobj['return-path']
# Remove X-TMDA-Recipient:
@@ -469,7 +473,7 @@
if not self.confirm_accept_address:
if self.recipient:
import Cookie
- (timestamp, pid) = self.msgid.split('.')
+ (timestamp, pid, ignore) = self.msgid.split('.', 2)
self.confirm_accept_address = Cookie.make_confirm_address(
self.recipient, timestamp, pid,
'accept')
--
Michael Allan
Toronto, +1 416-699-9528
http://zelea.com/
------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent
caught up. So what steps can you take to put your SQL databases under
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
_______________________________________________
tmda-workers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tmda-workers