aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--climl/__init__.py1
-rw-r--r--climl/imap.py3
2 files changed, 3 insertions, 1 deletions
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