Skip to content

Commit eaf9546

Browse files
committed
Fixed a bug in the charset handling of individual parts in multipart email messages in ietf.nomcom.get_body()
- Legacy-Id: 18615
1 parent 779087d commit eaf9546

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

docker/Dockerfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,15 @@ RUN apt-get install -qy \
108108
zile \
109109
zlib1g-dev
110110

111+
# Postgresql packages
112+
RUN apt-get install -qy \
113+
postgresql-11 \
114+
postgresql-server-dev-11
115+
116+
RUN pip install \
117+
psycopg2
118+
119+
111120
# Get the key used to sign the libyang repo
112121
RUN wget -nv http://download.opensuse.org/repositories/home:liberouter/Debian_9.0/Release.key
113122
RUN apt-key add - < Release.key

ietf/nomcom/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ def get_body(message):
437437
'plain')]
438438
body = []
439439
for part in text_parts:
440-
charset = get_charset(message)
440+
charset = get_charset(part)
441441
body.append(get_payload_text(part, default_charset=charset))
442442

443443
return "\n".join(body).strip()

0 commit comments

Comments
 (0)