Chris Wagner wrote:

> At 02:39 PM 1/29/2006 +0100, Ambrogio wrote:
> 
>>Content-Disposition: attachment;
>>filename*0=emcgrab_full_2006-01-23-15.18.47_AIX_misp205s_CC0000000000.ta;
> 
> filename*1=r.zip
> 
>>Content-Type: application/zip;
>>name*0=emcgrab_full_2006-01-23-15.18.47_AIX_misp205s_CC0000000000.tar.zi;
> 
> name*1=p
> 
>>Content-Transfer-Encoding: base64
> 
> 
> Hmm, I've never seen a MIME header like that, spliting up the file name.  I
> think u have a few options.  Write a preprocessor that scans the mail file
> for weird attachment names and fixes them, Edit the mbox module itself to
> support these names, or Contact the module author and have him put in
> support for split up names.
> 
> $msg =~ s/(Content-Type: .+;\nname\*0=.+); name\*1=(.+)/$1$2/s;

It's legal to fold a header line at any WS character, but the continuation line
has to start with leading WS.  It's possible that he left that off in his
example.
_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to