diff options
| author | bwarsaw | 1999-03-29 23:11:46 +0000 |
|---|---|---|
| committer | bwarsaw | 1999-03-29 23:11:46 +0000 |
| commit | ea42af85c8ba1b8dceb02ae9189b3fd474f4989f (patch) | |
| tree | 2a7a98a234d428fd3fa03985c7979ad3d67bbcb4 /Mailman/Cgi/options.py | |
| parent | 2294974e88331fdbb2754a1fe77f9fa2929e0c0d (diff) | |
| download | mailman-ea42af85c8ba1b8dceb02ae9189b3fd474f4989f.tar.gz mailman-ea42af85c8ba1b8dceb02ae9189b3fd474f4989f.tar.zst mailman-ea42af85c8ba1b8dceb02ae9189b3fd474f4989f.zip | |
Diffstat (limited to 'Mailman/Cgi/options.py')
| -rw-r--r-- | Mailman/Cgi/options.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/Mailman/Cgi/options.py b/Mailman/Cgi/options.py index 56a680bb7..ace858b6d 100644 --- a/Mailman/Cgi/options.py +++ b/Mailman/Cgi/options.py @@ -75,12 +75,13 @@ def main(): print doc.Format() sys.exit(0) # find the case preserved email address (the one the user subscribed with) - cpuser = mlist.members.get(mlist.FindUser(user)) - # Re-obscure the user's address for the page banner if obscure_addresses - # set. + lcuser = mlist.FindUser(user) + cpuser = mlist.GetUserSubscribedAddress(lcuser) + if lcuser == cpuser: + cpuser = None if mlist.obscure_addresses: presentable_user = Utils.ObscureEmail(user, for_text=1) - if type(cpuser) == StringType: + if cpuser is not None: cpuser = Utils.ObscureEmail(cpuser, for_text=1) else: presentable_user = user @@ -136,7 +137,7 @@ def main(): ' To Me')) replacements['<mm-umbrella-notice>'] = ( mlist.FormatUmbrellaNotice(user, "password")) - if type(cpuser) == StringType: + if cpuser is not None: replacements['<mm-case-preserved-user>'] = ''' You are subscribed to this list with the case-preserved address <em>%s</em>.''' % cpuser |
