Don't understand this match

Scott Silva ssilva at sgvwater.com
Wed Mar 1 22:27:50 GMT 2006


Richard Thomas spake the following on 3/1/2006 1:16 PM:
> Julian Field wrote:
>>
>> This regexp is just fine, it has been there for several years without 
>> any changes whatsoever. I wrote it carefully and got it right first time.
>>   
> 
> OK, based on that, I dug a little deeper...
> 
> It *is* a dodgy filename
> 
>     Content-Type: application/vnd.ms-excel;
>             name="Shortcut (2) to Copy of PayrollTFC (version 2) 3.lnk.xls"
>     Content-Transfer-Encoding: base64
>     Content-Disposition: attachment;
>             filename="Shortcut (2) to Copy of PayrollTFC (version 2)
>     3.lnk.xls"
> 
> 
> But MailScanner is reporting the filename as beign the valid one
> 
>     Warning: This message has had one or more attachments removed
>     Warning: (Shortcut 29 t.xls).
>     Warning: Please read the "PsySolutions-Attachment-Warning.txt" attachment(s)
>     for more information.
The warning message generates a "sanitized" filename. It is shortened, and
some of what makes it invalid is truncated/removed.



More information about the MailScanner mailing list