SF.net SVN: tmda: [2158] trunk/tmda-cgi/stubs
[email protected] Sun, 25 Feb 2007 18:51:24 -0800
| Newsgroups | gmane.mail.spam.tmda.cvs |
|---|---|
| Message-ID | <[email protected]> |
Revision: 2158
http://svn.sourceforge.net/tmda/?rev=2158&view=rev
Author: srwarren
Date: 2007-02-25 18:51:24 -0800 (Sun, 25 Feb 2007)
Log Message:
-----------
tmda-cgi vmailmgr stub: Support home-directories that contain a colon character, which vmailmgr seems to like creating when email address local parts contain a period.
Modified Paths:
--------------
trunk/tmda-cgi/stubs/ChangeLog
trunk/tmda-cgi/stubs/vmailmgr1.py
Modified: trunk/tmda-cgi/stubs/ChangeLog
===================================================================
--- trunk/tmda-cgi/stubs/ChangeLog 2007-02-24 22:26:17 UTC (rev 2157)
+++ trunk/tmda-cgi/stubs/ChangeLog 2007-02-26 02:51:24 UTC (rev 2158)
@@ -1,3 +1,15 @@
+2007-02-23 Stephen Warren <[email protected]>
+
+ * Modified vmailmgr1 stub to allow the home-directory field to contain
+ colon characters.
+
+ It appears that vmailmgr automatically converts any "." in the user
+ part of an email address to a ":" when creating the user's home
+ directory.
+
+ Report from, and patch testing by:
+ "Dennis Kavadas <[email protected]>"
+
2004-02-01 Jim Ramsay <[email protected]>
* Added vmailmgr1 stub.
Modified: trunk/tmda-cgi/stubs/vmailmgr1.py
===================================================================
--- trunk/tmda-cgi/stubs/vmailmgr1.py 2007-02-24 22:26:17 UTC (rev 2157)
+++ trunk/tmda-cgi/stubs/vmailmgr1.py 2007-02-26 02:51:24 UTC (rev 2158)
@@ -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
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.