Use the chosen organizer identity when emailing attendees
ClosedPublic

Authored by dfaure on Jan 10 2018, 12:01 PM.

Details

Summary

When using multiple identities, and creating a new event with attendees,
the identity selected as organizer should be used in order to use the corresponding Sent folder.

Of course when editing an event created by someone else, this lookup will fail, and we'll
fall back to the global korganizer setting instead, as before. Hmm, maybe we should look up
which identity of ours is an attendee? Not sure about the use case though, probably only
shared calendar folders.

Test Plan

Created an event with a non-default identity, invited someone else,
now the mail is stored in the correct Sent folder for that identity.

Diff Detail

Repository
R170 Akonadi Calendar
Branch
Applications/17.12
Lint
No Linters Available
Unit
No Unit Test Coverage
dfaure created this revision.Jan 10 2018, 12:01 PM
Restricted Application added a project: KDE PIM. · View Herald TranscriptJan 10 2018, 12:01 PM
dfaure requested review of this revision.Jan 10 2018, 12:01 PM
mlaurent accepted this revision.Jan 10 2018, 12:21 PM

Otherwise it seems a good fix.
+2

src/mailscheduler_p.cpp
67

no sure that it's really necessary this assert as we already have this assert + if(!incidence) return in each method.

This revision is now accepted and ready to land.Jan 10 2018, 12:21 PM
dfaure closed this revision.Jan 10 2018, 12:31 PM