Skip to content

Commit

Permalink
Merge pull request #79 from nylas/CUST-1216-add-calendar-color-for-ms…
Browse files Browse the repository at this point in the history
…ft-accounts-in-cc-evernote

calendar color support
  • Loading branch information
Bill authored Oct 5, 2022
2 parents a832d63 + 4997edd commit 2de8a5b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions exchangelib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from .configuration import Configuration
from .credentials import DELEGATE, IMPERSONATION, Credentials, OAuthCredentials, ServiceAccount
from .ewsdatetime import EWSDate, EWSDateTime, EWSTimeZone, UTC, UTC_NOW
from .extended_properties import ExtendedProperty, ExternId, Flag
from .extended_properties import ExtendedProperty, ExternId, Flag, CalendarColor
from .folders import Folder, FolderCollection, SHALLOW, DEEP
from .items import AcceptItem, TentativelyAcceptItem, DeclineItem, CalendarItem, CancelCalendarItem, Contact, \
DistributionList, Message, PostItem, Task
Expand Down Expand Up @@ -60,4 +60,4 @@ def close_connections():

############# Nylas Registered Extended Properties ###########
Message.register('flag', Flag)

Message.register('color', CalendarColor)
5 changes: 5 additions & 0 deletions exchangelib/extended_properties.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,3 +274,8 @@ class Flag(ExtendedProperty):
property_tag = 0x1090
property_type = 'Integer'


# Implementation of https://learn.microsoft.com/en-us/openspecs/exchange_server_protocols/ms-oxprops/1fdd4d65-8c85-4ea3-95c4-5d5f55e33eb8
class CalendarColor(ExtendedProperty):
property_tag = 0x6853
property_type = "Integer"

0 comments on commit 2de8a5b

Please sign in to comment.