aboutsummaryrefslogtreecommitdiffstats
path: root/climl/__init__.py
diff options
context:
space:
mode:
authorVG <vg@devys.org>2016-06-12 14:34:15 +0200
committerVG <vg@devys.org>2016-06-12 14:34:15 +0200
commitecbb742d46fe982dba256bdc1d150790c887642d (patch)
treed7cee8be1669627738c276f55560bf41dbaf9fcc /climl/__init__.py
parent232e7d95f0f2d0b00c6476ac89d3f93691ba7b47 (diff)
downloadcliml-ecbb742d46fe982dba256bdc1d150790c887642d.tar.gz
climl-ecbb742d46fe982dba256bdc1d150790c887642d.tar.bz2
climl-ecbb742d46fe982dba256bdc1d150790c887642d.zip
Make climl work, from receiving to sending to all
- add a todo list (in french) for futur evolutions - add a hook to modify emails adding a reply-to - add a traceback trace print for sockets/ssl errors
Diffstat (limited to 'climl/__init__.py')
-rw-r--r--climl/__init__.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/climl/__init__.py b/climl/__init__.py
index e730690..c6f6db4 100644
--- a/climl/__init__.py
+++ b/climl/__init__.py
@@ -23,8 +23,6 @@ def on_email(content, hooks, conf):
print('hook wanted to stop processing for current email')
traceback.print_exc()
print('◀▬▬▬▬▬▬▬')
- print('now, raising exception (for dev purpose only)')
- raise interface.HookAbortError('dev purpose abort')
def conf_boolean_postprocess(src):
@@ -49,15 +47,13 @@ def main():
confpath = os.path.expanduser('~/.config/climl/climl.cfg')
conf = conf_postprocess(confparser.read_conf(confpath))
- # TODO: how to load hooks with a dependency tree and sort them accordingly
- # to generate hooks list ?
- # now try a fixed list ?
hooksfuncs = (
hooks.hook_extract_listname,
hooks.hook_check_ml_restrictions, # open/private ml
hooks.hook_validate_poster,
hooks.hook_process_subscribe_queries,
hooks.hook_generate_rcpt_list,
+ hooks.hook_modify_reply_to,
hooks.hook_send_all,
)
print('starting imap.main loop')