The My Opera forums have been replaced with forums.opera.com. Please head over there to discuss Opera's products and features

See the new Forums

You need to be logged in to post in the forums. If you do not have an account, please sign up first.

Go to last post

25. October 2011, 15:24:48

hucker

Posts: 1416

Non-clickable links

When somebody emails me in html mode, this is part of the raw message (see below). The sender used YahooMailWebService/0.8.114.317681
Me using Opera and someone else using Microsoft Outlook Express 6.00.2900.5931 both get a non-clickable link.
I looked up =0A and it appears to be "line feed", which Opera acknowledges by putting "Peter, ...." on the next line.
Anyone know why this is happening?



Subject: BBC link to both of you

--1745229527-604158361-1319552831=:86319
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

http://www.bbc.co.uk/=0A=0APeter, is that link black at your end?
16 parrots and reproducing fast!
http://www.petersparrots.com

26. October 2011, 03:54:48

burnout426

Posts: 13202

Originally posted by hucker:

Content-Type: text/plain;



That's a text/plain part. Need to see the markup in the text/html part of the message (unless you have "view -> display -> prefer plain text" set and you're saying the text/plain link isn't being linkified by Opera because of the line feeds).

It'd be best if you have an mbs file (ctrl + s the message) for the message so I can import it and play with it to see for sure. Otherwise, I have to hand-code an mbs file and guess at things that might be in the message that'd cause the problem.

For example, I created this mbs file:

From 
Subject: Test
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

http://www.bbc.co.uk/=0A=0APeter, is that link black at your end?

(there needs to be a blank line in the after the http line in your text editor before you save)

and imported it. The link is clickable no problem. But, that's text/plain. For a text/html part, the markup for the link should be like this:

<a href="http://www.bbc.co.uk/">http://www.bbc.co.uk/</a>

(only quoted-printable-encoded instead)

26. October 2011, 10:14:53

hucker

Posts: 1416

Here's the whole thing (don't know how or if you can attach files in here, so I uploaded it elsewhere):

http://petersphotos.com/temp/BBC%20link
16 parrots and reproducing fast!
http://www.petersparrots.com

26. October 2011, 11:00:05

burnout426

Posts: 13202

Originally posted by hucker:

(don't know how or if you can attach files in here, so I uploaded it elsewhere)



You can upload files to http://my.opera.com/hucker/files/ and then post links to them on your posts.

Originally posted by hucker:

http://petersphotos.com/temp/BBC%20link



O.K. The markup for the HTML part is:

<html>
    <body>
        <div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:14pt">http://www.bbc.co.uk/

Peter, is that link black at your end?......Steve?
</div>
    </body>
</html>


As you can see, there's no <a> element. It just has the link as text. And, the reason Opera doesn't linkify text links in web pages is because if you have:

<a href="http://example.com/>http://example.com/</a>


and Opera were to linkify text links, the link in the textContent of the <a> element, would turn into:

<a href="http://example.com/>http://example.com/</a>


and you'd get:

<a href="http://example.com/><a href="http://example.com/>http://example.com/</a></a>


in the source of the message body that's displayed.

In short, linkifying text links in web pages can cause link text itself to be linkifed.

Now, it should be possible for Opera to run through the document and only linkify text links that are outside <a> elements and are part of the textContent of other elements. But, Opera doesn't do that, probably because it'd make things more complicated. But, I don't think it'd be too hard for Opera to do if enough users want it.

26. October 2011, 13:05:51

hucker

Posts: 1416

Just sent myself an html email and Opera put an <a> in. So I assume the real blame lies with his email program.
16 parrots and reproducing fast!
http://www.petersparrots.com

Forums » Opera for Windows/Mac/Linux » Opera mail, chat and news