Commit Graph

17 Commits

Author SHA1 Message Date
Nate Harris
3b9df7b87e - Check if hook is enabled before constructing hook notification items
- Skip/early exit email hook if notification item is not a VCALENDAR
2026-03-30 01:55:03 -06:00
Samuel Tardieu
8ace7878a1 fix misindented early return
The wrong indentation could cause the mail hook to bail early without
any logging when the end time of the event being added/modified happened
later than the current boundary being checked (1 full minute before the
current time).

For example, this caused emails not to be sent in the following setup:
Etar + DAVx⁵ on Android.
2026-01-03 15:43:57 +01:00
Nate Harris
998b2e2121 - Fix unit tests for hook email trigger conditional based on end date 2025-08-21 00:21:11 -06:00
Nate Harris
9b6ba72fa0 - Fix dryrun property 2025-08-14 00:10:16 -06:00
Nate Harris
208dd22a42 - Do not send notifications if end time is more than 1 minute in the past (buffer) 2025-08-13 23:46:26 -06:00
Nate Harris
74bc78aac4 - Linting 2025-08-13 23:46:26 -06:00
Nate Harris
5c9c5b1572 - Linting 2025-08-13 23:46:26 -06:00
Nate Harris
e391c3aa92 - Compare previous-current events to determine if non-invitee changes were made (notify non-added/removed attendees of event update) 2025-08-13 23:46:26 -06:00
Nate Harris
80dc4995cf - Capture previous version of event pre-overwrite for use in notification hooks
- Use previous version of event in email hooks to determine added/deleted/updated email type
2025-08-13 23:46:24 -06:00
Peter Bieringer
6de7b3b8c9 add support for hook option "dryrun" 2025-07-22 20:58:40 +02:00
Peter Bieringer
fe175df9a2 add missing copyright header 2025-07-22 20:58:10 +02:00
Nate Harris
ce9b2cf5d2 - Add support for local SMTP
- Ignore venv in flake8
2025-06-29 00:47:26 -06:00
Nate Harris
3228f046e2 - Address some feedback 2025-06-25 23:31:28 -06:00
Nate Harris
8ad2c7125b - Fix mypy ignore location 2025-06-25 23:17:53 -06:00
Nate Harris
4108a5702d - Address isort and flake8 issues 2025-06-24 23:27:21 -06:00
Nate Harris
e744a4f0a3 - Fix mypy warnings 2025-06-24 23:17:59 -06:00
Nate Harris
71f8833f4d - Add email hook 2025-06-19 02:15:45 -06:00