mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-17 07:41:26 +00:00
Update mail.py
This commit is contained in:
@@ -40,6 +40,8 @@ def add_smime_sign(msg):
|
|||||||
# Load the certificate
|
# Load the certificate
|
||||||
with open(cert_file, "rb") as f:
|
with open(cert_file, "rb") as f:
|
||||||
certificate = x509.load_pem_x509_certificate(f.read())
|
certificate = x509.load_pem_x509_certificate(f.read())
|
||||||
|
|
||||||
|
msg.mixed_subtype = "signed"
|
||||||
|
|
||||||
msg_payload = msg.message().as_string().encode()
|
msg_payload = msg.message().as_string().encode()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user