diff --git a/_modules/parsedmarc.html b/_modules/parsedmarc.html
index 198940e..a4651b1 100644
--- a/_modules/parsedmarc.html
+++ b/_modules/parsedmarc.html
@@ -1359,9 +1359,9 @@
for subdir_file in subdir_files:
subdir_file_path = os.path.join(root_path, subdir, subdir_file)
if os.path.isfile(subdir_file_path):
- relpath = os.path.relpath(subdir_root, subdir_file_path)
- subdir_arcname = os.path.join(relpath, subdir_file)
- zip_file.write(subdir_file_path, subdir_arcname)
+ rel_path = os.path.relpath(subdir_root, subdir_file_path)
+ subdir_arc_name = os.path.join(rel_path, subdir_file)
+ zip_file.write(subdir_file_path, subdir_arc_name)
for subdir in subdir_dirs:
add_subdir(subdir_path, subdir)
@@ -1525,6 +1525,7 @@
try:
# Refresh the IDLE session every 10 minutes to stay connected
if time.monotonic() - idle_start_time > 10 * 60:
+ logger.debug("IMAP: Refreshing IDLE session")
server.idle_done()
server.idle()
idle_start_time = time.monotonic()
@@ -1566,6 +1567,7 @@
try:
server.idle_done()
+ logger.debug("IMAP: Sending DONE")
server.logout()
except BrokenPipeError:
pass