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) {
Attribute storing the From, To, Cc, Bcc addresses of a message.
Definition addressattribute.h:29
bool isValid() const
Attribute determining how and when a message from the outbox should be dispatched.
Definition dispatchmodeattribute.h:30
KMime::Message::Ptr message() const
Returns the message to be sent.
Definition messagequeuejob.cpp:135
DispatchModeAttribute & dispatchModeAttribute()
Returns a reference to the dispatch mode attribute for this message.
Definition messagequeuejob.cpp:140
Akonadi::AddressAttribute & addressAttribute()
Returns a reference to the address attribute for this message.
Definition messagequeuejob.cpp:145
void slotResult(KJob *) override
Called when the ItemCreateJob subjob finishes.
Definition messagequeuejob.cpp:180
void setMessage(const KMime::Message::Ptr &message)
Sets the message to be sent.
Definition messagequeuejob.cpp:165
TransportAttribute & transportAttribute()
Returns a reference to the transport attribute for this message.
Definition messagequeuejob.cpp:150
SentBehaviourAttribute & sentBehaviourAttribute()
Returns a reference to the sent behaviour attribute for this message.
Definition messagequeuejob.cpp:155
void start() override
Creates the item and places it in the outbox.
Definition messagequeuejob.cpp:170
MessageQueueJob(QObject *parent=nullptr)
Creates a new MessageQueueJob.
Definition messagequeuejob.cpp:127
SentActionAttribute & sentActionAttribute()
Returns a reference to the sent action attribute for this message.
Definition messagequeuejob.cpp:160
An Attribute that stores the action to execute after sending.
Definition sentactionattribute.h:34
Attribute determining what will happen to a message after it is sent.
Definition sentbehaviourattribute.h:29
@ MoveToDefaultSentCollection
Move the item to the default sent-mail collection.
Definition sentbehaviourattribute.h:37
A job to request SpecialMailCollections.
Definition specialmailcollectionsrequestjob.h:61
Attribute determining which transport to use for sending a message.
Definition transportattribute.h:29
KCompositeJob(QObject *parent=nullptr)
virtual void slotResult(KJob *job)
virtual QString errorString() const
void emitResult()
int error() const
void result(KJob *job)
KJob(QObject *parent=nullptr)
QSharedPointer< Message > Ptr
QString i18n(const char *text, const TYPE &arg...)
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
AKONADI_MIME_EXPORT const char Queued[]
The flag for a message being marked as queued.
Definition messageflags.cpp:22
QObject(QObject *parent)
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
QObject * parent() const const
void setFlag(Flag flag, bool enabled)
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:56:08 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:56:08 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.