AquaMail Forum
English - Android => How do I... => Topic started by: paulkatto on December 02, 2012, 06:19:51 pm
-
it seems as if links are not higlighted within text mails. I believe this happens only in plain text mails (html mail style links work though). Would be nice if links would be clcikable in text mails as well!
Paul
-
Paul,
In general, they are, the app searches for links and uses HTML <a>'s to make them clickable.
Does your link have any unusual characters? I'm thinking my regular expression may be not handling some cases.
Simple links ("http://www.foo.bar") should work through, I know they do for me, can you check that too, so we know what we're dealing with?
-
mh... looking at it a little bit closer, it's html and even yahoo mail does not show it as a clickable link (MS exchange does though).
Can't attach the mail source here ("not allowed to post external links"), take a look at the text file attachment, hope that works.
Cheers,
Paul
-
Thanks for the message.
Yes, it's HTML, and the "http://<blah>" is there, but there is no <a> element.
The sending app should have wrapped the link in an <a>...
-
this is a mail coming from hotmail, don't know what the sender did wrong :)
-
Ok, tried this with my Hotmail account.
There are two ways to insert links.
One is to just type them in, this does not wrap the link in the appropriate HTML markup "<a>", so it just stays plain text, and is not clickable in AquaMail.
The other is to use the "link" icon in the tool bar. This inserts an anchor "<a>" which is then clickable.
I believe Hotmail should scan for and convert all links, but...
...I'll see if I can make the app detect links without an enclosing anchor and highlight them.
-
...I'll see if I can make the app detect links without an enclosing anchor and highlight them.
As an option please. :P
-
First of all, thank you for the great app!
I have one suggestion though. Can you please include square brackets in the set of allowed URL characters?
I have a plain-text e-mail with the following URL (slashes inverted to trick the forum's URL filter): http:\\www.paczkomaty.pl/sledzenie_paczki,34.html?package[1]=631043050380388019904447. The link is detected but the part starting with [1] is excluded, while the only thing that actually should be excluded is the dot at the end.
RoundCube for example handles this correctly.
-
Hey, just downloaded the latest update and there is the html higlhlighting feature! Very nice, well done and thanks for hacking it in!
Paul
-
Cool.
Those who say that HTML can't be parsed with regular expressions are obviously wrong :)
( I know, I know, this is sooo wrong.... .will work towards a better parser.... to highlight phone numbers.... at some point... )