Skip to content

Commit

Permalink
Merge tag '0.6.2' into develop
Browse files Browse the repository at this point in the history
0.6.2
  • Loading branch information
DrLuke committed Feb 13, 2019
2 parents b7657d8 + f01325e commit 3469bd1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.6.1
0.6.2
6 changes: 3 additions & 3 deletions jicket/jicket/mailhandling.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def sendTicketStart(self, mail: ProcessedMail):
"subject": mail.subject
}

threadstarter = email.mime.text.MIMEText(responsehtml, "html", policy=email.policy.EmailPolicy())
threadstarter = email.mime.text.MIMEText(responsehtml, "html", policy=email.policy.EmailPolicy(max_line_length=78))

# Add Jicket headers
threadstarter["X-Jicket-HashID"] = mail.tickethash
Expand All @@ -164,9 +164,9 @@ def sendTicketStart(self, mail: ProcessedMail):
threadstarter["X-Jicket-Initial-ReplyID"] = mail.parsed["Message-ID"]

# Set other headers
threadstarter["to"] = email.headerregistry.HeaderRegistry()("to", mail.parsed["from"] + ", " + self.mailconfig.ticketAddress)
threadstarter["to"] = mail.parsed["from"] + ", " + self.mailconfig.ticketAddress
if mail.parsed["CC"] is not None:
threadstarter["cc"] = email.headerregistry.HeaderRegistry()("cc", mail.parsed["CC"])
threadstarter["cc"] = str(mail.parsed["CC"])
threadstarter["From"] = self.mailconfig.ticketAddress
threadstarter["In-Reply-To"] = mail.parsed["Message-ID"]
threadstarter["Subject"] = "[#%s%s] %s" % (self.mailconfig.idPrefix, mail.tickethash, mail.subject)
Expand Down

0 comments on commit 3469bd1

Please sign in to comment.