• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdepimlibs-4.10.5 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 931 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 963 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 1001 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 947 of file email.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Sat Jul 13 2013 01:26:06 by doxygen 1.8.3.1 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

kdepimlibs-4.10.5 API Reference

Skip menu "kdepimlibs-4.10.5 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
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