Filename enconding in auto-zip feature

Julian Field MailScanner at
Thu Sep 24 15:49:13 IST 2009

Why did you think the "Zip Attachments" feature is a system-wide 
setting. The line above the setting clearly says:
# This can also be the filename of a ruleset.

I will take a look at the filenames problem, but no guarantees I can fix 
it easily.

On 24/09/2009 12:46, Pedro Arinto wrote:
> Hi Alex,
> Unfortunately, since I work in Portugal, it is impossible to avoid 
> using non-English characters in filenames. Even if I could somehow 
> tell our users to avoid international characters, i cannot control 
> everyone who sends us email.
> All platforms I've tested (Mac, Windows & Linux) see the same messed 
> up filenames in the zip file. The difference is that in Windows, with 
> most unzip packages (like 7-zip), there is an error when unzipping the 
> file. In Mac, Linux & Windows with Winzip, the unzip operation is 
> successful, but the filenames are garbled. This wouldn't be a big 
> problem if the file extension remained the same as the original file, 
> but it also gets messed up. Since most of our users are non-technical, 
> this is a big problem for them.
> Can the zip feature be enabled selectively with a ruleset ? This would 
> partially solve our problems, but as far as I can tell it is a 
> system-wide setting.
> Thanks,
> Pedro
> On Mon, Sep 21, 2009 at 4:07 PM, Alex Neuman <alex at 
> <mailto:alex at>> wrote:
>     I don't know how to fix it, but here's a couple of thoughts:
>     1. Can you avoid using filenames with non-english characters? It's
>     less likely users will have problems that way - specially when
>     going cross-platform.
>     2. Are you sure the filenames are messed up? Do all platforms
>     (linux, mac, unix) find the same, apparently corrupted filenames?
>     How about all unzip programs for Windows? Could be that the
>     unzipping program is not UTF aware or something like that.
>     3. (and this is a question for Jules & the Gang) - what does
>     MailScanner use for ZIPping? is it some Archive::Zip module call?
>     Can it be changed (although it may impose a further performance
>     penalty) to an external "zip" program? Something like the internal
>     vs. external TNEF issue?
>     On Sep 21, 2009, at 9:49 AM, Pedro Arinto wrote:
>         the filenames get messed up in the resulting ZIP file. Windows
>         users are unable to uncompress this files
>     -- 
>     MailScanner mailing list
>     mailscanner at
>     <mailto:mailscanner at>
>     Before posting, read
>     Support MailScanner development - buy the book off the website!


Julian Field MEng CITP CEng
Buy the MailScanner book at

Need help customising MailScanner?
Contact me!
Need help fixing or optimising your systems?
Contact me!
Need help getting you started solving new requirements from your boss?
Contact me!

PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
Follow me at and

This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

More information about the MailScanner mailing list