KCodecs

Email IDN (punycode) handling

Functions

KCODECS_EXPORT QString KEmailAddress::fromIdn (const QString &addrSpec)
 
KCODECS_EXPORT QString KEmailAddress::normalizeAddressesAndDecodeIdn (const QString &addresses)
 
KCODECS_EXPORT QString KEmailAddress::normalizeAddressesAndEncodeIdn (const QString &str)
 
KCODECS_EXPORT QString KEmailAddress::toIdn (const QString &addrSpec)
 

Detailed Description

Function Documentation

◆ fromIdn()

QString KEmailAddress::fromIdn ( const QString & addrSpec)

Decodes the punycode domain part of the given addr-spec if it's an IDN.

Parameters
addrSpeca pure 7-bit email address (addr-spec in RFC2822)
Returns
the email address with Unicode domain

Definition at line 959 of file kemailaddress.cpp.

◆ normalizeAddressesAndDecodeIdn()

QString KEmailAddress::normalizeAddressesAndDecodeIdn ( const QString & addresses)

Normalizes all email addresses in the given list and decodes all IDNs.

Parameters
addressesa list of email addresses with punycoded IDNs
Returns
the email addresses in normalized form with Unicode IDNs

Definition at line 991 of file kemailaddress.cpp.

◆ normalizeAddressesAndEncodeIdn()

QString KEmailAddress::normalizeAddressesAndEncodeIdn ( const QString & str)

Normalizes all email addresses in the given list and encodes all IDNs in punycode.

Parameters
stra list of email addresses
Returns
the email addresses in normalized form

Definition at line 1025 of file kemailaddress.cpp.

◆ toIdn()

QString KEmailAddress::toIdn ( const QString & addrSpec)

Encodes the domain part of the given addr-spec in punycode if it's an IDN.

Parameters
addrSpeca pure email address with Unicode domain
Returns
the email address with domain in punycode

Definition at line 975 of file kemailaddress.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:59:08 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.