diff options
-rw-r--r-- | patchwork/parser.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/patchwork/parser.py b/patchwork/parser.py index 8f9af81..a40f931 100644 --- a/patchwork/parser.py +++ b/patchwork/parser.py @@ -576,10 +576,13 @@ def find_comment_content(mail): """Extract content from a mail.""" commentbuf = '' - for payload, _ in _find_content(mail): + for payload, subtype in _find_content(mail): if not payload: continue + if subtype != 'plain': + continue + commentbuf += payload.strip() + '\n' commentbuf = clean_content(commentbuf) |