mirror of
https://github.com/simple-login/app.git
synced 2025-02-25 00:03:03 +08:00
use a different s3 folder for spams
This commit is contained in:
parent
55190ff358
commit
55b1ce2067
1 changed files with 2 additions and 2 deletions
|
@ -790,12 +790,12 @@ def handle_spam(
|
|||
# generate a name for the email
|
||||
random_name = str(uuid.uuid4())
|
||||
|
||||
full_report_path = f"refused-emails/full-{random_name}.eml"
|
||||
full_report_path = f"spams/full-{random_name}.eml"
|
||||
s3.upload_email_from_bytesio(full_report_path, BytesIO(msg.as_bytes()), random_name)
|
||||
|
||||
file_path = None
|
||||
if orig_msg:
|
||||
file_path = f"refused-emails/{random_name}.eml"
|
||||
file_path = f"spams/{random_name}.eml"
|
||||
s3.upload_email_from_bytesio(
|
||||
file_path, BytesIO(orig_msg.as_bytes()), random_name
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue