• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepimlibs API Reference
  • KDE Home
  • Contact Us
 

kpimutils

Functions
Email IDN (punycode) handling

Functions

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

Detailed Description

Function Documentation

QString KPIMUtils::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 953 of file email.cpp.

QString KPIMUtils::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 985 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
stra list of email addresses
Returns
the email addresses in normalized form

Definition at line 1023 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
addrSpeca pure email address with Unicode domain
Returns
the email address with domain in punycode

Definition at line 969 of file email.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:37:25 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kpimutils

Skip menu "kpimutils"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • Modules
  • Related Pages

kdepimlibs API Reference

Skip menu "kdepimlibs API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal