Email IDN (punycode) handling
Function Documentation
| QString KPIMUtils::fromIdn |
( |
const QString & |
addrSpec |
) |
|
Decodes the punycode domain part of the given addr-spec if it's an IDN.
- Parameters:
-
| addrSpec | a pure 7-bit email address (addr-spec in RFC2822) |
- Returns:
- the email address with Unicode domain
Definition at line 917 of file email.cpp.
| QString KPIMUtils::normalizeAddressesAndDecodeIdn |
( |
const QString & |
addresses |
) |
|
Normalizes all email addresses in the given list and decodes all IDNs.
- Parameters:
-
| addresses | a list of email addresses with punycoded IDNs |
- Returns:
- the email addresses in normalized form with Unicode IDNs
Definition at line 949 of file email.cpp.
| QString KPIMUtils::normalizeAddressesAndEncodeIdn |
( |
const QString & |
str |
) |
|
Normalizes all email addresses in the given list and encodes all IDNs in punycode.
- Parameters:
-
| str | a list of email addresses |
- Returns:
- the email addresses in normalized form
Definition at line 987 of file email.cpp.
| QString KPIMUtils::toIdn |
( |
const QString & |
addrSpec |
) |
|
Encodes the domain part of the given addr-spec in punycode if it's an IDN.
- Parameters:
-
| addrSpec | a pure email address with Unicode domain |
- Returns:
- the email address with domain in punycode
Definition at line 933 of file email.cpp.
|