aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVG <vg@devys.org>2016-05-27 18:19:29 +0200
committerVG <vg@devys.org>2016-05-27 18:19:29 +0200
commit8bfa1d1bd6d2b29c6a154858cf7a3970d0521b4a (patch)
tree4ec87053e94029ca572ccbd2b58dad8cf9aea2e6
parent7516b155aa59a180e81bc5951efc1f74ee71452c (diff)
downloadcliml-8bfa1d1bd6d2b29c6a154858cf7a3970d0521b4a.tar.gz
climl-8bfa1d1bd6d2b29c6a154858cf7a3970d0521b4a.tar.bz2
climl-8bfa1d1bd6d2b29c6a154858cf7a3970d0521b4a.zip
Auto-commit on 6d1dbe8495b5fafbc5f50d80268d0ca5b7b097be
-rw-r--r--climl/__init__.py2
-rw-r--r--climl/hooks.py21
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