16.04, problem with cyrillic alerts from amavis
Bug #1676805 reported by
sles
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
amavisd-new (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Hello!
In 12.04 everything works just fine.
I have ru_RU templates directory with charset file
with line UTF-8 in it.
In /etc/amavis/
I have
$hdr_encoding = 'utf-8';
$bdy_encoding = 'utf-8';
I this case encoding of message is set to utf-8 ,
but message is broken, i.e. it is not in utf-8.
if I set
$bdy_encoding = 'iso-8859-1';
then there is utf-8 readable message, but just wrong info about encoding in it.
Everything like described here in last message:
http://
I.e. amavis shipped with 16.04 is broken...
Thank you!
To post a comment you must log in.
OK, this is not real fix, but it fixes things for me, because I use utf8...
diff -ur amavisd-new-dist amavisd-new utf8($m_ hdr) if defined $m_hdr; c('bdy_ encoding' ), $m_body) if defined $m_body; c('bdy_ encoding' ), $m_body) if defined $m_body; >build(
--- amavisd-new-dist 2017-03-29 09:13:53.716398825 +0400
+++ amavisd-new 2017-03-29 09:40:45.796746725 +0400
@@ -10556,14 +10556,14 @@
}
}
$m_hdr = safe_encode_
- $m_body = safe_encode(
+ #$m_body = safe_encode(
# make sure _our_ source line number is reported in case of failure
my $multipart_cnt = 0;
$mime_type = 'multipart/mixed' if !defined $mime_type;
eval {
# RFC 6522: 7bit should always be adequate for multipart/report encoding
$entity = MIME::Entity-
- Type => $mime_type, Encoding => '8bit',
+ Type => $mime_type, Encoding => '7bit',
'X-Mailer' => undef);
1;
} or do {