Mangling of /message-id/flat links

Поиск
Список
Период
Сортировка
От Thomas Munro
Тема Mangling of /message-id/flat links
Дата
Msg-id CAEepm=0HTyLXf_HcZuew2MGDYaipoVBM9Nj5bXq7EGcQ4v=S+A@mail.gmail.com
обсуждение исходный текст
Ответы Re: Mangling of /message-id/flat links  (Magnus Hagander <magnus@hagander.net>)
Список pgsql-www
Hi

The archives mangled a URL in the following message:

http://www.postgresql.org/message-id/CAEepm=03=BT=NSEbufQ6JTvWVC2fm3jyddLfUi66fn2cJ727rw@mail.gmail.com

Perhaps the pattern needs tweaking, something like this?

diff --git a/django/archives/mailarchives/templatetags/pgfilters.py
b/django/archives/mailarchives/templatetags/pgfilters.py
index 337a1a3..577ff03 100644
--- a/django/archives/mailarchives/templatetags/pgfilters.py
+++ b/django/archives/mailarchives/templatetags/pgfilters.py
@@ -23,7 +23,7 @@ def hidemail(value):## Those are not email addresses, so ignore them. The links won't work if they#
aremangled.
 
-_re_mail = re.compile('(/message-id/)?[^()<>@,;:\/\s"\'&|]+@[^()<>@,;:\/\s"\'&|]+')
+_re_mail = re.compile('(/message-id/|/message-id/flat/)?[^()<>@,;:\/\s"\'&|]+@[^()<>@,;:\/\s"\'&|]+')def
_rewrite_email_match(match):      if match.group(1):               return match.group(0)   # was preceded by
/message-id/

Or perhaps, instead of trying to recognise URLs that point back into
the archives, it shouldn't mangle anything that looks like a URL.

-- 
Thomas Munro
http://www.enterprisedb.com



В списке pgsql-www по дате отправления:

Предыдущее
От: Stefan Kaltenbrunner
Дата:
Сообщение: Re: Typo in Stream Replication howto?
Следующее
От: Daniel Gustafsson
Дата:
Сообщение: Small typo on support/security