From f9367c4da5e48ab597262093ca34536e2198a343 Mon Sep 17 00:00:00 2001 From: VG Date: Fri, 20 May 2016 00:31:02 +0200 Subject: Add more explicit prints for mail processing steps --- climl/__init__.py | 1 + climl/imap.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/climl/__init__.py b/climl/__init__.py index bc8ca94..cb1f129 100644 --- a/climl/__init__.py +++ b/climl/__init__.py @@ -1,5 +1,6 @@ from . import imap from . import interface +from . import hooks def on_email(content): print('on_email:', content) diff --git a/climl/imap.py b/climl/imap.py index a0a3871..f15ae05 100644 --- a/climl/imap.py +++ b/climl/imap.py @@ -137,9 +137,10 @@ def process_emails(connection, callback=None, maxsize=None): print('calling callback...') try: callback('mail: ' + str(oneid) + ': ' + str(data)) + print('mark mail {}'.format(oneid)) connection.add_flags([oneid], ['\Answered']) except interface.HookAbortError: - pass + print('callback wanted to skip marking of mail {}'.format(oneid)) data = None -- cgit v1.2.3