Bug 72554 - Allow International Domain Names (e.g. Umlaut domains) in mail server names
Summary: Allow International Domain Names (e.g. Umlaut domains) in mail server names
Status: RESOLVED WAITINGFORINFO
Alias: None
Product: kmail
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-13 15:47 UTC by Peter Bittner
Modified: 2012-08-19 00:57 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Attempt at fixing the problem (1.64 KB, patch)
2005-08-15 04:24 UTC, Thiago Macieira
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Bittner 2004-01-13 15:47:58 UTC
Version:           1.5.4 (using KDE 3.1.4)
Installed from:     (testing/unstable)
Compiler:          gcc version 3.3.2 (Debian)
OS:          Linux (i686) release 2.4.23-1-686

Domain names with non-ASCII characters are coming!

Currently .com und .net Domains with special characters, e.g. German Umlauts, can be registered, .de and .at domains will follow in March.

A major problem, however, is that most e-mail clients disallow the specification of a domain name (i.e. mailserver) with non-ASCII characters in the network settings. (I only know of Ximian, for now, that doesn't do that.)

While this was intentious in the past it is now starting to be obsolete to disallow the input of non-ASCII characters! Please fix that quickly!

Thanks very much!
Peter

P.S.: KMail disallows the input of Umlauts here: Properties -> KMail Settings... -> Network -> Incoming (tab) -> Change... (button)  =>  Server (input field)
Comment 1 Thiago Macieira 2004-01-14 04:17:32 UTC
IDN support elsewhere in KDE is already done for KDE 3.2, so it's a simple bug of not allowing non-ASCII in that field. I've just tested for the sending field and it has worked fine with a testing server.

Confirmed in HEAD 20031222.
Comment 2 Marc Mutz 2004-01-16 10:36:28 UTC
This is no bug, and by far no simple one, sorry. It's a missing feature and thus a wish. Enter the ACE form for now or hope the best.
Comment 3 Thiago Macieira 2004-01-16 16:24:59 UTC
Marc: I meant the POP3 server name, not an e-mail address. As I said, the SMTP server configuration already works. From what I can tell, the only missing thing here is for the text-edit field to allow non-ASCII characters.
Comment 4 Thiago Macieira 2004-01-16 16:32:40 UTC
On e-mail addresses, KMail is currently RFC-2047 encoding. This one is I agree with you to be a new feature.
Comment 5 Ingo Klöcker 2004-01-31 19:05:49 UTC
@Thiago: How can we check whether the string the user entered is a valid server name, i.e. how do we check that conversion to punycode was successful?
Comment 6 Thiago Macieira 2004-01-31 22:03:27 UTC
The functions in namespace KIDNA (kdecore/kidna.h) will tell you that.

If a Unicode-hostname is valid, toAscii will return its ACE form; if it's invalid, it returns empty. This is what you should know.

You don't have to check if an ACE-encoded hostname is valid -- all ASCII-only hostnames are valid, provided they don't break STD 3 rules. toAscii and name resolution verify STD 3-compliance.

Anyways, this is not the case here. Just allow the full range of Unicode in the server name widget. If the user enters something that is invalid, it will be the same as entering a hostname that doesn't exist -- the lookup routines take care of that.
Comment 7 Thiago Macieira 2004-08-11 00:29:50 UTC
This is still present in KDE 3.3 rc2. May I remind you this affects Incoming mail servers only? Outgoing is fine.
Comment 8 Anders E. Andersen 2004-08-23 00:04:36 UTC
What you are talking about here is using an IDN server as incomming mail server in KMails network settings right?

May I ask if anyone is thinking about what needs to be done to actually send email to an IDN server. Should this be left up to the smtp server to handle or should some translation be done in KMail?

For the record kmail translates danish hostnames incorrectly. For instance andersa@ellenshøj.dk becomes andersa@=?iso-8859-1?q?ellensh=F8j=2Edk?= but should be andersa@xn--ellenshj-c5a.dk
Comment 9 Thiago Macieira 2004-08-23 00:11:08 UTC
No, let me repeat comment #3:
===
Marc: I meant the POP3 server name, not an e-mail address. As I said, the SMTP server configuration already works. From what I can tell, the only missing thing here is for the text-edit field to allow non-ASCII characters. 
===

The email destination address has to be properly translated, but that is not the issue of this bug report. It's just there because I can't type non-ASCII letters into the text-field, when the ioslave can already accept such names.
Comment 10 Anders E. Andersen 2004-08-23 13:08:05 UTC
Yeah.. That's also what I said.. Read the first one or two lines again. :)
Comment 11 Peter Bittner 2005-02-09 21:28:39 UTC
IDNs still do not work with KMail in KDE 3.3.

I tried sending a mail to a IDN e-mail address. KMail converts it like text to "recipient@iso-8859-15?q?whatever" instead of converting it to puny code internally (or whatever there is to do).

I think this is an important feature that is missing.

(For the german guys: GMX webmail can handle IDNs, why shouldn't KMail?)
Comment 12 Anders E. Andersen 2005-02-09 21:51:32 UTC
On Wednesday 09 February 2005 21:28, Peter Bittner wrote:
> I tried sending a mail to a IDN e-mail address. KMail converts it like text
> to "recipient iso-8859-15?q?whatever" instead of converting it to puny code
> internally (or whatever there is to do).

Actually, I think that particular problem belongs with bug #87836  - "Can't 
send mail to IDN hosts or domains".

> I think this is an important feature that is missing.

How about throwing some votes on those bugs then?

Anders

Comment 13 Peter Bittner 2005-02-11 18:58:29 UTC
I was about to close this bug since entering IDNs (e.g. Umlaut domains) in KMail works for the dialogs of Identities and Outgoing Mail Servers. (Read: Entering IDNs and sending mail as the *owner* of an IDN e-mail address works!)

The only thing that is still missing is modifying the 'Server' text field in the Incoming Mail Server dialog to allow IDNs to be entered. (KMail: Settings -> Configure KMail -> Network -> Incoming -> Change: 'Server' field)

When this will be fixed we can close this bug.

(Please refer to bug #87836 for inability to send e-mail *to* an IDN mail address recipient! - I was in error too, sorry for that.)
Comment 14 Thiago Macieira 2005-08-15 04:16:08 UTC
Still an issue, r449049.
Comment 15 Thiago Macieira 2005-08-15 04:24:41 UTC
Created attachment 12224 [details]
Attempt at fixing the problem

The attached patch solves this issue by removing the validator. Unfortunately,
with IDN, it's no longer possible to tell which letters are allowed. At most,
we'd be able to say which ones aren't.

Could this be a security issue? I don't know.
Comment 16 Anders E. Andersen 2005-08-15 08:49:34 UTC
How about doing a dns lookup on the host name?
Comment 17 Matt Douhan 2005-08-15 21:58:24 UTC
I think the way to solve this is to write an rfc compliant validator just as we have for email addresses, unless such a thing already exists elsewhere in KDE I mean it seems pretty general and not KMail specific to me. The validator I mean
Comment 18 Thiago Macieira 2005-08-15 22:18:54 UTC
Matt: this is not an email validator, but a simple hostname. I don't know anywhere  else in KDE code that does such validations.

It would be possible to construct a QValidator that uses Network::KResolver::normalizeDomain to validate -- but note that the validation can only happen after the user has finished typing because it might be an expensive one and partial hostnames may be invalid.
Comment 19 Matt Douhan 2005-08-16 22:25:51 UTC
I know it is not an email validator, but what I ment was that the validation is similar, and the QValidators sucks for this kind of validating since as you say partially typed addresses can still be valid later on, I am yet to find a way to fire a Qvalidator after typing stopped, I mean this char by char validation is just plain wrong in this case.

but it should not be to hard to validate on another event do you think? 
Comment 20 Thiago Macieira 2005-08-16 23:22:51 UTC
Yes, we could easily validate the hostnames typed when the Ok or Apply buttons are pressed.

But let me say again that nowhere else is this kind of validation done, including in KMail itself: the outgoing account dialog doesn't validate, so it has supported IDN all along.
Comment 21 Myriam Schweingruber 2012-08-18 08:21:42 UTC
Thank you for your feature request. Kmail1 is currently unmaintained so we are closing all wishes. Please feel free to reopen a feature request for Kmail2 if it has not already been implemented.
Thank you for your understanding.
Comment 22 Luigi Toscano 2012-08-19 00:57:36 UTC
Instead of creating a new feature request, please confirm here if the wishlist is still valid for kmail2.