summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorklm1998-12-17 20:49:07 +0000
committerklm1998-12-17 20:49:07 +0000
commit59c1cd72892f34f42e9ebda3752a046d2f7c21c7 (patch)
tree468076602c6b51cafb4f58943d3df0fb3dbe1bf6
parent95c0f8e274d323cc78847df8f2fe25baf744d451 (diff)
downloadmailman-59c1cd72892f34f42e9ebda3752a046d2f7c21c7.tar.gz
mailman-59c1cd72892f34f42e9ebda3752a046d2f7c21c7.tar.zst
mailman-59c1cd72892f34f42e9ebda3752a046d2f7c21c7.zip
I needed to use the Utils.FindMatchingAddresses() address, rather than
the original, for each of the links - and also, needed to used the Utils.ObscuredEmail() version of that, since that's the more common, "normal" form.
-rw-r--r--Mailman/Cgi/handle_opts.py13
1 files changed, 9 insertions, 4 deletions
diff --git a/Mailman/Cgi/handle_opts.py b/Mailman/Cgi/handle_opts.py
index f7a99a4bc..1328785d9 100644
--- a/Mailman/Cgi/handle_opts.py
+++ b/Mailman/Cgi/handle_opts.py
@@ -155,11 +155,16 @@ exactly what happened to provoke this error.<p>'''
"List Subscriptions for %s on %s"
% (user, list.host_name)))
doc.AddItem("Click a link to visit your options page for"
- " that mailing list.")
+ " that mailing list:")
def optionslinks(l, user=user):
- if l.IsMember(user):
- link = htmlformat.Link(l.GetAbsoluteOptionsURL(user),
- l.real_name)
+ addrs = Utils.FindMatchingAddresses(user, l.members,
+ l.digest_members)
+ if addrs:
+ addr = Utils.ObscureEmail(addrs[0])
+ if l.obscure_addresses:
+ addr = Utils.ObscureEmail(addr)
+ url = l.GetAbsoluteOptionsURL(addr)
+ link = htmlformat.Link(url, l.real_name)
return l._internal_name, link
all_links = filter(None, Utils.map_maillists(optionslinks))
all_links.sort()