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

kmail

  • KMail
  • Util
Functions
KMail::Util Namespace Reference

Functions

bool checkTransport (QWidget *w)
 
size_t crlf2lf (char *str, const size_t strLen)
 
bool handleClickedURL (const KUrl &url, const QSharedPointer< MailCommon::FolderCollection > &folder=QSharedPointer< MailCommon::FolderCollection >())
 
void lastEncryptAndSignState (bool &lastEncrypt, bool &lastSign, const KMime::Message::Ptr &msg)
 
bool mailingListArchives (const QSharedPointer< MailCommon::FolderCollection > &fd)
 
bool mailingListHelp (const QSharedPointer< MailCommon::FolderCollection > &fd)
 
bool mailingListPost (const QSharedPointer< MailCommon::FolderCollection > &fd)
 
KMime::Types::Mailbox::List mailingListsFromMessage (const Akonadi::Item &item)
 
bool mailingListsHandleURL (const KUrl::List &lst, const QSharedPointer< MailCommon::FolderCollection > &folder)
 
bool mailingListSubscribe (const QSharedPointer< MailCommon::FolderCollection > &fd)
 
bool mailingListUnsubscribe (const QSharedPointer< MailCommon::FolderCollection > &fd)
 
void migrateFromKMail1 ()
 
QColor misspelledColor ()
 
Akonadi::Item::Id putRepliesInSameFolder (const Akonadi::Item &item)
 
QColor quoteL1Color ()
 
QColor quoteL2Color ()
 
QColor quoteL3Color ()
 

Detailed Description

The Util namespace contains a collection of helper functions use in various places.

Function Documentation

bool KMail::Util::checkTransport ( QWidget *  w)

Test if all required settings are set.

Reports problems to user via dialogs and returns false. Returns true if everything is Ok.

size_t KMail::Util::crlf2lf ( char *  str,
const size_t  strLen 
)

Convert all sequences of "\r\n" (carriage return followed by a line feed) to a single "\n" (line feed).

The conversion happens in place. Returns the length of the resulting string.

Parameters
strThe string to convert.
strLenThe length of the string to convert.
Returns
The new length of the converted string.
bool KMail::Util::handleClickedURL ( const KUrl &  url,
const QSharedPointer< MailCommon::FolderCollection > &  folder = QSharedPointer<MailCommon::FolderCollection>() 
)

Handles a clicked URL, but only in case the viewer didn't handle it.

Currently only support mailto.

Definition at line 88 of file util.cpp.

void KMail::Util::lastEncryptAndSignState ( bool &  lastEncrypt,
bool &  lastSign,
const KMime::Message::Ptr &  msg 
)

Definition at line 185 of file util.cpp.

bool KMail::Util::mailingListArchives ( const QSharedPointer< MailCommon::FolderCollection > &  fd)

Definition at line 171 of file util.cpp.

bool KMail::Util::mailingListHelp ( const QSharedPointer< MailCommon::FolderCollection > &  fd)

Definition at line 178 of file util.cpp.

bool KMail::Util::mailingListPost ( const QSharedPointer< MailCommon::FolderCollection > &  fd)

Definition at line 150 of file util.cpp.

KMime::Types::Mailbox::List KMail::Util::mailingListsFromMessage ( const Akonadi::Item &  item)

Returns any mailing list post addresses set on the parent collection (the mail folder) of the item.

Definition at line 61 of file util.cpp.

bool KMail::Util::mailingListsHandleURL ( const KUrl::List &  lst,
const QSharedPointer< MailCommon::FolderCollection > &  folder 
)

Definition at line 125 of file util.cpp.

bool KMail::Util::mailingListSubscribe ( const QSharedPointer< MailCommon::FolderCollection > &  fd)

Definition at line 157 of file util.cpp.

bool KMail::Util::mailingListUnsubscribe ( const QSharedPointer< MailCommon::FolderCollection > &  fd)

Definition at line 164 of file util.cpp.

void KMail::Util::migrateFromKMail1 ( )

Definition at line 212 of file util.cpp.

QColor KMail::Util::misspelledColor ( )

Definition at line 191 of file util.cpp.

Akonadi::Item::Id KMail::Util::putRepliesInSameFolder ( const Akonadi::Item &  item)

Whether or not the mail item has the keep-reply-in-folder attribute set.

Definition at line 76 of file util.cpp.

QColor KMail::Util::quoteL1Color ( )

Definition at line 196 of file util.cpp.

QColor KMail::Util::quoteL2Color ( )

Definition at line 201 of file util.cpp.

QColor KMail::Util::quoteL3Color ( )

Definition at line 206 of file util.cpp.

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

KDE's Doxygen guidelines are available online.

kmail

Skip menu "kmail"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer
  • pimprint

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