aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVosjedev <vosje@vosjedev.net>2025-11-02 18:20:22 +0100
committerVosjedev <vosje@vosjedev.net>2025-11-02 18:20:22 +0100
commit1fa3c5c1eb78242f1b29ff33e140eee2ae3cd5d8 (patch)
tree967c4cb42f1c6dcbdd3873bbe4ee1d5bcb3f81d6
parentba475bf46328542795cdf22c8c8807947056c02d (diff)
downloadacit-1fa3c5c1eb78242f1b29ff33e140eee2ae3cd5d8.tar.gz
acit-1fa3c5c1eb78242f1b29ff33e140eee2ae3cd5d8.tar.bz2
acit-1fa3c5c1eb78242f1b29ff33e140eee2ae3cd5d8.tar.xz
Stuff
-rw-r--r--src/acit/imap_pool.py2
-rw-r--r--src/acit/imapplugin.py6
2 files changed, 5 insertions, 3 deletions
diff --git a/src/acit/imap_pool.py b/src/acit/imap_pool.py
index e36fee9..caa6517 100644
--- a/src/acit/imap_pool.py
+++ b/src/acit/imap_pool.py
@@ -50,7 +50,7 @@ class MailBoxPool():
self.certfile=certfile
self.ssl_context=ssl_context
- self.errors=[]
+ self.errors:List[Exception]=[]
self.initalised=Event()
self.holding_threads=[]
diff --git a/src/acit/imapplugin.py b/src/acit/imapplugin.py
index 7c24e2c..289494a 100644
--- a/src/acit/imapplugin.py
+++ b/src/acit/imapplugin.py
@@ -31,7 +31,7 @@ class ImapPlugin(plugins.SimplePlugin):
self.smtp_pass=getenv("ACIT_SMTP_PASS")
self.smtp_port=int(getenv("ACIT_SMTP_PORT",0))
- if not ( self.imap_server and self.imap_user and self.smtp_server and self.smtp_user ):
+ if not ( self.imap_server and self.imap_user and self.imap_pass and self.smtp_server and self.smtp_user and self.smtp_pass ):
raise ValueError("Missing ACIT_IMAP_SERVER, ACIT_IMAP_USER, ACIT_SMTP_SERVER, or ACIT_SMTP_USER")
# end block
@@ -83,8 +83,10 @@ class ImapPlugin(plugins.SimplePlugin):
if not pool:
self.mlog("Failed to put anything in the pool (%d)."%pool)
self.mlog("Errors:")
+ import traceback
for e in self.mbpool.errors:
- self.mlog(e)
+ tb=traceback.format_exception(e)
+ self.mlog(repr(e),tb)
self.mlog("\n\nNOTE!!! THIS WILL MAKE ACIT UNUSABLE, BECAUSE IT WON'T BE ABLE TO INTERACT WITH EMAIL.\n"
" Please check your IMAP configuration.\n")