Re: URL_REGEXP and URLs ending with ')'

Martin Klaiber <[email protected]> Mon, 21 Apr 2014 12:11:22 +0200
Newsgroups gmane.network.tin.devel
Message-ID <[email protected]>
Dennis Preiser <[email protected]> wrote:
> On Sun, Apr 20, 2014 at 01:16:46PM +0200, Martin Klaiber wrote:

>> This would be a nice solution. But the main problem is IMHO that it is
>> not possible to add characters manually when editing the URL because
>> tin seems to limit the length of the URL-string to the original length
>> without the ")".

> You are right, this is a fixed length and not a dynamic one. It would be
> possible to increase the length by a fixed amount. But what would be a
> reasonable value: length of the URL + 1 or + 2 or + 5 or + 10 ...

I don't know. The trailing ")" is only one problem. There are others,
like wrapped URLs of broken newsreaders. Just an example:

| Message-ID: <[email protected]>
| From: "Werner P. Schulz" <[email protected]>
| Newsgroups: de.comm.provider.t-online
| Subject: Re: =?iso-8859-1?Q?Aprilst=F6rung=2C?= schluckauf oder...?
| Date: 1 Apr 2014 07:22:26 GMT
| User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508
|  git://git.gnome.org/pan2)
| 
| [...]
| 
| http://www.heise.de/newsticker/meldung/Kabelverstopfung-Telekom-aendert-
| Strategie-gegen-Skin-Effekt-2157959.html?wt_mc=nl.ho

The last two lines is one URL, destroyed by a line break. tin recognizes
only the first line as the URL, the user has to add the second line
manually, which would be about 50 characters here.

> The question is, what is less confusing for the user: No additional
> input is possible or e.g. only 5 additional characters are possible.

I think, both is confusing. From a users point of view it would be nice
to have no limit at all (IMHO).

But on the other hand, broken URLs are rare, the few cases can be
handled by dragging the URL to a browser in a second window/terminal.

To be honest: I don't know what is best.

Sorry,
Martin