diff options
-rw-r--r-- | climl/__init__.py | 2 | ||||
-rw-r--r-- | climl/hooks.py | 21 |
2 files changed, 23 insertions, 0 deletions
diff --git a/climl/__init__.py b/climl/__init__.py index 8da9f80..e865254 100644 --- a/climl/__init__.py +++ b/climl/__init__.py @@ -2,6 +2,7 @@ from . import imap from . import interface from . import hooks + def on_email(content, hooks): print('on_email:', content) context = {} @@ -13,6 +14,7 @@ def on_email(content, hooks): print('now, raising exception') raise interface.HookAbortError() + def main(): # TODO: how to load hooks with a dependency tree and sort them accordingly # to generate hooks list ? diff --git a/climl/hooks.py b/climl/hooks.py new file mode 100644 index 0000000..f6e3844 --- /dev/null +++ b/climl/hooks.py @@ -0,0 +1,21 @@ +from . import interfaces + + +def hook_check_ml_restrictions(context, content): + pass + + +def hook_validate_poster(context, content): + pass + + +def hook_process_subscribe_queries(context, content): + pass + + +def hook_generate_rcpt_list(context, content): + pass + + +def hook_send_all(context, content): + pass |