Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 383423 - mail-filter/maildrop-2.5.4 breaks reformime compatibilty used by qmail-scanner 2.0x
Summary: mail-filter/maildrop-2.5.4 breaks reformime compatibilty used by qmail-scanne...
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 376563
  Show dependency tree
 
Reported: 2011-09-17 21:20 UTC by Karel Hala
Modified: 2011-10-01 08:47 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
File with attachment with utf8 umlaut (utf8umlaut.eml,697 bytes, text/plain)
2011-09-28 13:30 UTC, Huemi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Karel Hala 2011-09-17 21:20:58 UTC
Updated maildrop 2.5.4 breaks reformime compatibility used by qmail-scanner 2.0x.

Problem which qmail-scanner has is as follows

X-Qmail-Scanner-2.05st:[mail131624244879012108] d_m: output spotted from
/usr/bin/reformime -x/var/spool/qscan/tmp/mail131624244
879012108/ (malloc: Invalid or incomplete multibyte or wide character

Tried to install newer qmail-scanner - 2.08 didnt help. So Ive downgraded
maildrop to 2.4.2 and that fix this problem.

Since this breaks delivery and crash of this procedure gives "qq temporary error" which behaves that mail being sent to us expires at remote queues and its not delivered. So this is major problem for users using netqmail+qmail-scanner. Please consider solutions.

Thanks
Stripe

Reproducible: Always

Steps to Reproduce:
1. tried newer qmail-scanner-2.08 - didnt help
2. googled for any help which could help in editing qmail-scanner.pl parameters for successful reformime calling - didnt help
3. downgraded to maildrop 2.4.2 - helped
Actual Results:  
working with maildrop 2.4.2

Expected Results:  
newer versions oncoming functionality
Comment 1 Huemi 2011-09-28 13:30:27 UTC
Created attachment 288083 [details]
File with attachment with utf8 umlaut

Using LANG="C" or LANG="en_US"
try reformime -x < utf8umlaut.eml
crashes

export LANG="en_US.utf8"
works ... (but might break with umlauts in other encoding ...)
Comment 2 Huemi 2011-09-28 13:33:42 UTC
Problem sounds like
http://sourceforge.net/mailarchive/message.php?msg_id=24606798

citation:
"
Systems affected should be able to simply edit their
qmail-scanner-queue.pl file (around line 77) and replace the following
line with an English localization setting

ie replace:

$ENV{'LC_ALL'}= $ENV{'LANG'} = $ENV{'LANGUAGE'} = 'C';

with

$ENV{'LC_ALL'}= $ENV{'LANG'} = $ENV{'LANGUAGE'} = 'en_US';
"

It seems to happen when you send mails with umlauts in the attachment names. 

Problem is that encoding en_US also doesn't work when the attachment is utf8 encoded ...

Quick workaround: go back to previous stable version (2.4.2 has not this problem)
Comment 3 Karel Hala 2011-10-01 08:47:53 UTC
Well havent skills to debug maildrop this way.

But I am for editing ebuild of qmail-scanner and handle this event with warning or some kind of mask >=maildrop-2.5 linking to this bug.

Yes the language which mainly comes to SMTP contens of diacritic letters. Until author of qmail-scanner will handle this within upstream it seems to be an issue.

May I ask maintainers of qmail-scanner to respect this?

thanks
Stripe