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)) if (Properties.Settings.Default.Accounts != null && Properties.Settings.Default.Accounts.Contains(store.DisplayName))
{ {
Outlook.Folder calFolder = store.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderCalendar) as Outlook.Folder; Outlook.Folders rootFolders = store.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderCalendar).Parent.Folders as Outlook.Folders;
appts.AddRange(this.RetrieveAppointmentsForFolder(calFolder)); foreach (Outlook.Folder folder in rootFolders)
{
appts.AddRange(this.RetrieveAppointmentsForFolder(folder));
}
// TODO: Shared calendars? // TODO: Shared calendars?
} }
} }