Akonadi Mime
messagequeuejob.cpp
63 if ((addressAttribute.to().count() + addressAttribute.cc().count() + addressAttribute.bcc().count()) == 0) {
70 if (sentBehaviourAttribute.sentBehaviour() == SentBehaviourAttribute::MoveToCollection && !(sentBehaviourAttribute.moveToCollection().isValid())) {
75 } else if (sentBehaviourAttribute.sentBehaviour() == SentBehaviourAttribute::MoveToDefaultSentCollection) {
A job to request SpecialMailCollections.
Definition: specialmailcollectionsrequestjob.h:60
An Attribute that stores the action to execute after sending.
Definition: sentactionattribute.h:33
void setMessage(const KMime::Message::Ptr &message)
Sets the message to be sent.
Definition: messagequeuejob.cpp:165
const AKONADI_MIME_EXPORT char Queued[]
The flag for a message being marked as queued.
Definition: messageflags.cpp:22
void start() override
Creates the item and places it in the outbox.
Definition: messagequeuejob.cpp:170
Attribute determining how and when a message from the outbox should be dispatched.
Definition: dispatchmodeattribute.h:29
void result(KJob *job)
Attribute storing the From, To, Cc, Bcc addresses of a message.
Definition: addressattribute.h:28
@ MoveToDefaultSentCollection
Move the item to the default sent-mail collection.
Definition: sentbehaviourattribute.h:37
void setMimeType(const QString &mimeType)
QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
AKONADI_MIME_EXPORT void copyMessageFlags(KMime::Message &from, Akonadi::Item &to)
Copies all message flags from a KMime::Message object into an Akonadi::Item object.
Definition: messageflags.cpp:33
Attribute determining which transport to use for sending a message.
Definition: transportattribute.h:28
QString i18n(const char *text, const TYPE &arg...)
SentBehaviourAttribute & sentBehaviourAttribute()
Returns a reference to the sent behaviour attribute for this message.
Definition: messagequeuejob.cpp:155
void slotResult(KJob *) override
Called when the ItemCreateJob subjob finishes.
Definition: messagequeuejob.cpp:180
SentActionAttribute & sentActionAttribute()
Returns a reference to the sent action attribute for this message.
Definition: messagequeuejob.cpp:160
MessageQueueJob(QObject *parent=nullptr)
Creates a new MessageQueueJob.
Definition: messagequeuejob.cpp:127
TransportAttribute & transportAttribute()
Returns a reference to the transport attribute for this message.
Definition: messagequeuejob.cpp:150
KMime::Message::Ptr message() const
Returns the message to be sent.
Definition: messagequeuejob.cpp:135
void addAttribute(Attribute *attribute)
virtual void slotResult(KJob *job)
Attribute determining what will happen to a message after it is sent.
Definition: sentbehaviourattribute.h:28
Akonadi::AddressAttribute & addressAttribute()
Returns a reference to the address attribute for this message.
Definition: messagequeuejob.cpp:145
DispatchModeAttribute & dispatchModeAttribute()
Returns a reference to the dispatch mode attribute for this message.
Definition: messagequeuejob.cpp:140
bool isValid() const
void emitResult()
virtual QString errorString() const
int error() const
void setFlag(const QByteArray &name)
QString message
void setPayload(const T &p)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Dec 5 2023 04:11:20 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Dec 5 2023 04:11:20 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.