On 8/16/11 9:01 AM, "Henrik Krohns" <[email protected]> wrote: > On Tue, Aug 16, 2011 at 06:47:42AM -0400, Kevin A. McGrail wrote: >> >>> Apart from trusting the filename extension? Examining the first >>> few bytes of the attachment for non-ASCII characters (excluding >>> UTF encoding markers) is the only thing that springs to mind. >>> >>> File::Type perhaps? Or is that overkill? >>> >> File::Type wouldn't be overkill if Content Type is missing. > > What function in SA needs to know it correctly? I think it's safe to assume > such as text (what do MUAs do?). We have the binary problem regardless. If you mis-classify binary as text, you hit a lot of funky rules like UNWANTED_LANGUAGE_BODY -- Daniel J McDonald, CCIE # 2495, CISSP # 78281
- [Bug 6649] sa-compile fails on SOUGHT rule with re2c: err... bugzilla-daemon
- [Bug 6649] sa-compile fails on SOUGHT rule with re2c: err... bugzilla-daemon
- [Bug 6649] sa-compile fails on SOUGHT rule with re2c: err... bugzilla-daemon
- Missing Content-Type on UPS Phish Michael Parker
- Re: Missing Content-Type on UPS Phish John Hardin
- Re: Missing Content-Type on UPS Phish Henrik Krohns
- Re: Missing Content-Type on UPS Phish Kevin A. McGrail
- Re: Missing Content-Type on UPS Phish John Hardin
- Re: Missing Content-Type on UPS Phi... Justin Mason
- Re: Missing Content-Type on UPS Phish Henrik Krohns
- Re: Missing Content-Type on UPS Phi... Daniel McDonald
- Re: Missing Content-Type on UPS... Henrik Krohns
- [Bug 6649] sa-compile fails on SOUGHT rule with re2c: err... bugzilla-daemon
- [Bug 6649] sa-compile fails on SOUGHT rule with re2c: err... bugzilla-daemon
- [Bug 6649] sa-compile fails on SOUGHT rule with re2c: err... bugzilla-daemon
- [Bug 6649] sa-compile fails on SOUGHT rule with re2c: err... bugzilla-daemon
- [Bug 6649] sa-compile fails on SOUGHT rule with re2c: err... bugzilla-daemon
- [Bug 6649] sa-compile fails on SOUGHT rule with re2c: err... bugzilla-daemon
- [Bug 6649] sa-compile fails on SOUGHT rule with re2c: err... bugzilla-daemon
- [Bug 6649] sa-compile fails on SOUGHT rule with re2c: err... bugzilla-daemon
- [Bug 6649] sa-compile fails on SOUGHT rule with re2c: err... bugzilla-daemon
