[GH-ISSUE #450] Color mapping - categories from default data file are used #1302

Open
opened 2026-03-14 00:57:07 +03:00 by kerem · 1 comment
Owner

Originally created by @matthias480 on GitHub (Apr 1, 2025).
Original GitHub issue: https://github.com/aluxnimm/outlookcaldavsynchronizer/issues/450

Hello!

First of all, thanks for this great software.
I use Outlook CalDav Synchronizer to sync my calendars between multiple devices.

Recently, I started using the color mapping feature for mapping Outlook category color to COLOR attribute.
On my PC it seems to work correctly, but on my notebook, where the data file with the calendars is not the default data file, the mapping does not work because the categories from the default one are used instead.

The fallback categories with the HTML color name are created in the default account and added to the event although the mappable category would exist in the data file of the calendar:

Image

Also the EventColorToCategoryMappings are created in the options.xml, which is not the case on my PC. Are they only created if there is no matching category and a fallback category is created?

<MapEventColorToCategory>true</MapEventColorToCategory>
<EventColorToCategoryMappings>
	<ColorCategoryMapping>
	  <HtmlColor>lightsteelblue</HtmlColor>
	  <PreferredCategory>lightsteelblue</PreferredCategory>
	</ColorCategoryMapping>
	<ColorCategoryMapping>
	  <HtmlColor>peachpuff</HtmlColor>
	  <PreferredCategory>peachpuff</PreferredCategory>
	</ColorCategoryMapping>
</EventColorToCategoryMappings>

Another issue:

If I create an event on my notebook, I myself am added as attendee (see below). I am not sure if that is also because of the default data file issue, but it does not happen on my PC.

Event created on my PC:

BEGIN:VEVENT
CATEGORIES:Ferien
CLASS:PUBLIC
COLOR:lightsteelblue
DESCRIPTION: 
DTEND;TZID=W. Europe Standard Time:20250408T123000
DTSTAMP:20250401T150658Z
DTSTART;TZID=W. Europe Standard Time:20250408T120000
PRIORITY:5
SEQUENCE:0
SUMMARY:Test 1200
TRANSP:OPAQUE
UID:4368e79c-21e5-44e9-8f02-9cdeb369d65e
X-MICROSOFT-CDO-BUSYSTATUS:BUSY
END:VEVENT

Event created on my notebook:

BEGIN:VEVENT
ATTENDEE;PARTSTAT=NEEDS-ACTION;CN=my.email@address;ROLE=REQ-PARTI
 CIPANT;RSVP=TRUE;SCHEDULE-AGENT=CLIENT:mailto:my.email@address
CATEGORIES:Ferien
CLASS:PUBLIC
DESCRIPTION: 
DTEND;TZID=W. Europe Standard Time:20250408T133000
DTSTAMP:20250401T151124Z
DTSTART;TZID=W. Europe Standard Time:20250408T130000
PRIORITY:5
SEQUENCE:0
SUMMARY:Test 1300
TRANSP:OPAQUE
UID:23076f10-2e15-4551-8da7-5b1c8abcf6ae
X-MICROSOFT-CDO-BUSYSTATUS:BUSY
END:VEVENT

Thanks and best regards
Matthias

Originally created by @matthias480 on GitHub (Apr 1, 2025). Original GitHub issue: https://github.com/aluxnimm/outlookcaldavsynchronizer/issues/450 Hello! First of all, thanks for this great software. I use Outlook CalDav Synchronizer to sync my calendars between multiple devices. Recently, I started using the color mapping feature for mapping Outlook category color to COLOR attribute. On my PC it seems to work correctly, but on my notebook, where the data file with the calendars is not the default data file, the mapping does not work because the categories from the default one are used instead. The fallback categories with the HTML color name are created in the default account and added to the event although the mappable category would exist in the data file of the calendar: ![Image](https://github.com/user-attachments/assets/cc9ecc7b-ad63-4893-8052-681c922db00d) Also the `EventColorToCategoryMappings` are created in the options.xml, which is not the case on my PC. Are they only created if there is no matching category and a fallback category is created? ```xml <MapEventColorToCategory>true</MapEventColorToCategory> <EventColorToCategoryMappings> <ColorCategoryMapping> <HtmlColor>lightsteelblue</HtmlColor> <PreferredCategory>lightsteelblue</PreferredCategory> </ColorCategoryMapping> <ColorCategoryMapping> <HtmlColor>peachpuff</HtmlColor> <PreferredCategory>peachpuff</PreferredCategory> </ColorCategoryMapping> </EventColorToCategoryMappings> ``` ### Another issue: If I create an event on my notebook, I myself am added as attendee (see below). I am not sure if that is also because of the default data file issue, but it does not happen on my PC. **Event created on my PC:** ``` BEGIN:VEVENT CATEGORIES:Ferien CLASS:PUBLIC COLOR:lightsteelblue DESCRIPTION: DTEND;TZID=W. Europe Standard Time:20250408T123000 DTSTAMP:20250401T150658Z DTSTART;TZID=W. Europe Standard Time:20250408T120000 PRIORITY:5 SEQUENCE:0 SUMMARY:Test 1200 TRANSP:OPAQUE UID:4368e79c-21e5-44e9-8f02-9cdeb369d65e X-MICROSOFT-CDO-BUSYSTATUS:BUSY END:VEVENT ``` <img src="https://github.com/user-attachments/assets/1498573a-57eb-48b1-978d-bf2fe17bc5f5" width="280"> **Event created on my notebook:** ``` BEGIN:VEVENT ATTENDEE;PARTSTAT=NEEDS-ACTION;CN=my.email@address;ROLE=REQ-PARTI CIPANT;RSVP=TRUE;SCHEDULE-AGENT=CLIENT:mailto:my.email@address CATEGORIES:Ferien CLASS:PUBLIC DESCRIPTION: DTEND;TZID=W. Europe Standard Time:20250408T133000 DTSTAMP:20250401T151124Z DTSTART;TZID=W. Europe Standard Time:20250408T130000 PRIORITY:5 SEQUENCE:0 SUMMARY:Test 1300 TRANSP:OPAQUE UID:23076f10-2e15-4551-8da7-5b1c8abcf6ae X-MICROSOFT-CDO-BUSYSTATUS:BUSY END:VEVENT ``` <img src="https://github.com/user-attachments/assets/c6ab5c9a-9139-42a0-9a0b-aa397596c576" width="280"> Thanks and best regards Matthias
Author
Owner

@matthias480 commented on GitHub (Apr 2, 2025):

Issue content updated

<!-- gh-comment-id:2771870167 --> @matthias480 commented on GitHub (Apr 2, 2025): Issue content updated
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/outlookcaldavsynchronizer#1302
No description provided.