-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Stephen Warren wrote:
> Dennis Kavadas wrote:
>>> as you pointed out earlier, the problem is the 2nd :
>>> tmda-cgi should be looking at the 3rd : for the UID.
>>> am i correct ?
> 
> That would probably make sense, *if* the mapped username always contains
> precisely one (never zero, never more) :s. It sounds like this is not
> the case, because you mentioned that some of your users (without . in
> the email) work, and some don't.

Please try the patch below. If you don't grok patch, then simply search
for the line prefixed with "-" below and replace it with the line
prefixed with "+" (but don't copy the "+"). Make sure to maintain the
correct # of spaces indent, because Python is sensitive to indent.

Index: vmailmgr1.py
===================================================================
- --- vmailmgr1.py        (revision 2144)
+++ vmailmgr1.py        (working copy)
@@ -25,7 +25,7 @@
   for Line in List:
     Parts = Line.split(":")
     if (Parts[0] == User):
- -      return Parts[1], Parts[2], Parts[3]
+      return ':'.join(Parts[1:-2]), Parts[-2], Parts[-1]

   # User does not exist
   raise KeyError
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF3oA9hk3bo0lNTrURAmF6AKCZtf5MgXj7d3vA9D6DbnQ77+o+TgCfaZnT
AvnGa3J4dKeskb9nPqjDyEE=
=SaIk
-----END PGP SIGNATURE-----
_________________________________________________
tmda-workers mailing list ([email protected])
http://tmda.net/lists/listinfo/tmda-workers

Reply via email to