1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-15 23:00:57 +00:00

Update mail.py

This commit is contained in:
r350178982
2025-04-19 16:24:50 +08:00
parent 9b2d430390
commit 1ea9f19d78

View File

@@ -40,6 +40,8 @@ def add_smime_sign(msg):
# Load the certificate
with open(cert_file, "rb") as f:
certificate = x509.load_pem_x509_certificate(f.read())
msg.mixed_subtype = "signed"
msg_payload = msg.message().as_string().encode()