fix: catch exception while setting In-Reply-To in email header
This commit is contained in:
parent
c8016584b0
commit
d94a1313f0
1 changed files with 5 additions and 1 deletions
|
|
@ -207,7 +207,11 @@ class EMail:
|
|||
|
||||
def set_in_reply_to(self, in_reply_to):
|
||||
"""Used to send the Message-Id of a received email back as In-Reply-To"""
|
||||
self.msg_root["In-Reply-To"] = in_reply_to
|
||||
try:
|
||||
self.msg_root["In-Reply-To"] = in_reply_to
|
||||
except ValueError:
|
||||
# in_reply_to may contain line feed characters, so ignore in that case
|
||||
pass
|
||||
|
||||
def make(self):
|
||||
"""build into msg_root"""
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue