On Thu, 2003-01-02 at 04:56, Mark McArthey wrote:
> I installed this system wide and am running Apache2. I have set the
> appropriate CGI_ values in my system wide tmdarc and made sure the cgi
> directory is readable by the CGI_USER.
>
> This is what I received:
<snip>
> AttributeError: Message instance has no attribute 'return_path'
oops, I think I'm reponsible for that bug.
Having no possibility yet to run and test tmda-cgi, can you try the
following patch[*] to see if it fixes it ?
Thanks.
David
[*] cd into the cgi directory, then run:
patch -p0 < /path/to/the/attached/tmda-cgi.patch
? tmda-cgi.conf
Index: Pending.py
===================================================================
RCS file: /cvsroot/tmda/tmda/contrib/cgi/Pending.py,v
retrieving revision 1.8
diff -u -r1.8 Pending.py
--- Pending.py 14 Dec 2002 01:30:34 -0000 1.8
+++ Pending.py 2 Jan 2003 08:20:27 -0000
@@ -58,7 +58,7 @@
if Form["a%d" % Count].value == "pass": continue
try:
- MsgObj = Pending.Message(Form["m%d" % Count].value)
+ MsgObj = Pending.Message(Form["m%d" % Count].value).initMessage()
if Form["a%d" % Count].value == "release":
MsgObj.release()
PVars["InProcess"][Form["m%d" % Count].value] = 1
@@ -219,7 +219,7 @@
for Msg in Msgs[FirstMsg:LastMsg]:
# Print a single message record inside list loop
try:
- MsgObj = Pending.Message(Msg)
+ MsgObj = Pending.Message(Msg).initMessage()
except IOError:
pass
Index: Release.py
===================================================================
RCS file: /cvsroot/tmda/tmda/contrib/cgi/Release.py,v
retrieving revision 1.4
diff -u -r1.4 Release.py
--- Release.py 12 Dec 2002 22:26:23 -0000 1.4
+++ Release.py 2 Jan 2003 08:20:27 -0000
@@ -69,7 +69,7 @@
# Read in e-mail
try:
- MsgObj = Pending.Message(MsgID)
+ MsgObj = Pending.Message(MsgID).initMessage()
except Errors.MessageError:
CgiUtil.TermError("Message could not be fetched.",
"Message has already been released or deleted.",
Index: View.py
===================================================================
RCS file: /cvsroot/tmda/tmda/contrib/cgi/View.py,v
retrieving revision 1.8
diff -u -r1.8 View.py
--- View.py 12 Dec 2002 22:26:23 -0000 1.8
+++ View.py 2 Jan 2003 08:20:28 -0000
@@ -108,7 +108,7 @@
else:
# Read in e-mail
try:
- MsgObj = Pending.Message(PVars["MsgID"])
+ MsgObj = Pending.Message(PVars["MsgID"]).initMessage()
if Form["subcmd"].value == "delete":
MsgObj.delete()
@@ -148,7 +148,7 @@
(os.environ["SCRIPT_NAME"], PVars.SID)
# Read in e-mail
- MsgObj = Pending.Message(PVars["MsgID"])
+ MsgObj = Pending.Message(PVars["MsgID"]).initMessage()
if PVars["Headers"] == "all":
# Generate all headers