Closed Bug 119963 Opened 23 years ago Closed 20 years ago

[mozTXTToHTMLConv] When a URL is contained in an e-mail message, automatic recognition stops at an apostrophe

Categories

(SeaMonkey :: MailNews: Message Display, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 133016

People

(Reporter: jones, Assigned: sspitzer)

References

()

Details

Attachments

(1 file, 1 obsolete file)

I received the following URL in an e-mail: http://www.nationalpost.com/specialreports/archives/20011204/investor'sguide.html Only the portion up to the apostrophe is highlighted, not the whole URL. Maybe it's the URL that's out-of-spec. I will attach a mail folder to show the problem.
Attached file Mail containing the URL in the body (obsolete) (deleted) —
Place in mail folders directory with Mozilla shut down, then start up Mozilla Mail.
Attached file Mail containing URL in body (deleted) —
PLace in directory containing mail folders, then start up Mozilla Mail. Uploading a second time with text/plain MIME type instead of application/octet-stream, which I could not delete or edit.
QA Contact: esther → laurel
The Build ID is 2001122106 .
Although RFC 1738 does not list "'" as an invalid character in an URL it is considered unsafe (and, thus should be escaped). Still, this is a bug. Confirmed using 2002053008 Win2k.
Status: UNCONFIRMED → NEW
Ever confirmed: true
The bug also shows up in Linux. Suggesting WONTFIX, though. ' is commonly used as a delimiter for URLs, so in most cases Mozilla gets it right. Fixing it would repair extremely rare cases which are of course valid, but breaks many other cases which are also valid. pi
OS: Windows 98 → All
Hardware: PC → All
A simple workaround seems to be writing such URLs in pointed brackets: <url> Since this form isn't that uncommon, I'd also suggest WONTFIX here. In those cases where Mozilla fails to recognize the whole URL, there's still classic copy & paste.
Related to bug 133016, URL recognition also stops at ), ], and }.
*** Bug 220895 has been marked as a duplicate of this bug. ***
(In reply to comment #8) > *** Bug 220895 has been marked as a duplicate of this bug. *** (I'm using Moz 1.6) Has there been any recent interest in solving this? Was on a newsgroup and several times clicked on links with apostrophes and the newsreader doesn't convert the entire URL to a link. Typically each time you use the link you get to the site but get a '404', leading you to assume that the link was out of date and that page has gone from the site. It wasn't until days later I noticed the bug. I notice the same thing happens in mail (someone just sent me a simple example). If the mail/newsreader is going to convert URLs to links then it should do it properly or not at all. The apostrophe is (according to RFC 2396) a permitted 'unreserved' character in URLs.
See discussion in bug 119963; also bug 218287
Summary: When a URL is contained in an e-mail message, automatic recognition stops at an apostrophe → [mozTXTToHTMLConv] When a URL is contained in an e-mail message, automatic recognition stops at an apostrophe
Attachment #64891 - Attachment mime type: text/plain → message/rfc822
Attachment #64889 - Attachment is obsolete: true
Comment 6 is correct. Comment 5 is a good point, too, this may indeed be wontfix. The only thing keeping me from it is RFC 2396 Sect. 2.3, which clearly defines apostrophe as allowed. > If the mail/newsreader is going to convert URLs to links then it should do it > properly or not at all. Not possible to get it right in all cases, because plaintext doesn't give the necessary information.
> See discussion in bug 119963 Mike probably meant bug 133016. Actually, I'm going to mark this a dup of that, because they are so similar (just different char). I hope that's OK. *** This bug has been marked as a duplicate of 133016 ***
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: