remove chown statement
This commit is contained in:
@@ -195,7 +195,6 @@ def get_maildir_path(to_address, mail_dir):
|
|||||||
#(user_dir / subdir).mkdir(exist_ok=True)
|
#(user_dir / subdir).mkdir(exist_ok=True)
|
||||||
subdir_path = user_dir / subdir
|
subdir_path = user_dir / subdir
|
||||||
subdir_path.mkdir(exist_ok=True)
|
subdir_path.mkdir(exist_ok=True)
|
||||||
os.chmod(subdir_path, 0o775) # rwxrwxr-x
|
|
||||||
|
|
||||||
return user_dir
|
return user_dir
|
||||||
|
|
||||||
@@ -222,8 +221,6 @@ def store_email(email_content, to_address, message_id, s3_key, mail_dir):
|
|||||||
with open(email_path, 'wb') as f:
|
with open(email_path, 'wb') as f:
|
||||||
f.write(email_content)
|
f.write(email_content)
|
||||||
|
|
||||||
os.chmod(email_path, 0o664) # rw-rw-r--
|
|
||||||
|
|
||||||
logger.info(f"E-Mail gespeichert: {email_path}")
|
logger.info(f"E-Mail gespeichert: {email_path}")
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user