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:
parent
7c69671923
commit
71f8833f4d
6 changed files with 974 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue