[PATCH] reduce false positives of mailto: link detection
Ingo Klöcker
kloecker at kde.org
Fri Mar 25 13:08:28 GMT 2005
On Friday 25 March 2005 11:53, Martijn Klingens wrote:
> On Friday 25 March 2005 00:42, Ingo Klöcker wrote:
> > The patch looks good but is '_' really allowed in actual domain
> > names?
>
> No, it's not. However, Windows 200x DNS servers usually allow them
> for compatibility with NT 4. And of course they are used in service
> discovery through e.g. MDNS.
But I guess they never occur as domain part of an email address, right?
> > Moreover, should we allow non-ASCII chars in domain names so that
> > we can identify email addresses with IDNs? Or should we better
> > ignore non-ASCII chars with regard to the homograph problem?
>
> I don't know... If it's possible to support IDN without the homograph
> problem I'd say we want it, but I don't know how the whole homograph
> thing exactly works, so I can't really tell.
Depending on the font mail at kde.org and mail at kdе.org look the same. OTOH,
(almost) the same problem exists with mail at spiegel.de and
mail at spiegeI.de.
Hmm, we already make email addresses and URLs (e.g.
https://secure.kdе.org) with IDNs clickable. Email addresses with IDNs
don't work correctly though while URLs with IDNs work.
How should we proceed?
a) Don't highlight any email addresses/URLs with non-ASCII chars in the
domain name?
b) Only highlight email addresses/URLs with IDNs for a whitelist of TLDs
(as in Konqueror)?
c) Highlight all email addresses/URLs, but show the ACE-encoded domain
in the status bar (and probably also in a tooltip) for the bad TLDs?
Since this affects all apps which automatically highlight email
addresses/URLs I cc'ed kde-core-devel.
Regards,
Ingo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20050325/5cb621d7/attachment.sig>
-------------- next part --------------
_______________________________________________
KMail developers mailing list
KMail-devel at kde.org
https://mail.kde.org/mailman/listinfo/kmail-devel
More information about the kde-core-devel
mailing list