Messagelib
messagefactoryng.h
44 * Contains various factory methods for creating new messages such as replies, MDNs, forwards, etc.
50 /// Small helper structure which encapsulates the KMime::Message created when creating a reply, and
84 [[nodiscard]] QPair<KMime::Message::Ptr, QList<KMime::Content *>> createAttachedForward(const Akonadi::Item::List &items = Akonadi::Item::List());
114 @param s See docs for KMime::MDN::SendingMode (in KMail, use MDNAdvideDialog to ask the user for this parameter)
117 @return The notification message or 0, if none should be sent, as well as the state of the MDN operation.
135 [[nodiscard]] QPair<KMime::Message::Ptr, KMime::Content *> createForwardDigestMIME(const Akonadi::Item::List &items);
230 MESSAGECOMPOSER_NO_EXPORT void slotCreateReplyDone(const KMime::Message::Ptr &msg, bool replyAll);
238 [[nodiscard]] MESSAGECOMPOSER_NO_EXPORT QString replaceHeadersInString(const KMime::Message::Ptr &msg, const QString &s);
241 MESSAGECOMPOSER_NO_EXPORT KMime::Content *createForwardAttachmentMessage(const KMime::Message::Ptr &fwdMsg);
qint64 Id
QList< Item > List
QSharedPointer< Message > Ptr
void createReplyAsync()
Create a new message that is a reply to this message, filling all required header fields with the pro...
Definition messagefactoryng.cpp:119
static bool MDNRequested(const KMime::Message::Ptr &msg)
When creating MDNs, the user needs to be asked for confirmation in specific cases according to RFC 22...
Definition messagefactoryng.cpp:785
void setIdentityManager(KIdentityManagementCore::IdentityManager *ident)
Set the identity manager to be used when creating messages.
Definition messagefactoryng.cpp:745
static bool MDNMDNUnknownOption(const KMime::Message::Ptr &msg)
If the MDN headers contain options that KMail can't parse.
Definition messagefactoryng.cpp:865
void setFolderIdentity(uint folderIdentityId)
Set the identity that is set for the folder in which the given message is.
Definition messagefactoryng.cpp:775
void setTemplate(const QString &templ)
Set the template to be used when creating the reply.
Definition messagefactoryng.cpp:765
KMime::Message::Ptr createMDN(KMime::MDN::ActionMode a, KMime::MDN::DispositionType d, KMime::MDN::SendingMode s, int mdnQuoteOriginal=0, const QList< KMime::MDN::DispositionModifier > &m=QList< KMime::MDN::DispositionModifier >())
Create a new message that is a MDN for this message, filling all required fields with proper values.
Definition messagefactoryng.cpp:589
QPair< KMime::Message::Ptr, KMime::Content * > createForwardDigestMIME(const Akonadi::Item::List &items)
Create a new forwarded MIME digest.
Definition messagefactoryng.cpp:695
void setQuote(bool quote)
Whether to quote the original message in the reply.
Definition messagefactoryng.cpp:760
KMime::Message::Ptr createRedirect(const QString &toStr, const QString &ccStr=QString(), const QString &bccStr=QString(), int transportId=-1, const QString &fcc=QString(), int identity=-1)
Create a new message that is a redirect to this message, filling all required header fields with the ...
Definition messagefactoryng.cpp:447
static bool MDNReturnPathEmpty(const KMime::Message::Ptr &msg)
If sending an MDN requires confirmation due to discrepancy between MDN header and Return-Path header.
Definition messagefactoryng.cpp:819
QPair< KMime::Message::Ptr, QList< KMime::Content * > > createAttachedForward(const Akonadi::Item::List &items=Akonadi::Item::List())
Create a forward from the given list of messages, attaching each message to be forwarded to the new f...
Definition messagefactoryng.cpp:357
KMime::Message::Ptr createDeliveryReceipt()
Create a new message that is a delivery receipt of this message, filling required header fields with ...
Definition messagefactoryng.cpp:559
void setSelection(const QString &selection)
Set the selection to be used to base the reply on.
Definition messagefactoryng.cpp:755
void setMailingListAddresses(const KMime::Types::Mailbox::List &listAddresses)
Set extra mailinglist addresses to send the created message to.
Definition messagefactoryng.cpp:770
static bool MDNConfirmMultipleRecipients(const KMime::Message::Ptr &msg)
If sending an MDN requires confirmation due to multiple addresses.
Definition messagefactoryng.cpp:799
void createForwardAsync()
Create a new message that is a forward of this message, filling all required header fields with the p...
Definition messagefactoryng.cpp:296
void putRepliesInSameFolder(Akonadi::Item::Id parentColId=-1)
Whether or not to put the reply to a message in the same folder as the message itself.
Definition messagefactoryng.cpp:780
void setReplyStrategy(MessageComposer::ReplyStrategy replyStrategy)
Set the reply strategy to use.
Definition messagefactoryng.cpp:750
Simple interface that both EncryptJob and SignEncryptJob implement so the composer can extract some e...
Definition attachmentcontrollerbase.h:27
QObject(QObject *parent)
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
QObject * parent() const const
Small helper structure which encapsulates the KMime::Message created when creating a reply,...
Definition messagefactoryng.h:52
bool replyAll
If true, the "reply all" template was used, otherwise the normal reply.
Definition messagefactoryng.h:54
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Feb 21 2025 11:47:08 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Feb 21 2025 11:47:08 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.