mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-16 07:08:55 +00:00
Update mail.py
This commit is contained in:
@@ -41,6 +41,8 @@ def add_smime_sign(msg):
|
||||
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()
|
||||
|
||||
builder = pkcs7.PKCS7SignatureBuilder() \
|
||||
|
Reference in New Issue
Block a user