You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by jr...@apache.org on 2013/07/12 15:18:53 UTC
svn commit: r1502547 - in /qpid/site: docs/discussion.html
docs/proton/index.html docs/resources.html python/markdown2.py
Author: jross
Date: Fri Jul 12 13:18:52 2013
New Revision: 1502547
URL: http://svn.apache.org/r1502547
Log:
QPID-4987: Use a deterministic method of obfuscating mail addresses
Modified:
qpid/site/docs/discussion.html
qpid/site/docs/proton/index.html
qpid/site/docs/resources.html
qpid/site/python/markdown2.py
Modified: qpid/site/docs/discussion.html
URL: http://svn.apache.org/viewvc/qpid/site/docs/discussion.html?rev=1502547&r1=1502546&r2=1502547&view=diff
==============================================================================
--- qpid/site/docs/discussion.html (original)
+++ qpid/site/docs/discussion.html Fri Jul 12 13:18:52 2013
@@ -82,8 +82,8 @@ unsubscribe address.</p>
<table>
<tbody>
<tr><td></td><td><em>Subscribe</em></td><td><em>Unsubscribe</em></td></tr>
-<tr><td><em>Users</em></td><td><a href="mailto:users-subscribe@qpid.apache.org">users-subscribe@qpid.apache.org</a></td><td><a href="mailto:users-unsubscribe@qpid.apache.org">users-unsubscribe@qpid.apache.org</a></td></tr>
-<tr><td><em>Developers</em></td><td><a href="mailto:dev-subscribe@qpid.apache.org">dev-subscribe@qpid.apache.org</a></td><td><a href="mailto:dev-unsubscribe@qpid.apache.org">dev-unsubscribe@qpid.apache.org</a></td></tr>
+<tr><td><em>Users</em></td><td><a href="mailto:users-subscribe@qpid.apache.org">users-subscribe@qpid.apache.org</a></td><td><a href="mailto:users-unsubscribe@qpid.apache.org">users-unsubscribe@qpid.apache.org</a></td></tr>
+<tr><td><em>Developers</em></td><td><a href="mailto:dev-subscribe@qpid.apache.org">dev-subscribe@qpid.apache.org</a></td><td><a href="mailto:dev-unsubscribe@qpid.apache.org">dev-unsubscribe@qpid.apache.org</a></td></tr>
<tr><td></td><td>Send "subscribe" in the subject</td><td>Send "unsubscribe" in the subject</td></tr>
</tbody>
</table>
Modified: qpid/site/docs/proton/index.html
URL: http://svn.apache.org/viewvc/qpid/site/docs/proton/index.html?rev=1502547&r1=1502546&r2=1502547&view=diff
==============================================================================
--- qpid/site/docs/proton/index.html (original)
+++ qpid/site/docs/proton/index.html Fri Jul 12 13:18:52 2013
@@ -76,8 +76,8 @@ address. To unsubscribe, send "unsubscr
address.</p>
<ul>
-<li>Send "subscribe" to <a href="mailto:proton-subscribe@qpid.apache.org">proton-subscribe@qpid.apache.org</a></li>
-<li>Send "unsubscribe" to <a href="mailto:proton-unsubscribe@qpid.apache.org">proton-unsubscribe@qpid.apache.org</a></li>
+<li>Send "subscribe" to <a href="mailto:proton-subscribe@qpid.apache.org">proton-subscribe@qpid.apache.org</a></li>
+<li>Send "unsubscribe" to <a href="mailto:proton-unsubscribe@qpid.apache.org">proton-unsubscribe@qpid.apache.org</a></li>
<li><a href="http://mail-archives.apache.org/mod_mbox/qpid-proton/">List information</a></li>
<li><a href="http://qpid.2158936.n2.nabble.com/Apache-Qpid-Proton-f7580687.html">List archive</a></li>
<li><a href="http://mail-archives.apache.org/mod_mbox/qpid-proton/?format=atom">News feed</a></li>
Modified: qpid/site/docs/resources.html
URL: http://svn.apache.org/viewvc/qpid/site/docs/resources.html?rev=1502547&r1=1502546&r2=1502547&view=diff
==============================================================================
--- qpid/site/docs/resources.html (original)
+++ qpid/site/docs/resources.html Fri Jul 12 13:18:52 2013
@@ -122,8 +122,8 @@ automated tests.</li>
<table>
<tbody>
<tr><td></td><td><em>Subscribe</em></td><td><em>Unsubscribe</em></td></tr>
-<tr><td><em>Commits</em></td><td><a href="mailto:commits-subscribe@qpid.apache.org">commits-subscribe@qpid.apache.org</a></td><td><a href="mailto:commits-unsubscribe@qpid.apache.org">commits-unsubscribe@qpid.apache.org</a></td></tr>
-<tr><td><em>Notifications</em></td><td><a href="mailto:notifications-subscribe@qpid.apache.org">notifications-subscribe@qpid.apache.org</a></td><td><a href="mailto:notifications-unsubscribe@qpid.apache.org">notifications-unsubscribe@qpid.apa&#
x63;he.org</a></td></tr>
+<tr><td><em>Commits</em></td><td><a href="mailto:commits-subscribe@qpid.apache.org">commits-subscribe@qpid.apache.org</a></td><td><a href="mailto:commits-unsubscribe@qpid.apache.org">commits-unsubscribe@qpid.apache.org</a></td></tr>
+<tr><td><em>Notifications</em></td><td><a href="mailto:notifications-subscribe@qpid.apache.org">notifications-subscribe@qpid.apache.org</a></td><td><a href="mailto:notifications-unsubscribe@qpid.apache.org">notifications-unsubscribe@qpid.apache.org</a></td></tr>
<tr><td></td><td>Send "subscribe" in the subject</td><td>Send "unsubscribe" in the subject</td></tr>
</tbody>
</table>
Modified: qpid/site/python/markdown2.py
URL: http://svn.apache.org/viewvc/qpid/site/python/markdown2.py?rev=1502547&r1=1502546&r2=1502547&view=diff
==============================================================================
--- qpid/site/python/markdown2.py (original)
+++ qpid/site/python/markdown2.py Fri Jul 12 13:18:52 2013
@@ -1826,7 +1826,7 @@ class Markdown(object):
#
# Based on a filter by Matthew Wickline, posted to the BBEdit-Talk
# mailing list: <http://tinyurl.com/yu7ue>
- chars = [_xml_encode_email_char_at_random(ch)
+ chars = [_xml_encode_email_char(ch)
for ch in "mailto:" + addr]
# Strip the mailto: from the visible part.
addr = '<a href="%s">%s</a>' \
@@ -2156,6 +2156,17 @@ def _xml_escape_attr(attr, skip_single_q
escaped = escaped.replace("'", "'")
return escaped
+def _xml_encode_email_char(ch):
+ # jross: We need this to be deterministic, so a different approach
+
+ modulo = ord(ch) % 3
+
+ if (modulo == 0):
+ return ch
+ elif (modulo == 1):
+ return '&#%s;' % hex(ord(ch))[1:]
+ else:
+ return '&#%s;' % ord(ch)
def _xml_encode_email_char_at_random(ch):
r = random()
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org