Commit 2fbc490b authored by Laurent Montel's avatar Laurent Montel 😁

Fix Bug 362625 - Syntax error on sending mails to participants added to an appointment

FIXED-IN: 5.6.0
BUG: 362625
BUG: 352228
parent ff7d17ed
......@@ -63,7 +63,7 @@ void IndividualMessageQueueJob::start()
}
if (!attendeesAutoTo.isEmpty() || !attendeesAutoCc.isEmpty()
|| !addressAttribute().bcc().isEmpty()) {
startQueueJob(attendeesAutoTo, attendeesAutoCc);
startQueueJob(attendeesAutoTo, addressAttribute().to(), attendeesAutoCc, addressAttribute().cc());
}
QStringList attendeesComposerTo, attendeesComposerCc;
......@@ -85,11 +85,11 @@ void IndividualMessageQueueJob::start()
}
}
void IndividualMessageQueueJob::startQueueJob(const QStringList &to, const QStringList &cc)
void IndividualMessageQueueJob::startQueueJob(const QStringList &messageTo, const QStringList &to, const QStringList &messageCc, const QStringList &cc)
{
KMime::Message::Ptr msg(message());
msg->to()->fromUnicodeString(to.join(QStringLiteral(", ")), "utf-8");
msg->cc()->fromUnicodeString(cc.join(QStringLiteral(", ")), "utf-8");
msg->to()->fromUnicodeString(messageTo.join(QStringLiteral(", ")), "utf-8");
msg->cc()->fromUnicodeString(messageCc.join(QStringLiteral(", ")), "utf-8");
msg->assemble();
mQueueJob = new MailTransport::MessageQueueJob(this);
......
......@@ -44,7 +44,7 @@ public:
void start() override;
private:
void startQueueJob(const QStringList &to, const QStringList &cc);
void startQueueJob(const QStringList &messageTo, const QStringList &to, const QStringList &messageCc, const QStringList &cc);
void startComposerJob(const QStringList &to, const QStringList &cc);
void handleJobFinished(KJob *job);
KCalCore::Attendee::List mUpdate;
......
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