1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-09-15 20:36:55 +00:00

- Add email hook

This commit is contained in:
Nate Harris 2025-06-19 02:00:09 -06:00
parent 7c69671923
commit 71f8833f4d
6 changed files with 974 additions and 7 deletions

View file

@ -5,7 +5,7 @@ from typing import Sequence
from radicale import pathutils, utils
from radicale.log import logger
INTERNAL_TYPES: Sequence[str] = ("none", "rabbitmq")
INTERNAL_TYPES: Sequence[str] = ("none", "rabbitmq", "email")
def load(configuration):
@ -67,3 +67,9 @@ class HookNotificationItem:
sort_keys=True,
indent=4
)
class DeleteHookNotificationItem(HookNotificationItem):
def __init__(self, path, uid, old_content=None):
super().__init__(notification_item_type=HookNotificationItemTypes.DELETE, path=path, content=uid)
self.old_content = old_content