Bug 3629 - Invalid subject can distort message list view
Summary: Invalid subject can distort message list view
Status: RESOLVED DUPLICATE of bug 3213
Alias: None
Product: Claws Mail (GTK 2)
Classification: Unclassified
Component: UI/Message List (show other bugs)
Version: 3.13.2
Hardware: PC Linux
: P3 normal
Assignee: users
URL:
Depends on:
Blocks:
 
Reported: 2016-03-19 11:08 UTC by Hanno Boeck
Modified: 2016-03-19 11:13 UTC (History)
0 users

See Also:


Attachments
mail with invalid subject triggering bug (200 bytes, application/octet-stream)
2016-03-19 11:08 UTC, Hanno Boeck
no flags Details
screenshot of message list (10.29 KB, image/png)
2016-03-19 11:09 UTC, Hanno Boeck
no flags Details

Description Hanno Boeck 2016-03-19 11:08:38 UTC
Created attachment 1636 [details]
mail with invalid subject triggering bug

I discovered something odd: A mail I got that had an obviously invalid subject containing multiple encodings and a probably invalid utf-8 character (quoted-printable encoded) was displayed as a multiline subject in the message list.

This obviously distorts the view, because a multiline subject will spread over other messages in the list. I have attached a sample message and a screenshot of the phenomen.

This is an example subject line causing this:
Subject: =?utf-8?Q?YYYYYYYYYYYYYYYY=E2=80=A8?=
 =?utf-8?Q?YYYYYYYYYYYYYYYY=E2=80=A8?= =?utf-8?Q?YYYYYYYYYYYYYYYY=E2=80=A8?=

Not sure why this happens, but it seems obvious that claws-mail should not try to render multiple lines in the subject of the message list.
Comment 1 Hanno Boeck 2016-03-19 11:09:06 UTC
Created attachment 1637 [details]
screenshot of message list
Comment 2 Paul 2016-03-19 11:13:26 UTC

*** This bug has been marked as a duplicate of bug 3213 ***
Comment 3 users 2016-03-30 18:23:03 UTC
Changes related to this bug have been committed.
Please check latest Git and update the bug accordingly.
You can also get the patch from:
http://git.claws-mail.org/

++ ChangeLog	2016-03-30 18:23:03.018202487 +0200
http://git.claws-mail.org/?p=claws.git;a=commitdiff;h=6c4ba34671ae49021c950d4fc840f2dd1245672b
Merge: 93ba792 73e0a2e
Author: Colin Leroy <colin@colino.net>
Date:   Wed Mar 30 18:23:02 2016 +0200

    Merge branch 'master' of file:///home/git/claws

http://git.claws-mail.org/?p=claws.git;a=commitdiff;h=73e0a2e64074bab0b6abfde58fdf569b183dde5d
Author: Andrej Kacian <ticho@claws-mail.org>
Date:   Wed Mar 30 18:21:08 2016 +0200

    Rewrite unfold_line() to handle UTF8 line breaks.
    
    This closes bug #3629 - Invalid subject can distort
    message list view

Note You need to log in before you can comment on or make changes to this bug.