diff options
| author | bwarsaw | 1999-03-09 02:46:04 +0000 |
|---|---|---|
| committer | bwarsaw | 1999-03-09 02:46:04 +0000 |
| commit | 7215485f657ae5e90f89c48562df54d7a1b0783f (patch) | |
| tree | b36cfa6bd8afd1dcfbd800bfb250550eb9cb156c | |
| parent | 731f0c51f5cfab45072aa16660daa9e4d992de0b (diff) | |
| download | mailman-7215485f657ae5e90f89c48562df54d7a1b0783f.tar.gz mailman-7215485f657ae5e90f89c48562df54d7a1b0783f.tar.zst mailman-7215485f657ae5e90f89c48562df54d7a1b0783f.zip | |
| -rw-r--r-- | Mailman/Cgi/options.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Mailman/Cgi/options.py b/Mailman/Cgi/options.py index fe2bad6c4..5e5b70759 100644 --- a/Mailman/Cgi/options.py +++ b/Mailman/Cgi/options.py @@ -75,12 +75,11 @@ def main(): sys.exit(0) # find the case preserved email address (the one the user subscribed with) cpuser = mlist.members.get(mlist.FindUser(user)) - if cpuser <> 0: - user = user + ' (' + cpuser + ')' # Re-obscure the user's address for the page banner if obscure_addresses # set. if mlist.obscure_addresses: presentable_user = Utils.ObscureEmail(user, for_text=1) + cpuser = Utils.ObscureEmail(cpuser, for_text=1) else: presentable_user = user # Do replacements @@ -135,5 +134,11 @@ def main(): ' To Me')) replacements['<mm-umbrella-notice>'] = ( mlist.FormatUmbrellaNotice(user, "password")) + if type(cpuser) == type(''): + replacements['<mm-case-preserved-user>'] = ''' +You are subscribed to this list with the case-preserved address +<em>%s</em>.''' % cpuser + else: + replacements['<mm-case-preserved-user>'] = '' doc.AddItem(mlist.ParseTags('options.html', replacements)) print doc.Format() |
