Skip to content

Commit

Permalink
Merge pull request #107 from inovex/readme-update-filter
Browse files Browse the repository at this point in the history
  • Loading branch information
alxndr13 authored Jan 12, 2024
2 parents b43e18c + 89228f5 commit b7aef85
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 25 deletions.
52 changes: 28 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@ Should be self-explanatory. Configures the timeframe where to sync events. The
currently only implemented identifiers are `MonthStart` and `MonthEnd`.

```yaml
sync:
start:
identifier: MonthStart # 1st of the current month
offset: -1 # MonthStart -1 month (beginning of last month)
end:
identifier: MonthEnd # last day of the current month
sync:
start:
identifier: MonthStart # 1st of the current month
offset: -1 # MonthStart -1 month (beginning of last month)
end:
identifier: MonthEnd # last day of the current month
offset: +1 # MonthEnd +1 month (end of next month)
```
Expand All @@ -68,13 +68,13 @@ sync:
Example:
```yaml
source:
adapter:
type: "outlook_http"
calendar: "[base64-formatstring here]"
oAuth:
clientId: "[UUID-format string here]"
tenantId: "[UUID-format string here]"
source:
adapter:
type: "outlook_http"
calendar: "[base64-formatstring here]"
oAuth:
clientId: "[UUID-format string here]"
tenantId: "[UUID-format string here]"
```
Configures the Source Adapter, for the adapter configuration, check the
Expand All @@ -92,12 +92,12 @@ Example:
```yaml
sink:
adapter:
type: google
calendar: "target-calendar@group.calendar.google.com"
oAuth:
adapter:
type: google
calendar: "target-calendar@group.calendar.google.com"
oAuth:
clientId: "[google-oAuth-client-id]"
clientKey: "[google-oAuth-client-key]"
clientKey: "[google-oAuth-client-key]"
```
Configures the Sink Adapter, for the adapter configuration, check the
Expand All @@ -122,15 +122,15 @@ transformations:
- name: KeepReminders
- name: KeepTitle
- name: PrefixTitle
config:
config:
Prefix: "[Sync] "
- name: ReplaceTitle
config:
- name: ReplaceTitle
config:
NewTitle: "[synchronized appointment]"
# Do not use KeepAttendees when the Outlook Adapter is used as a sink. There is no way to suppress mail invitations
- name: KeepAttendees
config:
UseEmailAsDisplayName: true
- name: KeepAttendees
config:
UseEmailAsDisplayName: true
```

The transformers are applied in a specific order. The order is defined here:
Expand All @@ -149,6 +149,10 @@ filters:
- name: DeclinedEvents
# Events which cover the full day aren't synced
- name: AllDayEvents
# Events where the title matches the ExcludeRegexp (RE2 Regex) aren't synced
- name: RegexTitle
config:
ExcludeRegexp: ".*test"
```

# Cleaning Up
Expand Down
2 changes: 1 addition & 1 deletion example.sync.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ filters:
- name: DeclinedEvents
# Events which cover the full day aren't synced
- name: AllDayEvents
# Exclude Events which match the following regular expression, syntax here: https://github.com/google/re2/wiki/Syntax
# Events where the title matches the ExcludeRegexp (RE2 Regex) aren't synced
- name: RegexTitle
config:
ExcludeRegexp: ".*test"
Expand Down

0 comments on commit b7aef85

Please sign in to comment.