Now all appointments in mailbox are taken into account

This commit is contained in:
Markus Däschler 2019-03-24 19:52:55 +01:00
parent 66679785d5
commit 3f1d5f3570

View File

@ -263,8 +263,12 @@ namespace Outlook2013TodoAddIn
{
if (Properties.Settings.Default.Accounts != null && Properties.Settings.Default.Accounts.Contains(store.DisplayName))
{
Outlook.Folder calFolder = store.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderCalendar) as Outlook.Folder;
appts.AddRange(this.RetrieveAppointmentsForFolder(calFolder));
Outlook.Folders rootFolders = store.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderCalendar).Parent.Folders as Outlook.Folders;
foreach (Outlook.Folder folder in rootFolders)
{
appts.AddRange(this.RetrieveAppointmentsForFolder(folder));
}
// TODO: Shared calendars?
}
}