diff options
| author | Vosjedev <vosje@vosjedev.net> | 2025-11-02 18:20:22 +0100 |
|---|---|---|
| committer | Vosjedev <vosje@vosjedev.net> | 2025-11-02 18:20:22 +0100 |
| commit | 1fa3c5c1eb78242f1b29ff33e140eee2ae3cd5d8 (patch) | |
| tree | 967c4cb42f1c6dcbdd3873bbe4ee1d5bcb3f81d6 | |
| parent | ba475bf46328542795cdf22c8c8807947056c02d (diff) | |
| download | acit-1fa3c5c1eb78242f1b29ff33e140eee2ae3cd5d8.tar.gz acit-1fa3c5c1eb78242f1b29ff33e140eee2ae3cd5d8.tar.bz2 acit-1fa3c5c1eb78242f1b29ff33e140eee2ae3cd5d8.tar.xz | |
Stuff
| -rw-r--r-- | src/acit/imap_pool.py | 2 | ||||
| -rw-r--r-- | src/acit/imapplugin.py | 6 |
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") |
