Commit 5765ecd1 authored by Laurent Montel's avatar Laurent Montel 😁

Fix error when we send info to attendees

parent 18d49cfd
...@@ -91,9 +91,9 @@ void MailClient::mailAttendees(const KCalCore::IncidenceBase::Ptr &incidence, ...@@ -91,9 +91,9 @@ void MailClient::mailAttendees(const KCalCore::IncidenceBase::Ptr &incidence,
// Optional Participants and Non-Participants are copied on the email // Optional Participants and Non-Participants are copied on the email
if (a->role() == KCalCore::Attendee::OptParticipant || if (a->role() == KCalCore::Attendee::OptParticipant ||
a->role() == KCalCore::Attendee::NonParticipant) { a->role() == KCalCore::Attendee::NonParticipant) {
ccList << a->fullName(); ccList << a->email();
} else { } else {
toList << a->fullName(); toList << a->email();
} }
} }
if (toList.isEmpty() && ccList.isEmpty()) { if (toList.isEmpty() && ccList.isEmpty()) {
...@@ -204,8 +204,6 @@ void MailClient::send(const KCalCore::IncidenceBase::Ptr &incidence, ...@@ -204,8 +204,6 @@ void MailClient::send(const KCalCore::IncidenceBase::Ptr &incidence,
if (to.isEmpty()) { if (to.isEmpty()) {
to = from; to = from;
} }
to = KEmailAddress::extractEmailAddress(
KEmailAddress::normalizeAddressesAndEncodeIdn(to));
qCDebug(AKONADICALENDAR_LOG) << "\nFrom:" << from qCDebug(AKONADICALENDAR_LOG) << "\nFrom:" << from
<< "\nTo:" << to << "\nTo:" << to
<< "\nCC:" << cc << "\nCC:" << cc
......
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