On 03/23/2019 04:15:38 PM Sat, Jack via balsa-list wrote:
Question - is this a bug in balsa, or in one of the underlying libraries, or is it just an unfortunately side effect of trying to find URLs in plain text. I have received (as an example - it happens at a non-trivial rate) a message (plain text only) which includes the following line: https://bugs.kde.org/show_bug.cgi?id=405506. Could someone familiar with craft help me with this one. Unfortunately, when balsa displays the message, the URL it links to includes that trailing period, so in this case leads to an error, as "405506." is indeed not a valid bug number. So - where in the process of displaying plain text, is a URL detected and turned into a clickable link? I somehow think I have brought this up in the past, but can't currently find any reference. I do, however, find lots of posts about this issue, with no consistent conclusions. The most useful suggestions are to reword the sentence in the first place, but that's obviously too late in my case. The period is indeed a legitimate character in a URL, but not likely included when followed by whitespace.
You started a thread[0] on the issue last year. Albrecht sent a patch that changes the regular expression so that a trailing period is not matched, but it was never incorporated into master; I plan to rectify that. That still leaves comma, semi-colon, colon, and question-mark, all of which could plausibly be punctuation rather than part of the URL, but I've never seen a complaint about any of those. Albrecht's patch could easily be extended if the need were to arise. Peter [0] https://mail.gnome.org/archives/balsa-list/2018-July/msg00000.html
Attachment:
pgpTs6Me39PBJ.pgp
Description: PGP signature