Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit aaaa2b1f authored by Laurent Montel's avatar Laurent Montel 😁

USe identity settings

parent 4a2c3b3f
......@@ -321,9 +321,20 @@ void MailClient::send(const KCalCore::IncidenceBase::Ptr &incidence,
// Put the newly created item in the MessageQueueJob.
MailTransport::MessageQueueJob *qjob = mFactory->createMessageQueueJob(incidence, identity, this);
if (identity.disabledFcc()) {
qjob->sentBehaviourAttribute().setSentBehaviour(MailTransport::SentBehaviourAttribute::Delete);
} else {
const Akonadi::Collection sentCollection(identity.fcc().toLongLong());
if (sentCollection.isValid()) {
qjob->sentBehaviourAttribute().setSentBehaviour(MailTransport::SentBehaviourAttribute::MoveToCollection);
qjob->sentBehaviourAttribute().setMoveToCollection(sentCollection);
} else {
qjob->sentBehaviourAttribute().setSentBehaviour(
MailTransport::SentBehaviourAttribute::MoveToDefaultSentCollection);
}
}
qjob->transportAttribute().setTransportId(transportId);
qjob->sentBehaviourAttribute().setSentBehaviour(
MailTransport::SentBehaviourAttribute::MoveToDefaultSentCollection);
const QString unormalizedFrom = (transport && transport->specifySenderOverwriteAddress()) ?
transport->senderOverwriteAddress() : from;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment