From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/30955 Path: main.gmane.org!not-for-mail From: Steinar Bang Newsgroups: gmane.emacs.gnus.general Subject: Re: New URL button rule (was: Re: The .. rule) Date: 15 May 2000 16:18:32 +0200 Sender: owner-ding@hpc.uh.edu Message-ID: References: <200005130907.LAA23394@marcy.cs.uni-dortmund.de> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035167423 11339 80.91.224.250 (21 Oct 2002 02:30:23 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 02:30:23 +0000 (UTC) Return-Path: Original-Received: from lisa.math.uh.edu (lisa.math.uh.edu [129.7.128.49]) by mailhost.sclp.com (Postfix) with ESMTP id A3DC8D0520 for ; Mon, 15 May 2000 10:19:17 -0400 (EDT) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by lisa.math.uh.edu (8.9.1/8.9.1) with ESMTP id JAB27191; Mon, 15 May 2000 09:19:16 -0500 (CDT) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Mon, 15 May 2000 09:18:34 -0500 (CDT) Original-Received: from mailhost.sclp.com (postfix@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id JAA26853 for ; Mon, 15 May 2000 09:18:24 -0500 (CDT) Original-Received: from viffer.metis.no (viffer.oslo.metis.no [195.0.254.249]) by mailhost.sclp.com (Postfix) with ESMTP id DD978D0520 for ; Mon, 15 May 2000 10:18:41 -0400 (EDT) Original-Received: (from sb@localhost) by viffer.metis.no (8.9.3/8.9.3) id QAA30763; Mon, 15 May 2000 16:18:32 +0200 Original-To: ding@gnus.org In-Reply-To: Per Abrahamsen's message of "15 May 2000 16:11:28 +0200" Original-Lines: 21 User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/20.4 (Emerald) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:30955 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:30955 >>>>> Per Abrahamsen : > Yep. And there is a sane heuristic that cathes it, without > generating zillions of false positives. Words that start with > "www." can be considered URL's. I thought of suggesting that, until I found that the only two real URLs that survived my paring down of Karl Kleinpaste's examples, did _not_ in fact, start with www...:-) > Try this, it even catches local parts (unlike the dot.dot.dot rule): > (setq gnus-button-url-regexp > "\\b\\(\\(www\\.\\|\\(s?https?\\|ftp\\|file\\|gopher\\|news\\|telnet\\|wais\\|mailto\\):\\)\\(//[-a-zA-Z0-9_.]+:[0-9]*\\)?\\([-a-zA-Z0-9_=!?#$@~`%&*+|\\/:;.,]\\|\\w\\)+\\([-a-zA-Z0-9_=#$@~`%&*+|\\/]\\|\\w\\)\\)") > Unless someone protests, I'll commit this change to CVS. I can live with this, it catches most of the ones I would like to catch, and should avoid the false matches that drives people nuts. (But I really liked that predicate idea)