[Mimedefang] Wide character in print at /usr/bin/mimedefang.pl
vieri at openmailbox.org
vieri at openmailbox.org
Thu Mar 12 04:38:21 EDT 2015
On 2015-03-12 08:38, Steffen Kaiser wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Wed, 11 Mar 2015, vieri at openmailbox.org wrote:
>> On 2015-03-10 20:20, vieri at openmailbox.org wrote:
>>> Hi,
>>>
>>> I noticed that a decade ago some users detected "Wide character in
>>> print" messages in their mimedefang logs.
>>> It was supposedly fixed by adding
>
>>> export LC_ALL=C
>
>>> in the mimedefang init script.
>>>
>>> (perl unicode issue)
>>>
>>> However, my Linux distro (Gentoo) runs the following in the
>>> mimedefang
>>> init script:
>>>
>>> LC_ALL=C
>>> export LC_ALL
>>>
>>> but I'm occasionally getting the "Wide character in print" messages.
>>>
>>> I'm running v 2.75 and Perl 5.18.2.
>>>
>>> Any ideas?
>>
>> Hi again,
>>
>> Just wanted to add that I modified /usr/bin/mimedefang.pl for
>> debugging purposes:
>>
>> /usr/bin/mimedefang.pl:
>>
>> sub action_notify_sender ($) {
>> [...]
>> if (open(FILE, ">>NOTIFICATION")) {
>> <------>md_syslog('err', "action_notify_sender print FILE $msg");
>> [...]
>>
>> If I check the logs, this is what I get (basically I have a custom
>> filter which calls action_notify_sender with the name of each attached
>> file):
>>
>> action_notify_sender print FILE ComposicioÌ..pdf
>>
>> So mimedefang and perl are choking on non-ASCII characters with "Wide
>> character in print" messages.
>>
>> Unfortunately the consequence of all this is that some e-mail messages
>> aren't processed and are kept in the queue and not sent:
>>
>> Mar 11 18:19:38 mail1 mimedefang-multiplexor[31444]: A0C4A326EB1:
>> Slave 1 stderr: open body: Invalid argument at
>> /usr/lib/perl5/vendor_perl/5.18.2/MIME/Entity.pm line 1878.
>
> Could you post your filter?
If you don't mind, I'm sending the whole mimedefang-filter file as a
text attachment.
Thanks,
Vieri
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: mimedefang-filter
URL: <https://lists.mimedefang.org/pipermail/mimedefang_lists.mimedefang.org/attachments/20150312/ab6600fd/attachment.ksh>
More information about the MIMEDefang
mailing list