[Mailman-Users] Pipermail URL handling in archives
boxenberg at hotmail.com
Sat Feb 23 03:01:20 CET 2008
Please pardon me for butting in, I will be the first to admit I am probably the least qualified to give an opinion here, but....
It seems to me this is a DNS issue, no? Simply because the trailing character, be it a comma or period, more or less represents "root" as far as DNS is concerned. If you have a form front end it should not be that big a deal to just "trim" the period or comma from the URL.
Or am I just totally out of touch here???
> Date: Fri, 22 Feb 2008 19:09:16 -0500> From: yahoo at jimpop.com> To: mailman-users at python.org> Subject: Re: [Mailman-Users] Pipermail URL handling in archives> > On Fri, Feb 22, 2008 at 4:03 PM, Mark Sapiro <mark at msapiro.net> wrote:> > You could try to find the line> >> > urlpat = re.compile(r'(\w+://[^>)\s]+)') # URLs in text> >> > near the beginning of Mailman/Archiver/HyperArch.py and change it to> >> > urlpat = re.compile(r'(\w+://[^>)\s]+?)\.?(\s|$)') # URLs in text> > Mark, that works well for the case I described. I did find something> else similar that doesn't work:> > this is another url http://www.yahoo.com, and so is this> http://www.google.com.> > Gets converted into:> this is another url <A> HREF="http://www.yahoo.com,">http://www.yahoo.com,</A>> and so is this <A> HREF="http://www.ibm.com">http://www.google.com</A>.> > So, the problem seems to appear with commas too which makes me wonder> if this can be resolved with this:> > urlpat = re.compile(r'(\w+://[^>)\s]+?)(\.|,)?(\s|$)') # URLs in text> > but then I got to thinking about any other punctuation make that> follows a URL... and my mind started spinning :-)> > Any ideas, anyone?> > -Jim P.> ------------------------------------------------------> Mailman-Users mailing list> Mailman-Users at python.org> http://mail.python.org/mailman/listinfo/mailman-users> Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py> Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/> Unsubscribe: http://mail.python.org/mailman/options/mailman-users/boxenberg%40hotmail.com> > Security Policy: http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp
More information about the Mailman-Users