Skip to content

Commit

Permalink
Merge pull request #13 from NethServer/sdl-6895-ratelimit
Browse files Browse the repository at this point in the history
Add option to wait between email importation NethServer/dev#6895
  • Loading branch information
stephdl authored May 13, 2024
2 parents 10a4239 + 04783ee commit a09467b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imageroot/bin/import-emails
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a09467b

Please sign in to comment.