Chinese characters in file names

--[ UxBoD ]-- uxbod at splatnix.net
Thu Nov 17 22:21:23 GMT 2011


Argh! 

package MIME::Parser::MailScanner already exists so I just need to add the necessary code to that! :) Tired eyes so better to start coding that in the morning. 

-- 
Thanks, Phil 

----- Original Message -----

> Almost there now. MailScanner currently would extract as the files
> as:

> [uxbod at gateway mime]# ls -l extracted/
> total 56
> -rw-r--r-- 1 uxbod uxbod 25 Nov 17 22:03 1
> -rw-r--r-- 1 uxbod uxbod 25 Nov 17 22:03 1-1
> -rw-r--r-- 1 uxbod uxbod 3556 Nov 17 22:03 image001.gif
> -rw-r--r-- 1 uxbod uxbod 6163 Nov 17 22:03 image002.jpg
> -rw-r--r-- 1 uxbod uxbod 1416 Nov 17 22:03 msg-27353-1.txt
> -rw-r--r-- 1 uxbod uxbod 29271 Nov 17 22:03 msg-27353-2.html

> now I have extend the code to generate the extracted files as:

> uxbod at gateway mime]# ls -l extracted/
> total 56
> -rw-r--r-- 1 uxbod uxbod 25 Nov 17 21:51 360新���O�y-12-01-Chi
> Trad.txt
> -rw-r--r-- 1 uxbod uxbod 25 Nov 17 21:51 360新闻监测-12-01-Chi Simp.txt
> -rw-r--r-- 1 uxbod uxbod 3556 Nov 17 21:51 image001.gif
> -rw-r--r-- 1 uxbod uxbod 6163 Nov 17 21:51 image002.jpg
> -rw-r--r-- 1 uxbod uxbod 1416 Nov 17 21:51 msg-26828-1.txt
> -rw-r--r-- 1 uxbod uxbod 29271 Nov 17 21:51 msg-26828-2.html

> --
> Thanks, Phil

> ----- Original Message -----

> > Am making some progress on this now! Having to override a method in
> > MIME::Parser::Filer called output_path() for it to understand
> > encoded file names. Once I can get my test code to work then it
> > should be fairly easy to implement it in MailScanner by creating a
> > new package; something like MailScanner::Message::OurFiler.
> 

> > Am having to learn new things in Perl which is one good thing :)
> 

> > --
> 
> > Thanks, Phil
> 

> > ----- Original Message -----
> 

> > > An issue that I have to resolve in the next week! Getting a grip
> > > on
> > > it but it is slow progress. Thoughts Jules ? perhaps we could
> > > double
> > > team it ?
> > 
> 

> > > --
> > 
> 
> > > Thanks, Phil
> > 
> 

> > > ----- Original Message -----
> > 
> 

> > > > On Fri, 2011-11-11 at 11:55 +0000, --[ UxBoD ]-- wrote:
> > > 
> > 
> 
> > > > > Hi,
> > > > 
> > > 
> > 
> 

> > > > > am working on a project and have encountered an issue where
> > > > > file
> > > > > names that contain Chinese (Simplified) characters are being
> > > > > mangled
> > > > > when processed by MailScanner. An example is when one
> > > > > requires
> > > > > all
> > > > > attachments to be zipped up. When I examine the zipped file
> > > > > it
> > > > > now
> > > > > contains a file called ?????.doc. I have taken a look at the
> > > > > code
> > > > > and believe it is something to do with how
> > > > 
> > > 
> > 
> 

> > > > This added weight to us no longer using mailscanner, apart from
> > > > the
> > > > constant child exit issues after spam tests, China is one of
> > > > our
> > > > (AU) neighbours and a very important trade partner, I couldn't
> > > > understand it to save my life, but those who need to, do, and
> > > > it
> > > > was
> > > > affecting them, this is going back to last year.
> > > 
> > 
> 

> > > > --
> > > 
> > 
> 
> > > > MailScanner mailing list
> > > 
> > 
> 
> > > > mailscanner at lists.mailscanner.info
> > > 
> > 
> 
> > > > http://lists.mailscanner.info/mailman/listinfo/mailscanner
> > > 
> > 
> 

> > > > Before posting, read http://wiki.mailscanner.info/posting
> > > 
> > 
> 

> > > > Support MailScanner development - buy the book off the website!
> > > 
> > 
> 

> > > --
> > 
> 
> > > MailScanner mailing list
> > 
> 
> > > mailscanner at lists.mailscanner.info
> > 
> 
> > > http://lists.mailscanner.info/mailman/listinfo/mailscanner
> > 
> 

> > > Before posting, read http://wiki.mailscanner.info/posting
> > 
> 

> > > Support MailScanner development - buy the book off the website!
> > 
> 

> > --
> 
> > MailScanner mailing list
> 
> > mailscanner at lists.mailscanner.info
> 
> > http://lists.mailscanner.info/mailman/listinfo/mailscanner
> 

> > Before posting, read http://wiki.mailscanner.info/posting
> 

> > Support MailScanner development - buy the book off the website!
> 

> --
> MailScanner mailing list
> mailscanner at lists.mailscanner.info
> http://lists.mailscanner.info/mailman/listinfo/mailscanner

> Before posting, read http://wiki.mailscanner.info/posting

> Support MailScanner development - buy the book off the website!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.mailscanner.info/pipermail/mailscanner/attachments/20111117/cc40300f/attachment.html


More information about the MailScanner mailing list