From 04783eeca90a74d04a367a08422255f3f90a4f57 Mon Sep 17 00:00:00 2001 From: Stephane de Labrusse Date: Mon, 13 May 2024 10:36:04 +0200 Subject: [PATCH] Add to pilerimport an option to wait 200ms between each email importation --- imageroot/bin/import-emails | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imageroot/bin/import-emails b/imageroot/bin/import-emails index 666848c..eb2d0dc 100755 --- a/imageroot/bin/import-emails +++ b/imageroot/bin/import-emails @@ -39,7 +39,7 @@ if providers: subprocess.run([ '/usr/bin/podman', 'exec', '-w', '/var/piler/imap', '-u', 'piler', 'piler-app', - '/usr/bin/pilerimport', '-i', ip_address, '-u', f'{user}*vmail', '-p', password, '-P', '993' + '/usr/bin/pilerimport', '-Z', '200', '-i', ip_address, '-u', f'{user}*vmail', '-p', password, '-P', '993' ]) except Exception as e: print(f"### Error to import {user} to {os.environ['MODULE_ID']}: {e}", file=sys.stderr)