I was thinking about it, and I'm not sure if this change should be where I put it. The alternative is to make the changes in Cookie.py with the attached patch.

This will make sure that you're using the raw username whenever you alter the address. I don't know if this would screw other things up, though. Of course, you would only need to use one of the two patches I have submitted (or neither if they both are no good).

-Jared

--- TMDA/Cookie.py  Thu Mar 25 13:36:27 2004
+++ Cookie.py   Thu Mar 25 13:39:38 2004
@@ -57,6 +57,7 @@
     if Defaults.CONFIRM_ADDRESS:
         address = Defaults.CONFIRM_ADDRESS
     username, hostname = address.split('@')
+    username = username.split(Defaults.RECIPIENT_DELIMITER, 1)[0]
     confirm_address = '[EMAIL PROTECTED]' % (username,
                                          Defaults.RECIPIENT_DELIMITER,
                                          Defaults.TAGS_CONFIRM[0],
@@ -85,6 +86,7 @@
     now = '%d' % time.time()
     dated_cookie = make_dated_cookie(now)
     username, hostname = address.split('@')
+    username = username.split(Defaults.RECIPIENT_DELIMITER, 1)[0]
     dated_address = '[EMAIL PROTECTED]' %(username,
                                       Defaults.RECIPIENT_DELIMITER,
                                       Defaults.TAGS_DATED[0],
@@ -105,6 +107,7 @@
     """Return a full sender-style e-mail address."""
     sender_cookie = make_sender_cookie(sender)
     username, hostname = address.split('@')
+    username = username.split(Defaults.RECIPIENT_DELIMITER, 1)[0]
     sender_address = '[EMAIL PROTECTED]' %(username,
                                        Defaults.RECIPIENT_DELIMITER,
                                        Defaults.TAGS_SENDER[0],
@@ -134,6 +137,7 @@
     keyword = keyword.lower()
     keyword_cookie = make_keyword_cookie(keyword)
     username, hostname = address.split('@')
+    username = username.split(Defaults.RECIPIENT_DELIMITER, 1)[0]
     keyword_address = '[EMAIL PROTECTED]' %(username,
                                         Defaults.RECIPIENT_DELIMITER,
                                         Defaults.TAGS_KEYWORD[0],
_____________________________________________
tmda-users mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-users

Reply via email to