kpimutils
email.h
Go to the documentation of this file.
80 };
QString decodeMailtoUrl(const KUrl &mailtoUrl)
Extracts the mailbox out of the mailto: URL.
KUrl encodeMailtoUrl(const QString &mailbox)
Creates a valid mailto: URL from the given mailbox.
bool compareEmail(const QString &email1, const QString &email2, bool matchName)
Compare two email addresses.
QString normalizedAddress(const QString &displayName, const QString &addrSpec, const QString &comment=QString())
Returns a normalized address built from the given parts.
QString quoteNameIfNecessary(const QString &str)
Add quote characters around the given string if it contains a character that makes that necessary,...
QString firstEmailAddress(const QString &addresses)
This is an overloaded member function, provided for convenience.
bool extractEmailAddressAndName(const QString &aStr, QString &mail, QString &name)
Return email address and name from string.
QString extractEmailAddress(const QString &address)
This is an overloaded member function, provided for convenience.
QString toIdn(const QString &addrSpec)
Encodes the domain part of the given addr-spec in punycode if it's an IDN.
QString normalizeAddressesAndDecodeIdn(const QString &addresses)
Normalizes all email addresses in the given list and decodes all IDNs.
QString normalizeAddressesAndEncodeIdn(const QString &str)
Normalizes all email addresses in the given list and encodes all IDNs in punycode.
QString fromIdn(const QString &addrSpec)
Decodes the punycode domain part of the given addr-spec if it's an IDN.
EmailParseResult isValidAddress(const QString &aStr)
Validates an email address in the form of "Joe User" joe@example.org.
Definition: email.cpp:315
EmailParseResult isValidAddressList(const QString &aStr, QString &badAddr)
Validates a list of email addresses, and also allow aliases and distribution lists to be expanded bef...
Definition: email.cpp:522
QStringList splitAddressList(const QString &aStr)
Split a comma separated list of email addresses.
Definition: email.cpp:45
EmailParseResult splitAddress(const QString &address, QString &displayName, QString &addrSpec, QString &comment)
This is an overloaded member function, provided for convenience.
Definition: email.cpp:296
QString simpleEmailAddressErrorMsg()
Returns a i18n string to be used in msgboxes.
QString emailParseResultToString(EmailParseResult errorCode)
Translate the enum errorcodes from emailParseResult into i18n'd strings that can be used for msg boxe...
Definition: email.cpp:545
bool isValidSimpleAddress(const QString &aStr)
Validates an email address in the form of joe@example.org.
Definition: email.cpp:609
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Thu Jul 22 2021 00:00:00 by doxygen 1.9.1 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2021 The KDE developers.
Generated on Thu Jul 22 2021 00:00:00 by doxygen 1.9.1 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.