Bug 4470

Summary: [PATCH] Use superset charsets when decoding headers.
Product: Claws Mail (GTK 2) Reporter: wp
Component: OtherAssignee: users
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 3.18.0   
Hardware: PC   
OS: Linux   
Attachments:
Description Flags
Proposed patch. none

Description wp 2021-04-18 18:28:35 UTC
Created attachment 2199 [details]
Proposed patch.

Similar to how email contents are decoded with superset encodings by
default (e.g., GB18030 is used as the fallback for GB2312), this patch
allows message headers to be decoded similarly.

In particular, as mentioned in Bug 2110, it is common for Chinese emails
to specify GB2312 but include characters in GB18030. This patch allows
message subjects to be displayed correctly in those cases.