Author Topic: The message subject gets url-parsed in the message header pane  (Read 3739 times)

disposable_bag

  • Newbie
  • *
  • Posts: 13
Hello,

Aqua Mail tries to parse strings like "1.Konzertmeister" in the message header pane within the message subject as URLs resulting in bogus HTTP links launching a web browser when accidently tapped. This happens quite often as people frequently omit a space after a dot. Actually, there are two issues:

1) The parser should react only to valid email addresses and ignore everything else;

2) The subject line should be exempt from parsing entirely as most results are false positives. A collapsed message header pane is very cramped, and filling this small space with long (bogus) links turns it virtually inoperable as the right side has to be avoided due to the star.

The same applies to the message header displayed using View --> Show Message Header. IMVHO the content of the header should not be URL-parsed at all (it was this way some time ago IIRC), as the majority of generated links are useless.

Thanks!

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: The message subject gets url-parsed in the message header pane
« Reply #1 on: June 17, 2015, 09:52:05 pm »
"1.Konzertmeister" treated as a link... I didn't believe my eyes at first, then tried it, and yep, shows as a link.

It's actually Android code making the decision here -- I only ask it to "detect and highlight stuff that might be clickable".

Will see if I can turn *some* of it off, keeping email address highlighting.
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: The message subject gets url-parsed in the message header pane
« Reply #2 on: June 17, 2015, 09:55:07 pm »
PS -- doesn't happen on 4.* devices, must be one of those new 5.0+ things. And yes, Android thinks it's a web link.
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

mikeone

  • Hero Member
  • *****
  • Posts: 2762
Re: The message subject gets url-parsed in the message header pane
« Reply #3 on: June 17, 2015, 11:22:57 pm »
"1.Konzertmeister" treated as a link... I didn't believe my eyes at first, then tried it, and yep, shows as a link.

It's actually Android code making the decision here -- I only ask it to "detect and highlight stuff that might be clickable".

Will see if I can turn *some* of it off, keeping email address highlighting.

Kostya just released a new version:
http://www.aqua-mail.com/forum/index.php?topic=3674


disposable_bag

  • Newbie
  • *
  • Posts: 13
Re: The message subject gets url-parsed in the message header pane
« Reply #4 on: July 27, 2015, 01:11:20 pm »
A very belated "thank you!" for this incredibly fast (again!) fix.

After reading a bit about android:autoLink and Linkify, I realise now, how wrong my description was :D