Skip to content

Commit

Permalink
These are actually distinguished folders.
Browse files Browse the repository at this point in the history
  • Loading branch information
Erik Cederstrand committed May 13, 2024
1 parent 1de9757 commit 138697e
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions exchangelib/folders/known_folders.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,11 @@ class ArchiveRecoverableItemsVersions(WellknownFolder):
supported_from = EXCHANGE_2010_SP1


class CalendarSearchCache(WellknownFolder):
DISTINGUISHED_FOLDER_ID = "calendarsearchcache"
CONTAINER_CLASS = "IPF.Appointment"


class Companies(WellknownFolder):
DISTINGUISHED_FOLDER_ID = "companycontacts"
CONTAINER_CLASS = "IPF.Contact.Company"
Expand Down Expand Up @@ -385,6 +390,11 @@ class PeopleConnect(WellknownFolder):
supported_from = EXCHANGE_2013


class PersonMetadata(WellknownFolder):
DISTINGUISHED_FOLDER_ID = "personmetadata"
CONTAINER_CLASS = "IPF.Contact"


class QedcDefaultRetention(WellknownFolder):
DISTINGUISHED_FOLDER_ID = "qedcdefaultretention"
supported_from = EXCHANGE_O365
Expand Down Expand Up @@ -547,10 +557,6 @@ class CalendarLogging(NonDeletableFolder):
}


class CalendarSearchCache(NonDeletableFolder):
CONTAINER_CLASS = "IPF.Appointment"


class CommonViews(NonDeletableFolder):
DEFAULT_ITEM_TRAVERSAL_DEPTH = ASSOCIATED
LOCALIZED_NAMES = {
Expand Down Expand Up @@ -652,10 +658,6 @@ class PassThroughSearchResults(NonDeletableFolder):
}


class PersonMetadata(NonDeletableFolder):
CONTAINER_CLASS = "IPF.Contact"


class PdpProfileV2Secured(NonDeletableFolder):
CONTAINER_CLASS = "IPF.StoreItem.PdpProfileSecured"

Expand Down Expand Up @@ -725,7 +727,6 @@ class WorkingSet(NonDeletableFolder):
AllTodoTasks,
Audits,
CalendarLogging,
CalendarSearchCache,
CommonViews,
ConversationSettings,
DefaultFoldersChangeHistory,
Expand All @@ -743,7 +744,6 @@ class WorkingSet(NonDeletableFolder):
OrganizationalContacts,
ParkedMessages,
PassThroughSearchResults,
PersonMetadata,
PdpProfileV2Secured,
Reminders,
RSSFeeds,
Expand All @@ -767,6 +767,7 @@ class WorkingSet(NonDeletableFolder):
AllItems,
AllPersonMetadata,
Calendar,
CalendarSearchCache,
Companies,
Conflicts,
Contacts,
Expand All @@ -790,6 +791,7 @@ class WorkingSet(NonDeletableFolder):
Outbox,
PeopleCentricConversationBuddies,
PeopleConnect,
PersonMetadata,
QedcDefaultRetention,
QedcLongRetention,
QedcMediumRetention,
Expand Down

0 comments on commit 138697e

Please sign in to comment.