Commit e87ee47f authored by Siltaar's avatar Siltaar

fix bad content type in forwarded emails

parent b430c78e
......@@ -177,7 +177,7 @@ def clone_message(eml):
new_eml = MIMEMultipart(_subtype=eml.get_content_subtype(), boundary=eml.get_boundary())
for k, v in eml.items(): # `eml` have only headers as its items
if k not in ["content-length", "content-type", "lines", "status"]: # unwanted fields
if k not in ["content-length", "lines", "status"]: # unwanted fields
# Python will set its own Content-Type and Content-Length lines in any case
# Lines may change anyway
# What is Status ?
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment