sdfsdf
This commit is contained in:
@@ -68,13 +68,9 @@ def sync():
|
|||||||
# Compile
|
# Compile
|
||||||
os.system(f'sievec {sieve_path}')
|
os.system(f'sievec {sieve_path}')
|
||||||
|
|
||||||
# Activate via symlink
|
# Set ownership to mail user
|
||||||
sieve_dir = mailbox_dir / 'sieve'
|
os.system(f'chown docker:docker {sieve_path}')
|
||||||
sieve_dir.mkdir(exist_ok=True)
|
os.system(f'chown docker:docker {sieve_path}.svbin')
|
||||||
active_link = sieve_dir / '.dovecot.sieve'
|
|
||||||
if active_link.exists():
|
|
||||||
active_link.unlink()
|
|
||||||
active_link.symlink_to('../.dovecot.sieve')
|
|
||||||
|
|
||||||
print(f'✓ {email}')
|
print(f'✓ {email}')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user