From 4eef6eeef7aac6609d45bb8e4e5028f64380838a Mon Sep 17 00:00:00 2001 From: sebastianserfling Date: Tue, 24 Sep 2024 21:08:32 +0200 Subject: [PATCH] add Domain/User Part --- python_scripte/imapsync.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/python_scripte/imapsync.py b/python_scripte/imapsync.py index 52c910a..b52f716 100644 --- a/python_scripte/imapsync.py +++ b/python_scripte/imapsync.py @@ -91,7 +91,8 @@ while True: # Process each user for user in users: username, password, domain = user - local_part = username.split('@')[0] + domain_part = username.split('@')[1] + user_part = username.split('@')[0] print(f"User: {username} running.") # Check if the user previously had an authentication failure @@ -108,9 +109,9 @@ while True: "--user1", username, "--password1", password, "--host2", "192.168.178.90", - "--user2", "archiv@trendsetzer.eu", + "--user2", "archiv@", "--password2", "Ln0m2YQZd23H54L5tCiyjIBWLEn8mk36v7KauqS8QFGzu", - "--subfolder2", f"{local_part}", + "--subfolder2", f"{domain_part}/{user_part}", "--regextrans2", "s/^(.*)$/\\1/", "--log", "--notls2"