Minor issue with highlighting URLs in plain text e-mail
A thread in the Balsa
mailing list discussed the question of how to "linkify" a URL in a plain text e-mail part; specifically, how to handle trailing punctuation. A trailing period ('.'), for example, could be the last character of a valid URL, but more often marks the end of a sentence. Since 57c474ee, Balsa
excludes a trailing period from the matched URL.
Recently, a user of a different mail client noticed that an announcement contained URLs followed by commas as well as periods, which that client incorrectly included as parts of the corresponding URLs. Balsa
correctly highlights the one with a period, but not the one with a comma. In only excluding periods, Balsa
took a conservative step, which incidentally has never been reported as causing a problem by misidentifying a URL. This example suggests that we should go further, and also exclude trailing commas.
I have seen no instance in the wild where a trailing comma is actually part of the URL, Does anyone see a problem with excluding them?