Commit 3e29f04a authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 413672: email_in.pl incorrectly rejects quoted charsets - Patch by…

Bug 413672: email_in.pl incorrectly rejects quoted charsets - Patch by Fré©ric Buclin <LpSolit@gmail.com> r/a=mkanat
parent 494ba57b
......@@ -294,7 +294,8 @@ sub get_text_alternative {
foreach my $part (@parts) {
my $ct = $part->content_type || 'text/plain';
my $charset = 'iso-8859-1';
if ($ct =~ /charset=([^;]+)/) {
# The charset may be quoted.
if ($ct =~ /charset="?([^;"]+)/) {
$charset= $1;
}
debug_print("Part Content-Type: $ct", 2);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment