[kmail2] [Bug 358049] URLs that end in . or ? aren't parsed correctly

Erik Quaeghebeur via KDE Bugzilla bugzilla_noreply at kde.org
Mon May 23 09:56:07 BST 2016


https://bugs.kde.org/show_bug.cgi?id=358049

Erik Quaeghebeur <kdebugs at equaeghe.nospammail.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kdebugs at equaeghe.nospammail
                   |                            |.net

--- Comment #3 from Erik Quaeghebeur <kdebugs at equaeghe.nospammail.net> ---
(In reply to kdex from comment #2)
> No; then the URI wouldn't *end* in the question mark.

Clearly, the parsing code needs to take into account both what valid URLs are
*and* what people type in mails. When a URL comes at the end of a sentence,
people write punctuation after it, such as a period and a question mark. So if
nothing comes after that, i.e., there is white space or a line break, the most
likely situation is that those symbols are punctuation and not part of the URL,
although they could be. So the question is, do those user names in URLs you
mention end with a period?

I tested the following (in 4.14.10):

http://example.com/whatever.
http://example.com/whatever. you
http://example.com/whatever.you

http://example.com/whatever?
http://example.com/whatever? q
http://example.com/whatever?q

In both cases, the first two links in KMail end before the punctuation and the
last one includes the punctuation and what follows. (So, FWIW, I would say this
issue can be CONFIRMED.) This seems a reasonable choice to me. I guess there
need to be a sufficient number of URLs in the wild ending with punctuation
symbols for it to counteract the argument that these symbols are usually not
part of URLs in email messages.

I suggest closing as WONTFIX based on that argument.

-- 
You are receiving this mail because:
You are the assignee for the bug.



More information about the Kdepim-bugs mailing list