Messagelib
mailinglist.cpp
21static QString check_sender(const KMime::Message::Ptr &message, QByteArray &headerName, QString &headerValue)
48static QString check_x_beenthere(const KMime::Message::Ptr &message, QByteArray &headerName, QString &headerValue)
66static QString check_delivered_to(const KMime::Message::Ptr &message, QByteArray &headerName, QString &headerValue)
72 if (header.isNull() || header.left(13) != QLatin1StringView("mailing list") || header.indexOf(QLatin1Char('@')) == -1) {
83static QString check_x_mailing_list(const KMime::Message::Ptr &message, QByteArray &headerName, QString &headerValue)
109static QString check_list_id(const KMime::Message::Ptr &message, QByteArray &headerName, QString &headerValue)
137static QString check_list_post(const KMime::Message::Ptr &message, QByteArray &headerName, QString &headerValue)
161static QString check_mailing_list(const KMime::Message::Ptr &message, QByteArray &headerName, QString &headerValue)
183static QString check_x_loop(const KMime::Message::Ptr &message, QByteArray &headerName, QString &headerValue)
206static QString check_x_ml_name(const KMime::Message::Ptr &message, QByteArray &headerName, QString &headerValue)
329QString MailingList::name(const KMime::Message::Ptr &message, QByteArray &headerName, QString &headerValue)
369 return other.features() == d->mFeatures && other.handler() == d->mHandler && other.postUrls() == d->mPostUrls && other.subscribeUrls() == d->mSubscribeUrls
370 && other.unsubscribeUrls() == d->mUnsubscribeUrls && other.helpUrls() == d->mHelpUrls && other.archiveUrls() == d->mArchiveUrls
371 && other.ownerUrls() == d->mOwnerUrls && other.archivedAtUrls() == d->mArchivedAtUrls && other.id() == d->mId;
587 d->mHandler = static_cast<MailingList::Handler>(group.readEntry("MailingListHandler", static_cast<int>(MailingList::KMail)));
589 d->mPostUrls = QUrl::fromStringList(group.readEntry("MailingListPostingAddress", QStringList()));
590 d->mSubscribeUrls = QUrl::fromStringList(group.readEntry("MailingListSubscribeAddress", QStringList()));
591 d->mUnsubscribeUrls = QUrl::fromStringList(group.readEntry("MailingListUnsubscribeAddress", QStringList()));
592 d->mArchiveUrls = QUrl::fromStringList(group.readEntry("MailingListArchiveAddress", QStringList()));
593 d->mOwnerUrls = QUrl::fromStringList(group.readEntry("MailingListOwnerAddress", QStringList()));
void deleteEntry(const char *key, WriteConfigFlags pFlags=Normal)
void writeEntry(const char *key, const char *value, WriteConfigFlags pFlags=Normal)
QString readEntry(const char *key, const char *aDefault=nullptr) const
A class to extract information about mailing lists from emails.
Definition mailinglist.h:32
void setHelpUrls(const QList< QUrl > &urls)
Sets the list of List-Help urls.
Definition mailinglist.cpp:439
static MailingList detect(const KMime::Message::Ptr &message)
Extracts the information about a mailing list from the given message.
Definition mailinglist.cpp:290
QList< QUrl > archiveUrls() const
Returns the list of List-Archive urls.
Definition mailinglist.cpp:466
void setHandler(Handler handler)
Sets the handler for the mailing list.
Definition mailinglist.cpp:381
void setUnsubscribeUrls(const QList< QUrl > &urls)
Sets the list of List-Unsubscribe urls.
Definition mailinglist.cpp:423
void writeConfig(KConfigGroup &group) const
Saves the configuration for the mailing list to the config group.
Definition mailinglist.cpp:519
void setArchiveUrls(const QList< QUrl > &urls)
Sets the list of List-Archive urls.
Definition mailinglist.cpp:455
void setArchivedAtUrls(const QList< QUrl > &url)
Sets the Archived-At url.
Definition mailinglist.cpp:487
void setSubscribeUrls(const QList< QUrl > &urls)
Sets the list of List-Subscribe urls.
Definition mailinglist.cpp:407
Features features() const
Returns the features the mailing list supports.
Definition mailinglist.cpp:376
MailingList & operator=(const MailingList &other)
Overwrites this mailing list with an other mailing list.
Definition mailinglist.cpp:358
void readConfig(const KConfigGroup &group)
Restores the configuration for the mailing list from the config group.
Definition mailinglist.cpp:584
void setOwnerUrls(const QList< QUrl > &urls)
Sets the list of List-Owner urls.
Definition mailinglist.cpp:471
QList< QUrl > unsubscribeUrls() const
Returns the list of List-Unsubscribe urls.
Definition mailinglist.cpp:434
QList< QUrl > subscribeUrls() const
Returns the list of List-Subscribe urls.
Definition mailinglist.cpp:418
void setPostUrls(const QList< QUrl > &urls)
Sets the list of List-Post urls.
Definition mailinglist.cpp:391
Q_SCRIPTABLE Q_NOREPLY void start()
QAction * end(const QObject *recvr, const char *slot, QObject *parent)
void append(QList< T > &&value)
bool empty() const const
bool isEmpty() const const
void clear()
qsizetype indexOf(QChar ch, qsizetype from, Qt::CaseSensitivity cs) const const
bool isEmpty() const const
bool isNull() const const
QString left(qsizetype n) const const
qsizetype length() const const
QString mid(qsizetype position, qsizetype n) const const
void truncate(qsizetype position)
None
QList< QUrl > fromStringList(const QStringList &urls, ParsingMode mode)
QStringList toStringList(const QList< QUrl > &urls, FormattingOptions options)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:33:26 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:33:26 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.